autotool.patch 2.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382733837338473385733867338773388733897339073391733927339373394733957339673397733987339973400734017340273403734047340573406734077340873409734107341173412734137341473415734167341773418734197342073421734227342373424734257342673427734287342973430734317343273433734347343573436734377343873439734407344173442734437344473445734467344773448734497345073451734527345373454734557345673457734587345973460734617346273463734647346573466734677346873469734707347173472734737347473475734767347773478734797348073481734827348373484734857348673487734887348973490734917349273493734947349573496734977349873499735007350173502735037350473505735067350773508735097351073511735127351373514735157351673517735187351973520735217352273523735247352573526735277352873529735307353173532735337353473535735367353773538735397354073541735427354373544735457354673547735487354973550735517355273553735547355573556735577355873559735607356173562735637356473565735667356773568735697357073571735727357373574735757357673577735787357973580735817358273583735847358573586735877358873589735907359173592735937359473595735967359773598735997360073601736027360373604736057360673607736087360973610736117361273613736147361573616736177361873619736207362173622736237362473625
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur libnet-1.1.5.orig/aclocal.m4 libnet-1.1.5/aclocal.m4
  6. --- libnet-1.1.5.orig/aclocal.m4 2010-11-09 01:48:01.000000000 +0100
  7. +++ libnet-1.1.5/aclocal.m4 2011-02-24 19:45:50.963552728 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.10 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. -# 2005, 2006 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -11,108 +11,196 @@
  18. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  19. # PARTICULAR PURPOSE.
  20. -m4_if(m4_PACKAGE_VERSION, [2.61],,
  21. -[m4_fatal([this file was generated for autoconf 2.61.
  22. -You have another version of autoconf. If you want to use that,
  23. -you should regenerate the build system entirely.], [63])])
  24. +m4_ifndef([AC_AUTOCONF_VERSION],
  25. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  26. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  27. +[m4_warning([this file was generated for autoconf 2.65.
  28. +You have another version of autoconf. It may work, but is not guaranteed to.
  29. +If you have problems, you may need to regenerate the build system entirely.
  30. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  31. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  32. +#
  33. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  34. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  35. +# Written by Gordon Matzigkeit, 1996
  36. +#
  37. +# This file is free software; the Free Software Foundation gives
  38. +# unlimited permission to copy and/or distribute it, with or without
  39. +# modifications, as long as this notice is preserved.
  40. +
  41. +m4_define([_LT_COPYING], [dnl
  42. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  43. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  44. +# Written by Gordon Matzigkeit, 1996
  45. +#
  46. +# This file is part of GNU Libtool.
  47. +#
  48. +# GNU Libtool is free software; you can redistribute it and/or
  49. +# modify it under the terms of the GNU General Public License as
  50. +# published by the Free Software Foundation; either version 2 of
  51. +# the License, or (at your option) any later version.
  52. +#
  53. +# As a special exception to the GNU General Public License,
  54. +# if you distribute this file as part of a program or library that
  55. +# is built using GNU Libtool, you may include this file under the
  56. +# same distribution terms that you use for the rest of that program.
  57. +#
  58. +# GNU Libtool is distributed in the hope that it will be useful,
  59. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  60. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  61. +# GNU General Public License for more details.
  62. +#
  63. +# You should have received a copy of the GNU General Public License
  64. +# along with GNU Libtool; see the file COPYING. If not, a copy
  65. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  66. +# obtained by writing to the Free Software Foundation, Inc.,
  67. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  68. +])
  69. -# serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL
  70. +# serial 56 LT_INIT
  71. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  72. -# -----------------------------------------------------------
  73. -# If this macro is not defined by Autoconf, define it here.
  74. -m4_ifdef([AC_PROVIDE_IFELSE],
  75. - [],
  76. - [m4_define([AC_PROVIDE_IFELSE],
  77. - [m4_ifdef([AC_PROVIDE_$1],
  78. - [$2], [$3])])])
  79. +# LT_PREREQ(VERSION)
  80. +# ------------------
  81. +# Complain and exit if this libtool version is less that VERSION.
  82. +m4_defun([LT_PREREQ],
  83. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  84. + [m4_default([$3],
  85. + [m4_fatal([Libtool version $1 or higher is required],
  86. + 63)])],
  87. + [$2])])
  88. -# AC_PROG_LIBTOOL
  89. -# ---------------
  90. -AC_DEFUN([AC_PROG_LIBTOOL],
  91. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  92. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  93. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  94. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  95. - [AC_LIBTOOL_CXX],
  96. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  97. - ])])
  98. -dnl And a similar setup for Fortran 77 support
  99. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  100. - [AC_LIBTOOL_F77],
  101. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  102. -])])
  103. -
  104. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  105. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  106. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  107. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  108. - [AC_LIBTOOL_GCJ],
  109. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  110. - [AC_LIBTOOL_GCJ],
  111. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  112. - [AC_LIBTOOL_GCJ],
  113. - [ifdef([AC_PROG_GCJ],
  114. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  115. - ifdef([A][M_PROG_GCJ],
  116. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  117. - ifdef([LT_AC_PROG_GCJ],
  118. - [define([LT_AC_PROG_GCJ],
  119. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  120. -])])# AC_PROG_LIBTOOL
  121. +# _LT_CHECK_BUILDDIR
  122. +# ------------------
  123. +# Complain if the absolute build directory name contains unusual characters
  124. +m4_defun([_LT_CHECK_BUILDDIR],
  125. +[case `pwd` in
  126. + *\ * | *\ *)
  127. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  128. +esac
  129. +])
  130. -# _AC_PROG_LIBTOOL
  131. -# ----------------
  132. -AC_DEFUN([_AC_PROG_LIBTOOL],
  133. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  134. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  135. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  136. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  137. +# LT_INIT([OPTIONS])
  138. +# ------------------
  139. +AC_DEFUN([LT_INIT],
  140. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  141. +AC_BEFORE([$0], [LT_LANG])dnl
  142. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  143. +AC_BEFORE([$0], [LTDL_INIT])dnl
  144. +m4_require([_LT_CHECK_BUILDDIR])dnl
  145. +
  146. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  147. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  148. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  149. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  150. +dnl unless we require an AC_DEFUNed macro:
  151. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  152. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  153. +AC_REQUIRE([LTVERSION_VERSION])dnl
  154. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  155. +m4_require([_LT_PROG_LTMAIN])dnl
  156. +
  157. +dnl Parse OPTIONS
  158. +_LT_SET_OPTIONS([$0], [$1])
  159. # This can be used to rebuild libtool when needed
  160. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  161. +LIBTOOL_DEPS="$ltmain"
  162. # Always use our own libtool.
  163. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  164. AC_SUBST(LIBTOOL)dnl
  165. -# Prevent multiple expansion
  166. -define([AC_PROG_LIBTOOL], [])
  167. -])# _AC_PROG_LIBTOOL
  168. +_LT_SETUP
  169. +# Only expand once:
  170. +m4_define([LT_INIT])
  171. +])# LT_INIT
  172. +
  173. +# Old names:
  174. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  175. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  176. +dnl aclocal-1.4 backwards compatibility:
  177. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  178. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  179. -# AC_LIBTOOL_SETUP
  180. -# ----------------
  181. -AC_DEFUN([AC_LIBTOOL_SETUP],
  182. -[AC_PREREQ(2.50)dnl
  183. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  184. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  185. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  186. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  187. +
  188. +# _LT_CC_BASENAME(CC)
  189. +# -------------------
  190. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  191. +m4_defun([_LT_CC_BASENAME],
  192. +[for cc_temp in $1""; do
  193. + case $cc_temp in
  194. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  195. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  196. + \-*) ;;
  197. + *) break;;
  198. + esac
  199. +done
  200. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  201. +])
  202. +
  203. +
  204. +# _LT_FILEUTILS_DEFAULTS
  205. +# ----------------------
  206. +# It is okay to use these file commands and assume they have been set
  207. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  208. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  209. +[: ${CP="cp -f"}
  210. +: ${MV="mv -f"}
  211. +: ${RM="rm -f"}
  212. +])# _LT_FILEUTILS_DEFAULTS
  213. +
  214. +
  215. +# _LT_SETUP
  216. +# ---------
  217. +m4_defun([_LT_SETUP],
  218. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  219. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  220. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  221. +_LT_DECL([], [host], [0])dnl
  222. +_LT_DECL([], [host_os], [0])dnl
  223. +dnl
  224. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  225. +_LT_DECL([], [build], [0])dnl
  226. +_LT_DECL([], [build_os], [0])dnl
  227. +dnl
  228. AC_REQUIRE([AC_PROG_CC])dnl
  229. -AC_REQUIRE([AC_PROG_LD])dnl
  230. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  231. -AC_REQUIRE([AC_PROG_NM])dnl
  232. -
  233. +AC_REQUIRE([LT_PATH_LD])dnl
  234. +AC_REQUIRE([LT_PATH_NM])dnl
  235. +dnl
  236. AC_REQUIRE([AC_PROG_LN_S])dnl
  237. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  238. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  239. -AC_REQUIRE([AC_OBJEXT])dnl
  240. -AC_REQUIRE([AC_EXEEXT])dnl
  241. +test -z "$LN_S" && LN_S="ln -s"
  242. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  243. dnl
  244. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  245. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  246. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  247. +dnl
  248. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  249. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  250. +m4_require([_LT_CMD_RELOAD])dnl
  251. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  252. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  253. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  254. +
  255. +_LT_CONFIG_LIBTOOL_INIT([
  256. +# See if we are running on zsh, and set the options which allow our
  257. +# commands through without removal of \ escapes INIT.
  258. +if test -n "\${ZSH_VERSION+set}" ; then
  259. + setopt NO_GLOB_SUBST
  260. +fi
  261. +])
  262. +if test -n "${ZSH_VERSION+set}" ; then
  263. + setopt NO_GLOB_SUBST
  264. +fi
  265. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  266. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  267. -AC_LIBTOOL_OBJDIR
  268. +_LT_CHECK_OBJDIR
  269. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  270. -_LT_AC_PROG_ECHO_BACKSLASH
  271. +m4_require([_LT_TAG_COMPILER])dnl
  272. +_LT_PROG_ECHO_BACKSLASH
  273. case $host_os in
  274. aix3*)
  275. @@ -128,6476 +216,7776 @@
  276. # Sed substitution that helps us do robust quoting. It backslashifies
  277. # metacharacters that are still active within double-quoted strings.
  278. -Xsed='sed -e 1s/^X//'
  279. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  280. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  281. # Same as above, but do not quote variable references.
  282. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  283. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  284. # Sed substitution to delay expansion of an escaped shell variable in a
  285. # double_quote_subst'ed string.
  286. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  287. +# Sed substitution to delay expansion of an escaped single quote.
  288. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  289. +
  290. # Sed substitution to avoid accidental globbing in evaled expressions
  291. no_glob_subst='s/\*/\\\*/g'
  292. -# Constants:
  293. -rm="rm -f"
  294. -
  295. # Global variables:
  296. -default_ofile=libtool
  297. +ofile=libtool
  298. can_build_shared=yes
  299. # All known linkers require a `.a' archive for static linking (except MSVC,
  300. # which needs '.lib').
  301. libext=a
  302. -ltmain="$ac_aux_dir/ltmain.sh"
  303. -ofile="$default_ofile"
  304. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  305. -AC_CHECK_TOOL(AR, ar, false)
  306. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  307. -AC_CHECK_TOOL(STRIP, strip, :)
  308. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  309. old_CC="$CC"
  310. old_CFLAGS="$CFLAGS"
  311. # Set sane defaults for various variables
  312. -test -z "$AR" && AR=ar
  313. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  314. -test -z "$AS" && AS=as
  315. test -z "$CC" && CC=cc
  316. test -z "$LTCC" && LTCC=$CC
  317. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  318. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  319. test -z "$LD" && LD=ld
  320. -test -z "$LN_S" && LN_S="ln -s"
  321. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  322. -test -z "$NM" && NM=nm
  323. -test -z "$SED" && SED=sed
  324. -test -z "$OBJDUMP" && OBJDUMP=objdump
  325. -test -z "$RANLIB" && RANLIB=:
  326. -test -z "$STRIP" && STRIP=:
  327. test -z "$ac_objext" && ac_objext=o
  328. -# Determine commands to create old-style static archives.
  329. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  330. -old_postinstall_cmds='chmod 644 $oldlib'
  331. -old_postuninstall_cmds=
  332. -
  333. -if test -n "$RANLIB"; then
  334. - case $host_os in
  335. - openbsd*)
  336. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  337. - ;;
  338. - *)
  339. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  340. - ;;
  341. - esac
  342. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  343. -fi
  344. -
  345. _LT_CC_BASENAME([$compiler])
  346. # Only perform the check for file, if the check method requires it
  347. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  348. case $deplibs_check_method in
  349. file_magic*)
  350. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  351. - AC_PATH_MAGIC
  352. + _LT_PATH_MAGIC
  353. fi
  354. ;;
  355. esac
  356. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  357. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  358. -enable_win32_dll=yes, enable_win32_dll=no)
  359. -
  360. -AC_ARG_ENABLE([libtool-lock],
  361. - [AC_HELP_STRING([--disable-libtool-lock],
  362. - [avoid locking (might break parallel builds)])])
  363. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  364. +# Use C for the default configuration in the libtool script
  365. +LT_SUPPORTED_TAG([CC])
  366. +_LT_LANG_C_CONFIG
  367. +_LT_LANG_DEFAULT_CONFIG
  368. +_LT_CONFIG_COMMANDS
  369. +])# _LT_SETUP
  370. -AC_ARG_WITH([pic],
  371. - [AC_HELP_STRING([--with-pic],
  372. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  373. - [pic_mode="$withval"],
  374. - [pic_mode=default])
  375. -test -z "$pic_mode" && pic_mode=default
  376. -# Use C for the default configuration in the libtool script
  377. -tagname=
  378. -AC_LIBTOOL_LANG_C_CONFIG
  379. -_LT_AC_TAGCONFIG
  380. -])# AC_LIBTOOL_SETUP
  381. +# _LT_PROG_LTMAIN
  382. +# ---------------
  383. +# Note that this code is called both from `configure', and `config.status'
  384. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  385. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  386. +# so we pass a copy along to make sure it has a sensible value anyway.
  387. +m4_defun([_LT_PROG_LTMAIN],
  388. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  389. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  390. +ltmain="$ac_aux_dir/ltmain.sh"
  391. +])# _LT_PROG_LTMAIN
  392. -# _LT_AC_SYS_COMPILER
  393. -# -------------------
  394. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  395. -[AC_REQUIRE([AC_PROG_CC])dnl
  396. -# If no C compiler was specified, use CC.
  397. -LTCC=${LTCC-"$CC"}
  398. +# So that we can recreate a full libtool script including additional
  399. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  400. +# in macros and then make a single call at the end using the `libtool'
  401. +# label.
  402. -# If no C compiler flags were specified, use CFLAGS.
  403. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  404. -# Allow CC to be a program name with arguments.
  405. -compiler=$CC
  406. -])# _LT_AC_SYS_COMPILER
  407. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  408. +# ----------------------------------------
  409. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  410. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  411. +[m4_ifval([$1],
  412. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  413. + [$1
  414. +])])])
  415. +# Initialize.
  416. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  417. -# _LT_CC_BASENAME(CC)
  418. -# -------------------
  419. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  420. -AC_DEFUN([_LT_CC_BASENAME],
  421. -[for cc_temp in $1""; do
  422. - case $cc_temp in
  423. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  424. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  425. - \-*) ;;
  426. - *) break;;
  427. - esac
  428. -done
  429. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  430. +
  431. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  432. +# ------------------------------
  433. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  434. +m4_define([_LT_CONFIG_LIBTOOL],
  435. +[m4_ifval([$1],
  436. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  437. + [$1
  438. +])])])
  439. +
  440. +# Initialize.
  441. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  442. +
  443. +
  444. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  445. +# -----------------------------------------------------
  446. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  447. +[_LT_CONFIG_LIBTOOL([$1])
  448. +_LT_CONFIG_LIBTOOL_INIT([$2])
  449. ])
  450. -# _LT_COMPILER_BOILERPLATE
  451. -# ------------------------
  452. -# Check for compiler boilerplate output or warnings with
  453. -# the simple compiler test code.
  454. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  455. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  456. -ac_outfile=conftest.$ac_objext
  457. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  458. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  459. -_lt_compiler_boilerplate=`cat conftest.err`
  460. -$rm conftest*
  461. -])# _LT_COMPILER_BOILERPLATE
  462. +# _LT_FORMAT_COMMENT([COMMENT])
  463. +# -----------------------------
  464. +# Add leading comment marks to the start of each line, and a trailing
  465. +# full-stop to the whole comment if one is not present already.
  466. +m4_define([_LT_FORMAT_COMMENT],
  467. +[m4_ifval([$1], [
  468. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  469. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  470. +)])
  471. -# _LT_LINKER_BOILERPLATE
  472. -# ----------------------
  473. -# Check for linker boilerplate output or warnings with
  474. -# the simple link test code.
  475. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  476. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  477. -ac_outfile=conftest.$ac_objext
  478. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  479. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  480. -_lt_linker_boilerplate=`cat conftest.err`
  481. -$rm conftest*
  482. -])# _LT_LINKER_BOILERPLATE
  483. -# _LT_AC_SYS_LIBPATH_AIX
  484. -# ----------------------
  485. -# Links a minimal program and checks the executable
  486. -# for the system default hardcoded library path. In most cases,
  487. -# this is /usr/lib:/lib, but when the MPI compilers are used
  488. -# the location of the communication and MPI libs are included too.
  489. -# If we don't find anything, use the default library path according
  490. -# to the aix ld manual.
  491. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  492. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  493. -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  494. -lt_aix_libpath_sed='
  495. - /Import File Strings/,/^$/ {
  496. - /^0/ {
  497. - s/^0 *\(.*\)$/\1/
  498. - p
  499. - }
  500. - }'
  501. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  502. -# Check for a 64-bit object if we didn't find anything.
  503. -if test -z "$aix_libpath"; then
  504. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  505. -fi],[])
  506. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  507. -])# _LT_AC_SYS_LIBPATH_AIX
  508. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  509. +# -------------------------------------------------------------------
  510. +# CONFIGNAME is the name given to the value in the libtool script.
  511. +# VARNAME is the (base) name used in the configure script.
  512. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  513. +# VARNAME. Any other value will be used directly.
  514. +m4_define([_LT_DECL],
  515. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  516. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  517. + [m4_ifval([$1], [$1], [$2])])
  518. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  519. + m4_ifval([$4],
  520. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  521. + lt_dict_add_subkey([lt_decl_dict], [$2],
  522. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  523. +])
  524. -# _LT_AC_SHELL_INIT(ARG)
  525. -# ----------------------
  526. -AC_DEFUN([_LT_AC_SHELL_INIT],
  527. -[ifdef([AC_DIVERSION_NOTICE],
  528. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  529. - [AC_DIVERT_PUSH(NOTICE)])
  530. -$1
  531. -AC_DIVERT_POP
  532. -])# _LT_AC_SHELL_INIT
  533. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  534. +# --------------------------------------------------------
  535. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  536. +
  537. +
  538. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  539. +# ------------------------------------------------
  540. +m4_define([lt_decl_tag_varnames],
  541. +[_lt_decl_filter([tagged?], [yes], $@)])
  542. +
  543. +
  544. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  545. +# ---------------------------------------------------------
  546. +m4_define([_lt_decl_filter],
  547. +[m4_case([$#],
  548. + [0], [m4_fatal([$0: too few arguments: $#])],
  549. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  550. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  551. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  552. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  553. +])
  554. -# _LT_AC_PROG_ECHO_BACKSLASH
  555. -# --------------------------
  556. -# Add some code to the start of the generated configure script which
  557. -# will find an echo command which doesn't interpret backslashes.
  558. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  559. -[_LT_AC_SHELL_INIT([
  560. -# Check that we are running under the correct shell.
  561. -SHELL=${CONFIG_SHELL-/bin/sh}
  562. -case X$ECHO in
  563. -X*--fallback-echo)
  564. - # Remove one level of quotation (which was required for Make).
  565. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  566. - ;;
  567. -esac
  568. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  569. +# --------------------------------------------------
  570. +m4_define([lt_decl_quote_varnames],
  571. +[_lt_decl_filter([value], [1], $@)])
  572. +
  573. +
  574. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  575. +# ---------------------------------------------------
  576. +m4_define([lt_decl_dquote_varnames],
  577. +[_lt_decl_filter([value], [2], $@)])
  578. +
  579. +
  580. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  581. +# ---------------------------------------------------
  582. +m4_define([lt_decl_varnames_tagged],
  583. +[m4_assert([$# <= 2])dnl
  584. +_$0(m4_quote(m4_default([$1], [[, ]])),
  585. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  586. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  587. +m4_define([_lt_decl_varnames_tagged],
  588. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  589. +
  590. +
  591. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  592. +# ------------------------------------------------
  593. +m4_define([lt_decl_all_varnames],
  594. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  595. + m4_if([$2], [],
  596. + m4_quote(lt_decl_varnames),
  597. + m4_quote(m4_shift($@))))[]dnl
  598. +])
  599. +m4_define([_lt_decl_all_varnames],
  600. +[lt_join($@, lt_decl_varnames_tagged([$1],
  601. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  602. +])
  603. -echo=${ECHO-echo}
  604. -if test "X[$]1" = X--no-reexec; then
  605. - # Discard the --no-reexec flag, and continue.
  606. - shift
  607. -elif test "X[$]1" = X--fallback-echo; then
  608. - # Avoid inline document here, it may be left over
  609. - :
  610. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  611. - # Yippee, $echo works!
  612. - :
  613. -else
  614. - # Restart under the correct shell.
  615. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  616. -fi
  617. -if test "X[$]1" = X--fallback-echo; then
  618. - # used as fallback echo
  619. - shift
  620. - cat <<EOF
  621. -[$]*
  622. -EOF
  623. - exit 0
  624. -fi
  625. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  626. +# ------------------------------------
  627. +# Quote a variable value, and forward it to `config.status' so that its
  628. +# declaration there will have the same value as in `configure'. VARNAME
  629. +# must have a single quote delimited value for this to work.
  630. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  631. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  632. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  633. -# if CDPATH is set.
  634. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  635. -if test -z "$ECHO"; then
  636. -if test "X${echo_test_string+set}" != Xset; then
  637. -# find a string as large as possible, as long as the shell can cope with it
  638. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  639. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  640. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  641. - echo_test_string=`eval $cmd` &&
  642. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  643. - then
  644. - break
  645. - fi
  646. - done
  647. -fi
  648. +# _LT_CONFIG_STATUS_DECLARATIONS
  649. +# ------------------------------
  650. +# We delimit libtool config variables with single quotes, so when
  651. +# we write them to config.status, we have to be sure to quote all
  652. +# embedded single quotes properly. In configure, this macro expands
  653. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  654. +#
  655. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  656. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  657. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  658. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  659. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  660. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  661. - test "X$echo_testing_string" = "X$echo_test_string"; then
  662. - :
  663. -else
  664. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  665. - # backslashes. This makes it impossible to quote backslashes using
  666. - # echo "$something" | sed 's/\\/\\\\/g'
  667. - #
  668. - # So, first we look for a working echo in the user's PATH.
  669. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  670. - for dir in $PATH /usr/ucb; do
  671. - IFS="$lt_save_ifs"
  672. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  673. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  674. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  675. - test "X$echo_testing_string" = "X$echo_test_string"; then
  676. - echo="$dir/echo"
  677. - break
  678. - fi
  679. - done
  680. - IFS="$lt_save_ifs"
  681. +# _LT_LIBTOOL_TAGS
  682. +# ----------------
  683. +# Output comment and list of tags supported by the script
  684. +m4_defun([_LT_LIBTOOL_TAGS],
  685. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  686. +available_tags="_LT_TAGS"dnl
  687. +])
  688. - if test "X$echo" = Xecho; then
  689. - # We didn't find a better echo, so look for alternatives.
  690. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  691. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  692. - test "X$echo_testing_string" = "X$echo_test_string"; then
  693. - # This shell has a builtin print -r that does the trick.
  694. - echo='print -r'
  695. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  696. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  697. - # If we have ksh, try running configure again with it.
  698. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  699. - export ORIGINAL_CONFIG_SHELL
  700. - CONFIG_SHELL=/bin/ksh
  701. - export CONFIG_SHELL
  702. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  703. - else
  704. - # Try using printf.
  705. - echo='printf %s\n'
  706. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  707. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  708. - test "X$echo_testing_string" = "X$echo_test_string"; then
  709. - # Cool, printf works
  710. - :
  711. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  712. - test "X$echo_testing_string" = 'X\t' &&
  713. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  714. - test "X$echo_testing_string" = "X$echo_test_string"; then
  715. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  716. - export CONFIG_SHELL
  717. - SHELL="$CONFIG_SHELL"
  718. - export SHELL
  719. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  720. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  721. - test "X$echo_testing_string" = 'X\t' &&
  722. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  723. - test "X$echo_testing_string" = "X$echo_test_string"; then
  724. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  725. - else
  726. - # maybe with a smaller string...
  727. - prev=:
  728. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  729. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  730. - then
  731. - break
  732. - fi
  733. - prev="$cmd"
  734. - done
  735. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  736. +# -----------------------------------
  737. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  738. +# expand to a commented shell variable setting:
  739. +#
  740. +# # Some comment about what VAR is for.
  741. +# visible_name=$lt_internal_name
  742. +m4_define([_LT_LIBTOOL_DECLARE],
  743. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  744. + [description])))[]dnl
  745. +m4_pushdef([_libtool_name],
  746. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  747. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  748. + [0], [_libtool_name=[$]$1],
  749. + [1], [_libtool_name=$lt_[]$1],
  750. + [2], [_libtool_name=$lt_[]$1],
  751. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  752. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  753. +])
  754. - if test "$prev" != 'sed 50q "[$]0"'; then
  755. - echo_test_string=`eval $prev`
  756. - export echo_test_string
  757. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  758. - else
  759. - # Oops. We lost completely, so just stick with echo.
  760. - echo=echo
  761. - fi
  762. - fi
  763. - fi
  764. - fi
  765. -fi
  766. -fi
  767. -# Copy echo and quote the copy suitably for passing to libtool from
  768. -# the Makefile, instead of quoting the original, which is used later.
  769. -ECHO=$echo
  770. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  771. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  772. -fi
  773. +# _LT_LIBTOOL_CONFIG_VARS
  774. +# -----------------------
  775. +# Produce commented declarations of non-tagged libtool config variables
  776. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  777. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  778. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  779. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  780. +[m4_foreach([_lt_var],
  781. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  782. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  783. -AC_SUBST(ECHO)
  784. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  785. +# _LT_LIBTOOL_TAG_VARS(TAG)
  786. +# -------------------------
  787. +m4_define([_LT_LIBTOOL_TAG_VARS],
  788. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  789. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  790. -# _LT_AC_LOCK
  791. -# -----------
  792. -AC_DEFUN([_LT_AC_LOCK],
  793. -[AC_ARG_ENABLE([libtool-lock],
  794. - [AC_HELP_STRING([--disable-libtool-lock],
  795. - [avoid locking (might break parallel builds)])])
  796. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  797. -# Some flags need to be propagated to the compiler or linker for good
  798. -# libtool support.
  799. -case $host in
  800. -ia64-*-hpux*)
  801. - # Find out which ABI we are using.
  802. - echo 'int i;' > conftest.$ac_ext
  803. - if AC_TRY_EVAL(ac_compile); then
  804. - case `/usr/bin/file conftest.$ac_objext` in
  805. - *ELF-32*)
  806. - HPUX_IA64_MODE="32"
  807. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  808. +# ------------------------------
  809. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  810. +
  811. +
  812. +# _LT_CONFIG_COMMANDS
  813. +# -------------------
  814. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  815. +# variables for single and double quote escaping we saved from calls
  816. +# to _LT_DECL, we can put quote escaped variables declarations
  817. +# into `config.status', and then the shell code to quote escape them in
  818. +# for loops in `config.status'. Finally, any additional code accumulated
  819. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  820. +m4_defun([_LT_CONFIG_COMMANDS],
  821. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  822. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  823. + dnl instead of duplicating it all over again into config.status,
  824. + dnl then we will have config.status run $CONFIG_LT later, so it
  825. + dnl needs to know what name is stored there:
  826. + [AC_CONFIG_COMMANDS([libtool],
  827. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  828. + dnl If the libtool generation code is destined for config.status,
  829. + dnl expand the accumulated commands and init code now:
  830. + [AC_CONFIG_COMMANDS([libtool],
  831. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  832. +])#_LT_CONFIG_COMMANDS
  833. +
  834. +
  835. +# Initialize.
  836. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  837. +[
  838. +
  839. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  840. +# if CDPATH is set.
  841. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  842. +
  843. +sed_quote_subst='$sed_quote_subst'
  844. +double_quote_subst='$double_quote_subst'
  845. +delay_variable_subst='$delay_variable_subst'
  846. +_LT_CONFIG_STATUS_DECLARATIONS
  847. +LTCC='$LTCC'
  848. +LTCFLAGS='$LTCFLAGS'
  849. +compiler='$compiler_DEFAULT'
  850. +
  851. +# Quote evaled strings.
  852. +for var in lt_decl_all_varnames([[ \
  853. +]], lt_decl_quote_varnames); do
  854. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  855. + *[[\\\\\\\`\\"\\\$]]*)
  856. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  857. ;;
  858. - *ELF-64*)
  859. - HPUX_IA64_MODE="64"
  860. + *)
  861. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  862. ;;
  863. esac
  864. - fi
  865. - rm -rf conftest*
  866. - ;;
  867. -*-*-irix6*)
  868. - # Find out which ABI we are using.
  869. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  870. - if AC_TRY_EVAL(ac_compile); then
  871. - if test "$lt_cv_prog_gnu_ld" = yes; then
  872. - case `/usr/bin/file conftest.$ac_objext` in
  873. - *32-bit*)
  874. - LD="${LD-ld} -melf32bsmip"
  875. - ;;
  876. - *N32*)
  877. - LD="${LD-ld} -melf32bmipn32"
  878. - ;;
  879. - *64-bit*)
  880. - LD="${LD-ld} -melf64bmip"
  881. - ;;
  882. - esac
  883. - else
  884. - case `/usr/bin/file conftest.$ac_objext` in
  885. - *32-bit*)
  886. - LD="${LD-ld} -32"
  887. - ;;
  888. - *N32*)
  889. - LD="${LD-ld} -n32"
  890. - ;;
  891. - *64-bit*)
  892. - LD="${LD-ld} -64"
  893. - ;;
  894. - esac
  895. - fi
  896. - fi
  897. - rm -rf conftest*
  898. - ;;
  899. +done
  900. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  901. -s390*-*linux*|sparc*-*linux*)
  902. - # Find out which ABI we are using.
  903. - echo 'int i;' > conftest.$ac_ext
  904. - if AC_TRY_EVAL(ac_compile); then
  905. - case `/usr/bin/file conftest.o` in
  906. - *32-bit*)
  907. - case $host in
  908. - x86_64-*kfreebsd*-gnu)
  909. - LD="${LD-ld} -m elf_i386_fbsd"
  910. - ;;
  911. - x86_64-*linux*)
  912. - LD="${LD-ld} -m elf_i386"
  913. - ;;
  914. - ppc64-*linux*|powerpc64-*linux*)
  915. - LD="${LD-ld} -m elf32ppclinux"
  916. - ;;
  917. - s390x-*linux*)
  918. - LD="${LD-ld} -m elf_s390"
  919. - ;;
  920. - sparc64-*linux*)
  921. - LD="${LD-ld} -m elf32_sparc"
  922. - ;;
  923. - esac
  924. +# Double-quote double-evaled strings.
  925. +for var in lt_decl_all_varnames([[ \
  926. +]], lt_decl_dquote_varnames); do
  927. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  928. + *[[\\\\\\\`\\"\\\$]]*)
  929. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  930. ;;
  931. - *64-bit*)
  932. - case $host in
  933. - x86_64-*kfreebsd*-gnu)
  934. - LD="${LD-ld} -m elf_x86_64_fbsd"
  935. - ;;
  936. - x86_64-*linux*)
  937. - LD="${LD-ld} -m elf_x86_64"
  938. - ;;
  939. - ppc*-*linux*|powerpc*-*linux*)
  940. - LD="${LD-ld} -m elf64ppc"
  941. - ;;
  942. - s390*-*linux*)
  943. - LD="${LD-ld} -m elf64_s390"
  944. - ;;
  945. - sparc*-*linux*)
  946. - LD="${LD-ld} -m elf64_sparc"
  947. - ;;
  948. - esac
  949. - ;;
  950. - esac
  951. - fi
  952. - rm -rf conftest*
  953. - ;;
  954. -
  955. -*-*-sco3.2v5*)
  956. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  957. - SAVE_CFLAGS="$CFLAGS"
  958. - CFLAGS="$CFLAGS -belf"
  959. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  960. - [AC_LANG_PUSH(C)
  961. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  962. - AC_LANG_POP])
  963. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  964. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  965. - CFLAGS="$SAVE_CFLAGS"
  966. - fi
  967. - ;;
  968. -sparc*-*solaris*)
  969. - # Find out which ABI we are using.
  970. - echo 'int i;' > conftest.$ac_ext
  971. - if AC_TRY_EVAL(ac_compile); then
  972. - case `/usr/bin/file conftest.o` in
  973. - *64-bit*)
  974. - case $lt_cv_prog_gnu_ld in
  975. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  976. - *) LD="${LD-ld} -64" ;;
  977. - esac
  978. + *)
  979. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  980. ;;
  981. esac
  982. - fi
  983. - rm -rf conftest*
  984. - ;;
  985. +done
  986. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  987. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  988. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  989. - AC_CHECK_TOOL(AS, as, false)
  990. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  991. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  992. +case \$lt_ECHO in
  993. +*'\\\[$]0 --fallback-echo"')dnl "
  994. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  995. ;;
  996. - ])
  997. esac
  998. -need_locks="$enable_libtool_lock"
  999. +_LT_OUTPUT_LIBTOOL_INIT
  1000. +])
  1001. -])# _LT_AC_LOCK
  1002. +# LT_OUTPUT
  1003. +# ---------
  1004. +# This macro allows early generation of the libtool script (before
  1005. +# AC_OUTPUT is called), incase it is used in configure for compilation
  1006. +# tests.
  1007. +AC_DEFUN([LT_OUTPUT],
  1008. +[: ${CONFIG_LT=./config.lt}
  1009. +AC_MSG_NOTICE([creating $CONFIG_LT])
  1010. +cat >"$CONFIG_LT" <<_LTEOF
  1011. +#! $SHELL
  1012. +# Generated by $as_me.
  1013. +# Run this file to recreate a libtool stub with the current configuration.
  1014. +
  1015. +lt_cl_silent=false
  1016. +SHELL=\${CONFIG_SHELL-$SHELL}
  1017. +_LTEOF
  1018. +
  1019. +cat >>"$CONFIG_LT" <<\_LTEOF
  1020. +AS_SHELL_SANITIZE
  1021. +_AS_PREPARE
  1022. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1023. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1024. -# ----------------------------------------------------------------
  1025. -# Check whether the given compiler option works
  1026. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1027. -[AC_REQUIRE([LT_AC_PROG_SED])
  1028. -AC_CACHE_CHECK([$1], [$2],
  1029. - [$2=no
  1030. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1031. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1032. - lt_compiler_flag="$3"
  1033. - # Insert the option either (1) after the last *FLAGS variable, or
  1034. - # (2) before a word containing "conftest.", or (3) at the end.
  1035. - # Note that $ac_compile itself does not contain backslashes and begins
  1036. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1037. - # The option is referenced via a variable to avoid confusing sed.
  1038. - lt_compile=`echo "$ac_compile" | $SED \
  1039. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1040. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1041. - -e 's:$: $lt_compiler_flag:'`
  1042. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1043. - (eval "$lt_compile" 2>conftest.err)
  1044. - ac_status=$?
  1045. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1046. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1047. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1048. - # The compiler can only warn and ignore the option if not recognized
  1049. - # So say no if there are warnings other than the usual output.
  1050. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1051. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1052. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1053. - $2=yes
  1054. - fi
  1055. - fi
  1056. - $rm conftest*
  1057. -])
  1058. +exec AS_MESSAGE_FD>&1
  1059. +exec AS_MESSAGE_LOG_FD>>config.log
  1060. +{
  1061. + echo
  1062. + AS_BOX([Running $as_me.])
  1063. +} >&AS_MESSAGE_LOG_FD
  1064. +
  1065. +lt_cl_help="\
  1066. +\`$as_me' creates a local libtool stub from the current configuration,
  1067. +for use in further configure time tests before the real libtool is
  1068. +generated.
  1069. +
  1070. +Usage: $[0] [[OPTIONS]]
  1071. +
  1072. + -h, --help print this help, then exit
  1073. + -V, --version print version number, then exit
  1074. + -q, --quiet do not print progress messages
  1075. + -d, --debug don't remove temporary files
  1076. +
  1077. +Report bugs to <bug-libtool@gnu.org>."
  1078. +
  1079. +lt_cl_version="\
  1080. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1081. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1082. +configured by $[0], generated by m4_PACKAGE_STRING.
  1083. +
  1084. +Copyright (C) 2008 Free Software Foundation, Inc.
  1085. +This config.lt script is free software; the Free Software Foundation
  1086. +gives unlimited permision to copy, distribute and modify it."
  1087. -if test x"[$]$2" = xyes; then
  1088. - ifelse([$5], , :, [$5])
  1089. -else
  1090. - ifelse([$6], , :, [$6])
  1091. -fi
  1092. -])# AC_LIBTOOL_COMPILER_OPTION
  1093. +while test $[#] != 0
  1094. +do
  1095. + case $[1] in
  1096. + --version | --v* | -V )
  1097. + echo "$lt_cl_version"; exit 0 ;;
  1098. + --help | --h* | -h )
  1099. + echo "$lt_cl_help"; exit 0 ;;
  1100. + --debug | --d* | -d )
  1101. + debug=: ;;
  1102. + --quiet | --q* | --silent | --s* | -q )
  1103. + lt_cl_silent=: ;;
  1104. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1105. +Try \`$[0] --help' for more information.]) ;;
  1106. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1107. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1108. -# ------------------------------------------------------------
  1109. -# Check whether the given compiler option works
  1110. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1111. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1112. -AC_CACHE_CHECK([$1], [$2],
  1113. - [$2=no
  1114. - save_LDFLAGS="$LDFLAGS"
  1115. - LDFLAGS="$LDFLAGS $3"
  1116. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1117. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1118. - # The linker can only warn and ignore the option if not recognized
  1119. - # So say no if there are warnings
  1120. - if test -s conftest.err; then
  1121. - # Append any errors to the config.log.
  1122. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1123. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1124. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1125. - if diff conftest.exp conftest.er2 >/dev/null; then
  1126. - $2=yes
  1127. - fi
  1128. - else
  1129. - $2=yes
  1130. - fi
  1131. - fi
  1132. - $rm conftest*
  1133. - LDFLAGS="$save_LDFLAGS"
  1134. -])
  1135. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1136. +Try \`$[0] --help' for more information.]) ;;
  1137. + esac
  1138. + shift
  1139. +done
  1140. -if test x"[$]$2" = xyes; then
  1141. - ifelse([$4], , :, [$4])
  1142. -else
  1143. - ifelse([$5], , :, [$5])
  1144. +if $lt_cl_silent; then
  1145. + exec AS_MESSAGE_FD>/dev/null
  1146. fi
  1147. -])# AC_LIBTOOL_LINKER_OPTION
  1148. +_LTEOF
  1149. +cat >>"$CONFIG_LT" <<_LTEOF
  1150. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1151. +_LTEOF
  1152. +
  1153. +cat >>"$CONFIG_LT" <<\_LTEOF
  1154. +AC_MSG_NOTICE([creating $ofile])
  1155. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1156. +AS_EXIT(0)
  1157. +_LTEOF
  1158. +chmod +x "$CONFIG_LT"
  1159. +
  1160. +# configure is writing to config.log, but config.lt does its own redirection,
  1161. +# appending to config.log, which fails on DOS, as config.log is still kept
  1162. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1163. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1164. +if test "$no_create" != yes; then
  1165. + lt_cl_success=:
  1166. + test "$silent" = yes &&
  1167. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1168. + exec AS_MESSAGE_LOG_FD>/dev/null
  1169. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1170. + exec AS_MESSAGE_LOG_FD>>config.log
  1171. + $lt_cl_success || AS_EXIT(1)
  1172. +fi
  1173. +])# LT_OUTPUT
  1174. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1175. -# --------------------------
  1176. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1177. -[# find the maximum length of command line arguments
  1178. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1179. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1180. - i=0
  1181. - teststring="ABCD"
  1182. - case $build_os in
  1183. - msdosdjgpp*)
  1184. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1185. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1186. - # during glob expansion). Even if it were fixed, the result of this
  1187. - # check would be larger than it should be.
  1188. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1189. - ;;
  1190. +# _LT_CONFIG(TAG)
  1191. +# ---------------
  1192. +# If TAG is the built-in tag, create an initial libtool script with a
  1193. +# default configuration from the untagged config vars. Otherwise add code
  1194. +# to config.status for appending the configuration named by TAG from the
  1195. +# matching tagged config vars.
  1196. +m4_defun([_LT_CONFIG],
  1197. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1198. +_LT_CONFIG_SAVE_COMMANDS([
  1199. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1200. + m4_if(_LT_TAG, [C], [
  1201. + # See if we are running on zsh, and set the options which allow our
  1202. + # commands through without removal of \ escapes.
  1203. + if test -n "${ZSH_VERSION+set}" ; then
  1204. + setopt NO_GLOB_SUBST
  1205. + fi
  1206. - gnu*)
  1207. - # Under GNU Hurd, this test is not required because there is
  1208. - # no limit to the length of command line arguments.
  1209. - # Libtool will interpret -1 as no limit whatsoever
  1210. - lt_cv_sys_max_cmd_len=-1;
  1211. - ;;
  1212. + cfgfile="${ofile}T"
  1213. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1214. + $RM "$cfgfile"
  1215. - cygwin* | mingw*)
  1216. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1217. - # about 5 minutes as the teststring grows exponentially.
  1218. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1219. - # you end up with a "frozen" computer, even though with patience
  1220. - # the test eventually succeeds (with a max line length of 256k).
  1221. - # Instead, let's just punt: use the minimum linelength reported by
  1222. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1223. - lt_cv_sys_max_cmd_len=8192;
  1224. - ;;
  1225. + cat <<_LT_EOF >> "$cfgfile"
  1226. +#! $SHELL
  1227. - amigaos*)
  1228. - # On AmigaOS with pdksh, this test takes hours, literally.
  1229. - # So we just punt and use a minimum line length of 8192.
  1230. - lt_cv_sys_max_cmd_len=8192;
  1231. - ;;
  1232. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1233. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1234. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1235. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1236. +#
  1237. +_LT_COPYING
  1238. +_LT_LIBTOOL_TAGS
  1239. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1240. - # This has been around since 386BSD, at least. Likely further.
  1241. - if test -x /sbin/sysctl; then
  1242. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1243. - elif test -x /usr/sbin/sysctl; then
  1244. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1245. - else
  1246. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1247. - fi
  1248. - # And add a safety zone
  1249. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1250. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1251. - ;;
  1252. +# ### BEGIN LIBTOOL CONFIG
  1253. +_LT_LIBTOOL_CONFIG_VARS
  1254. +_LT_LIBTOOL_TAG_VARS
  1255. +# ### END LIBTOOL CONFIG
  1256. - interix*)
  1257. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1258. - lt_cv_sys_max_cmd_len=196608
  1259. - ;;
  1260. +_LT_EOF
  1261. - osf*)
  1262. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1263. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1264. - # nice to cause kernel panics so lets avoid the loop below.
  1265. - # First set a reasonable default.
  1266. - lt_cv_sys_max_cmd_len=16384
  1267. - #
  1268. - if test -x /sbin/sysconfig; then
  1269. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1270. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1271. - esac
  1272. - fi
  1273. - ;;
  1274. - sco3.2v5*)
  1275. - lt_cv_sys_max_cmd_len=102400
  1276. - ;;
  1277. - sysv5* | sco5v6* | sysv4.2uw2*)
  1278. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1279. - if test -n "$kargmax"; then
  1280. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1281. - else
  1282. - lt_cv_sys_max_cmd_len=32768
  1283. - fi
  1284. - ;;
  1285. - *)
  1286. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1287. - if test -n "$lt_cv_sys_max_cmd_len"; then
  1288. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1289. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1290. - else
  1291. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1292. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1293. - = "XX$teststring") >/dev/null 2>&1 &&
  1294. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1295. - lt_cv_sys_max_cmd_len=$new_result &&
  1296. - test $i != 17 # 1/2 MB should be enough
  1297. - do
  1298. - i=`expr $i + 1`
  1299. - teststring=$teststring$teststring
  1300. - done
  1301. - teststring=
  1302. - # Add a significant safety factor because C++ compilers can tack on massive
  1303. - # amounts of additional arguments before passing them to the linker.
  1304. - # It appears as though 1/2 is a usable value.
  1305. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1306. - fi
  1307. + case $host_os in
  1308. + aix3*)
  1309. + cat <<\_LT_EOF >> "$cfgfile"
  1310. +# AIX sometimes has problems with the GCC collect2 program. For some
  1311. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1312. +# vanish in a puff of smoke.
  1313. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1314. + COLLECT_NAMES=
  1315. + export COLLECT_NAMES
  1316. +fi
  1317. +_LT_EOF
  1318. ;;
  1319. esac
  1320. -])
  1321. -if test -n $lt_cv_sys_max_cmd_len ; then
  1322. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1323. -else
  1324. - AC_MSG_RESULT(none)
  1325. -fi
  1326. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1327. -
  1328. -# _LT_AC_CHECK_DLFCN
  1329. -# ------------------
  1330. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1331. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1332. -])# _LT_AC_CHECK_DLFCN
  1333. + _LT_PROG_LTMAIN
  1334. + # We use sed instead of cat because bash on DJGPP gets confused if
  1335. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1336. + # text mode, it properly converts lines to CR/LF. This bash problem
  1337. + # is reportedly fixed, but why not run on old versions too?
  1338. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1339. + || (rm -f "$cfgfile"; exit 1)
  1340. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1341. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1342. -# ---------------------------------------------------------------------
  1343. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1344. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1345. -if test "$cross_compiling" = yes; then :
  1346. - [$4]
  1347. -else
  1348. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1349. - lt_status=$lt_dlunknown
  1350. - cat > conftest.$ac_ext <<EOF
  1351. -[#line __oline__ "configure"
  1352. -#include "confdefs.h"
  1353. + _LT_PROG_XSI_SHELLFNS
  1354. -#if HAVE_DLFCN_H
  1355. -#include <dlfcn.h>
  1356. -#endif
  1357. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1358. + || (rm -f "$cfgfile"; exit 1)
  1359. -#include <stdio.h>
  1360. + mv -f "$cfgfile" "$ofile" ||
  1361. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1362. + chmod +x "$ofile"
  1363. +],
  1364. +[cat <<_LT_EOF >> "$ofile"
  1365. -#ifdef RTLD_GLOBAL
  1366. -# define LT_DLGLOBAL RTLD_GLOBAL
  1367. -#else
  1368. -# ifdef DL_GLOBAL
  1369. -# define LT_DLGLOBAL DL_GLOBAL
  1370. -# else
  1371. -# define LT_DLGLOBAL 0
  1372. -# endif
  1373. -#endif
  1374. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1375. +dnl in a comment (ie after a #).
  1376. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1377. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1378. +# ### END LIBTOOL TAG CONFIG: $1
  1379. +_LT_EOF
  1380. +])dnl /m4_if
  1381. +],
  1382. +[m4_if([$1], [], [
  1383. + PACKAGE='$PACKAGE'
  1384. + VERSION='$VERSION'
  1385. + TIMESTAMP='$TIMESTAMP'
  1386. + RM='$RM'
  1387. + ofile='$ofile'], [])
  1388. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1389. +])# _LT_CONFIG
  1390. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1391. - find out it does not work in some platform. */
  1392. -#ifndef LT_DLLAZY_OR_NOW
  1393. -# ifdef RTLD_LAZY
  1394. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1395. -# else
  1396. -# ifdef DL_LAZY
  1397. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1398. -# else
  1399. -# ifdef RTLD_NOW
  1400. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1401. -# else
  1402. -# ifdef DL_NOW
  1403. -# define LT_DLLAZY_OR_NOW DL_NOW
  1404. -# else
  1405. -# define LT_DLLAZY_OR_NOW 0
  1406. -# endif
  1407. -# endif
  1408. -# endif
  1409. -# endif
  1410. -#endif
  1411. -#ifdef __cplusplus
  1412. -extern "C" void exit (int);
  1413. -#endif
  1414. +# LT_SUPPORTED_TAG(TAG)
  1415. +# ---------------------
  1416. +# Trace this macro to discover what tags are supported by the libtool
  1417. +# --tag option, using:
  1418. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1419. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1420. -void fnord() { int i=42;}
  1421. -int main ()
  1422. -{
  1423. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1424. - int status = $lt_dlunknown;
  1425. - if (self)
  1426. - {
  1427. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1428. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1429. - /* dlclose (self); */
  1430. - }
  1431. - else
  1432. - puts (dlerror ());
  1433. +# C support is built-in for now
  1434. +m4_define([_LT_LANG_C_enabled], [])
  1435. +m4_define([_LT_TAGS], [])
  1436. - exit (status);
  1437. -}]
  1438. -EOF
  1439. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1440. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1441. - lt_status=$?
  1442. - case x$lt_status in
  1443. - x$lt_dlno_uscore) $1 ;;
  1444. - x$lt_dlneed_uscore) $2 ;;
  1445. - x$lt_dlunknown|x*) $3 ;;
  1446. - esac
  1447. - else :
  1448. - # compilation failed
  1449. - $3
  1450. - fi
  1451. -fi
  1452. -rm -fr conftest*
  1453. -])# _LT_AC_TRY_DLOPEN_SELF
  1454. +# LT_LANG(LANG)
  1455. +# -------------
  1456. +# Enable libtool support for the given language if not already enabled.
  1457. +AC_DEFUN([LT_LANG],
  1458. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1459. +m4_case([$1],
  1460. + [C], [_LT_LANG(C)],
  1461. + [C++], [_LT_LANG(CXX)],
  1462. + [Java], [_LT_LANG(GCJ)],
  1463. + [Fortran 77], [_LT_LANG(F77)],
  1464. + [Fortran], [_LT_LANG(FC)],
  1465. + [Windows Resource], [_LT_LANG(RC)],
  1466. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1467. + [_LT_LANG($1)],
  1468. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1469. +])# LT_LANG
  1470. -# AC_LIBTOOL_DLOPEN_SELF
  1471. -# ----------------------
  1472. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1473. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1474. -if test "x$enable_dlopen" != xyes; then
  1475. - enable_dlopen=unknown
  1476. - enable_dlopen_self=unknown
  1477. - enable_dlopen_self_static=unknown
  1478. -else
  1479. - lt_cv_dlopen=no
  1480. - lt_cv_dlopen_libs=
  1481. - case $host_os in
  1482. - beos*)
  1483. - lt_cv_dlopen="load_add_on"
  1484. - lt_cv_dlopen_libs=
  1485. - lt_cv_dlopen_self=yes
  1486. - ;;
  1487. +# _LT_LANG(LANGNAME)
  1488. +# ------------------
  1489. +m4_defun([_LT_LANG],
  1490. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1491. + [LT_SUPPORTED_TAG([$1])dnl
  1492. + m4_append([_LT_TAGS], [$1 ])dnl
  1493. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1494. + _LT_LANG_$1_CONFIG($1)])dnl
  1495. +])# _LT_LANG
  1496. - mingw* | pw32*)
  1497. - lt_cv_dlopen="LoadLibrary"
  1498. - lt_cv_dlopen_libs=
  1499. - ;;
  1500. - cygwin*)
  1501. - lt_cv_dlopen="dlopen"
  1502. - lt_cv_dlopen_libs=
  1503. - ;;
  1504. +# _LT_LANG_DEFAULT_CONFIG
  1505. +# -----------------------
  1506. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1507. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1508. + [LT_LANG(CXX)],
  1509. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1510. +
  1511. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1512. + [LT_LANG(F77)],
  1513. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1514. +
  1515. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1516. + [LT_LANG(FC)],
  1517. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1518. +
  1519. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1520. +dnl pulling things in needlessly.
  1521. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1522. + [LT_LANG(GCJ)],
  1523. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1524. + [LT_LANG(GCJ)],
  1525. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1526. + [LT_LANG(GCJ)],
  1527. + [m4_ifdef([AC_PROG_GCJ],
  1528. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1529. + m4_ifdef([A][M_PROG_GCJ],
  1530. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1531. + m4_ifdef([LT_PROG_GCJ],
  1532. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1533. +
  1534. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1535. + [LT_LANG(RC)],
  1536. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1537. +])# _LT_LANG_DEFAULT_CONFIG
  1538. +
  1539. +# Obsolete macros:
  1540. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1541. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1542. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1543. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1544. +dnl aclocal-1.4 backwards compatibility:
  1545. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1546. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1547. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1548. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1549. - darwin*)
  1550. - # if libdl is installed we need to link against it
  1551. - AC_CHECK_LIB([dl], [dlopen],
  1552. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1553. - lt_cv_dlopen="dyld"
  1554. - lt_cv_dlopen_libs=
  1555. - lt_cv_dlopen_self=yes
  1556. - ])
  1557. - ;;
  1558. - *)
  1559. - AC_CHECK_FUNC([shl_load],
  1560. - [lt_cv_dlopen="shl_load"],
  1561. - [AC_CHECK_LIB([dld], [shl_load],
  1562. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1563. - [AC_CHECK_FUNC([dlopen],
  1564. - [lt_cv_dlopen="dlopen"],
  1565. - [AC_CHECK_LIB([dl], [dlopen],
  1566. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1567. - [AC_CHECK_LIB([svld], [dlopen],
  1568. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1569. - [AC_CHECK_LIB([dld], [dld_link],
  1570. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1571. - ])
  1572. - ])
  1573. - ])
  1574. - ])
  1575. - ])
  1576. - ;;
  1577. - esac
  1578. +# _LT_TAG_COMPILER
  1579. +# ----------------
  1580. +m4_defun([_LT_TAG_COMPILER],
  1581. +[AC_REQUIRE([AC_PROG_CC])dnl
  1582. - if test "x$lt_cv_dlopen" != xno; then
  1583. - enable_dlopen=yes
  1584. - else
  1585. - enable_dlopen=no
  1586. - fi
  1587. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1588. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1589. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1590. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1591. - case $lt_cv_dlopen in
  1592. - dlopen)
  1593. - save_CPPFLAGS="$CPPFLAGS"
  1594. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1595. +# If no C compiler was specified, use CC.
  1596. +LTCC=${LTCC-"$CC"}
  1597. - save_LDFLAGS="$LDFLAGS"
  1598. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1599. +# If no C compiler flags were specified, use CFLAGS.
  1600. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1601. - save_LIBS="$LIBS"
  1602. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1603. +# Allow CC to be a program name with arguments.
  1604. +compiler=$CC
  1605. +])# _LT_TAG_COMPILER
  1606. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1607. - lt_cv_dlopen_self, [dnl
  1608. - _LT_AC_TRY_DLOPEN_SELF(
  1609. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1610. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1611. - ])
  1612. - if test "x$lt_cv_dlopen_self" = xyes; then
  1613. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1614. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1615. - lt_cv_dlopen_self_static, [dnl
  1616. - _LT_AC_TRY_DLOPEN_SELF(
  1617. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1618. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1619. - ])
  1620. - fi
  1621. +# _LT_COMPILER_BOILERPLATE
  1622. +# ------------------------
  1623. +# Check for compiler boilerplate output or warnings with
  1624. +# the simple compiler test code.
  1625. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1626. +[m4_require([_LT_DECL_SED])dnl
  1627. +ac_outfile=conftest.$ac_objext
  1628. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1629. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1630. +_lt_compiler_boilerplate=`cat conftest.err`
  1631. +$RM conftest*
  1632. +])# _LT_COMPILER_BOILERPLATE
  1633. - CPPFLAGS="$save_CPPFLAGS"
  1634. - LDFLAGS="$save_LDFLAGS"
  1635. - LIBS="$save_LIBS"
  1636. - ;;
  1637. - esac
  1638. - case $lt_cv_dlopen_self in
  1639. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1640. - *) enable_dlopen_self=unknown ;;
  1641. - esac
  1642. +# _LT_LINKER_BOILERPLATE
  1643. +# ----------------------
  1644. +# Check for linker boilerplate output or warnings with
  1645. +# the simple link test code.
  1646. +m4_defun([_LT_LINKER_BOILERPLATE],
  1647. +[m4_require([_LT_DECL_SED])dnl
  1648. +ac_outfile=conftest.$ac_objext
  1649. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1650. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1651. +_lt_linker_boilerplate=`cat conftest.err`
  1652. +$RM -r conftest*
  1653. +])# _LT_LINKER_BOILERPLATE
  1654. - case $lt_cv_dlopen_self_static in
  1655. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1656. - *) enable_dlopen_self_static=unknown ;;
  1657. +# _LT_REQUIRED_DARWIN_CHECKS
  1658. +# -------------------------
  1659. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1660. + case $host_os in
  1661. + rhapsody* | darwin*)
  1662. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1663. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1664. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1665. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1666. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1667. + _LT_DECL([], [DSYMUTIL], [1],
  1668. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1669. + _LT_DECL([], [NMEDIT], [1],
  1670. + [Tool to change global to local symbols on Mac OS X])
  1671. + _LT_DECL([], [LIPO], [1],
  1672. + [Tool to manipulate fat objects and archives on Mac OS X])
  1673. + _LT_DECL([], [OTOOL], [1],
  1674. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1675. + _LT_DECL([], [OTOOL64], [1],
  1676. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1677. +
  1678. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1679. + [lt_cv_apple_cc_single_mod=no
  1680. + if test -z "${LT_MULTI_MODULE}"; then
  1681. + # By default we will add the -single_module flag. You can override
  1682. + # by either setting the environment variable LT_MULTI_MODULE
  1683. + # non-empty at configure time, or by adding -multi_module to the
  1684. + # link flags.
  1685. + rm -rf libconftest.dylib*
  1686. + echo "int foo(void){return 1;}" > conftest.c
  1687. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1688. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1689. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1690. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1691. + _lt_result=$?
  1692. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1693. + lt_cv_apple_cc_single_mod=yes
  1694. + else
  1695. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1696. + fi
  1697. + rm -rf libconftest.dylib*
  1698. + rm -f conftest.*
  1699. + fi])
  1700. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1701. + [lt_cv_ld_exported_symbols_list],
  1702. + [lt_cv_ld_exported_symbols_list=no
  1703. + save_LDFLAGS=$LDFLAGS
  1704. + echo "_main" > conftest.sym
  1705. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1706. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1707. + [lt_cv_ld_exported_symbols_list=yes],
  1708. + [lt_cv_ld_exported_symbols_list=no])
  1709. + LDFLAGS="$save_LDFLAGS"
  1710. + ])
  1711. + case $host_os in
  1712. + rhapsody* | darwin1.[[012]])
  1713. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1714. + darwin1.*)
  1715. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1716. + darwin*) # darwin 5.x on
  1717. + # if running on 10.5 or later, the deployment target defaults
  1718. + # to the OS version, if on x86, and 10.4, the deployment
  1719. + # target defaults to 10.4. Don't you love it?
  1720. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1721. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1722. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1723. + 10.[[012]]*)
  1724. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1725. + 10.*)
  1726. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1727. + esac
  1728. + ;;
  1729. + esac
  1730. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1731. + _lt_dar_single_mod='$single_module'
  1732. + fi
  1733. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1734. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1735. + else
  1736. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1737. + fi
  1738. + if test "$DSYMUTIL" != ":"; then
  1739. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1740. + else
  1741. + _lt_dsymutil=
  1742. + fi
  1743. + ;;
  1744. esac
  1745. -fi
  1746. -])# AC_LIBTOOL_DLOPEN_SELF
  1747. -
  1748. -
  1749. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1750. -# ---------------------------------
  1751. -# Check to see if options -c and -o are simultaneously supported by compiler
  1752. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1753. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1754. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1755. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1756. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1757. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1758. - $rm -r conftest 2>/dev/null
  1759. - mkdir conftest
  1760. - cd conftest
  1761. - mkdir out
  1762. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1763. -
  1764. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1765. - # Insert the option either (1) after the last *FLAGS variable, or
  1766. - # (2) before a word containing "conftest.", or (3) at the end.
  1767. - # Note that $ac_compile itself does not contain backslashes and begins
  1768. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1769. - lt_compile=`echo "$ac_compile" | $SED \
  1770. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1771. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1772. - -e 's:$: $lt_compiler_flag:'`
  1773. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1774. - (eval "$lt_compile" 2>out/conftest.err)
  1775. - ac_status=$?
  1776. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1777. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1778. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1779. - then
  1780. - # The compiler can only warn and ignore the option if not recognized
  1781. - # So say no if there are warnings
  1782. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1783. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1784. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1785. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1786. - fi
  1787. - fi
  1788. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1789. - $rm conftest*
  1790. - # SGI C++ compiler will create directory out/ii_files/ for
  1791. - # template instantiation
  1792. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1793. - $rm out/* && rmdir out
  1794. - cd ..
  1795. - rmdir conftest
  1796. - $rm conftest*
  1797. ])
  1798. -])# AC_LIBTOOL_PROG_CC_C_O
  1799. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1800. -# -----------------------------------------
  1801. -# Check to see if we can do hard links to lock some files if needed
  1802. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1803. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1804. -
  1805. -hard_links="nottested"
  1806. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1807. - # do not overwrite the value of need_locks provided by the user
  1808. - AC_MSG_CHECKING([if we can lock with hard links])
  1809. - hard_links=yes
  1810. - $rm conftest*
  1811. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1812. - touch conftest.a
  1813. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1814. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1815. - AC_MSG_RESULT([$hard_links])
  1816. - if test "$hard_links" = no; then
  1817. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1818. - need_locks=warn
  1819. +# _LT_DARWIN_LINKER_FEATURES
  1820. +# --------------------------
  1821. +# Checks for linker and compiler features on darwin
  1822. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1823. +[
  1824. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1825. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1826. + _LT_TAGVAR(hardcode_direct, $1)=no
  1827. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1828. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1829. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1830. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1831. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1832. + case $cc_basename in
  1833. + ifort*) _lt_dar_can_shared=yes ;;
  1834. + *) _lt_dar_can_shared=$GCC ;;
  1835. + esac
  1836. + if test "$_lt_dar_can_shared" = "yes"; then
  1837. + output_verbose_link_cmd=echo
  1838. + _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}"
  1839. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1840. + _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}"
  1841. + _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}"
  1842. + m4_if([$1], [CXX],
  1843. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1844. + _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}"
  1845. + _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}"
  1846. + fi
  1847. +],[])
  1848. + else
  1849. + _LT_TAGVAR(ld_shlibs, $1)=no
  1850. fi
  1851. -else
  1852. - need_locks=no
  1853. -fi
  1854. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1855. -
  1856. +])
  1857. -# AC_LIBTOOL_OBJDIR
  1858. -# -----------------
  1859. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1860. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1861. -[rm -f .libs 2>/dev/null
  1862. -mkdir .libs 2>/dev/null
  1863. -if test -d .libs; then
  1864. - lt_cv_objdir=.libs
  1865. -else
  1866. - # MS-DOS does not allow filenames that begin with a dot.
  1867. - lt_cv_objdir=_libs
  1868. -fi
  1869. -rmdir .libs 2>/dev/null])
  1870. -objdir=$lt_cv_objdir
  1871. -])# AC_LIBTOOL_OBJDIR
  1872. +# _LT_SYS_MODULE_PATH_AIX
  1873. +# -----------------------
  1874. +# Links a minimal program and checks the executable
  1875. +# for the system default hardcoded library path. In most cases,
  1876. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1877. +# the location of the communication and MPI libs are included too.
  1878. +# If we don't find anything, use the default library path according
  1879. +# to the aix ld manual.
  1880. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1881. +[m4_require([_LT_DECL_SED])dnl
  1882. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1883. +lt_aix_libpath_sed='
  1884. + /Import File Strings/,/^$/ {
  1885. + /^0/ {
  1886. + s/^0 *\(.*\)$/\1/
  1887. + p
  1888. + }
  1889. + }'
  1890. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1891. +# Check for a 64-bit object if we didn't find anything.
  1892. +if test -z "$aix_libpath"; then
  1893. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1894. +fi],[])
  1895. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1896. +])# _LT_SYS_MODULE_PATH_AIX
  1897. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1898. -# ----------------------------------------------
  1899. -# Check hardcoding attributes.
  1900. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1901. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1902. -_LT_AC_TAGVAR(hardcode_action, $1)=
  1903. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1904. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1905. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1906. +# _LT_SHELL_INIT(ARG)
  1907. +# -------------------
  1908. +m4_define([_LT_SHELL_INIT],
  1909. +[ifdef([AC_DIVERSION_NOTICE],
  1910. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1911. + [AC_DIVERT_PUSH(NOTICE)])
  1912. +$1
  1913. +AC_DIVERT_POP
  1914. +])# _LT_SHELL_INIT
  1915. - # We can hardcode non-existant directories.
  1916. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1917. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1918. - # have to relink, otherwise we might link with an installed library
  1919. - # when we should be linking with a yet-to-be-installed one
  1920. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1921. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1922. - # Linking always hardcodes the temporary library directory.
  1923. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1924. - else
  1925. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1926. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1927. - fi
  1928. -else
  1929. - # We cannot hardcode anything, or else we can only hardcode existing
  1930. - # directories.
  1931. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1932. -fi
  1933. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1934. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1935. - # Fast installation is not supported
  1936. - enable_fast_install=no
  1937. -elif test "$shlibpath_overrides_runpath" = yes ||
  1938. - test "$enable_shared" = no; then
  1939. - # Fast installation is not necessary
  1940. - enable_fast_install=needless
  1941. -fi
  1942. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1943. +# _LT_PROG_ECHO_BACKSLASH
  1944. +# -----------------------
  1945. +# Add some code to the start of the generated configure script which
  1946. +# will find an echo command which doesn't interpret backslashes.
  1947. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1948. +[_LT_SHELL_INIT([
  1949. +# Check that we are running under the correct shell.
  1950. +SHELL=${CONFIG_SHELL-/bin/sh}
  1951. +case X$lt_ECHO in
  1952. +X*--fallback-echo)
  1953. + # Remove one level of quotation (which was required for Make).
  1954. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1955. + ;;
  1956. +esac
  1957. -# AC_LIBTOOL_SYS_LIB_STRIP
  1958. -# ------------------------
  1959. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1960. -[striplib=
  1961. -old_striplib=
  1962. -AC_MSG_CHECKING([whether stripping libraries is possible])
  1963. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1964. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1965. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1966. - AC_MSG_RESULT([yes])
  1967. +ECHO=${lt_ECHO-echo}
  1968. +if test "X[$]1" = X--no-reexec; then
  1969. + # Discard the --no-reexec flag, and continue.
  1970. + shift
  1971. +elif test "X[$]1" = X--fallback-echo; then
  1972. + # Avoid inline document here, it may be left over
  1973. + :
  1974. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1975. + # Yippee, $ECHO works!
  1976. + :
  1977. else
  1978. -# FIXME - insert some real tests, host_os isn't really good enough
  1979. - case $host_os in
  1980. - darwin*)
  1981. - if test -n "$STRIP" ; then
  1982. - striplib="$STRIP -x"
  1983. - old_striplib="$STRIP -S"
  1984. - AC_MSG_RESULT([yes])
  1985. - else
  1986. - AC_MSG_RESULT([no])
  1987. + # Restart under the correct shell.
  1988. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1989. fi
  1990. - ;;
  1991. - *)
  1992. - AC_MSG_RESULT([no])
  1993. - ;;
  1994. - esac
  1995. +
  1996. +if test "X[$]1" = X--fallback-echo; then
  1997. + # used as fallback echo
  1998. + shift
  1999. + cat <<_LT_EOF
  2000. +[$]*
  2001. +_LT_EOF
  2002. + exit 0
  2003. fi
  2004. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2005. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  2006. +# if CDPATH is set.
  2007. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2008. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2009. -# -----------------------------
  2010. -# PORTME Fill in your ld.so characteristics
  2011. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2012. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2013. -AC_MSG_CHECKING([dynamic linker characteristics])
  2014. -library_names_spec=
  2015. -libname_spec='lib$name'
  2016. -soname_spec=
  2017. -shrext_cmds=".so"
  2018. -postinstall_cmds=
  2019. -postuninstall_cmds=
  2020. -finish_cmds=
  2021. -finish_eval=
  2022. -shlibpath_var=
  2023. -shlibpath_overrides_runpath=unknown
  2024. -version_type=none
  2025. -dynamic_linker="$host_os ld.so"
  2026. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2027. -m4_if($1,[],[
  2028. -if test "$GCC" = yes; then
  2029. - case $host_os in
  2030. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2031. - *) lt_awk_arg="/^libraries:/" ;;
  2032. - esac
  2033. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2034. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  2035. - # if the path contains ";" then we assume it to be the separator
  2036. - # otherwise default to the standard path separator (i.e. ":") - it is
  2037. - # assumed that no part of a normal pathname contains ";" but that should
  2038. - # okay in the real world where ";" in dirpaths is itself problematic.
  2039. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2040. - else
  2041. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2042. +if test -z "$lt_ECHO"; then
  2043. + if test "X${echo_test_string+set}" != Xset; then
  2044. + # find a string as large as possible, as long as the shell can cope with it
  2045. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  2046. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  2047. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  2048. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  2049. + then
  2050. + break
  2051. + fi
  2052. + done
  2053. fi
  2054. - # Ok, now we have the path, separated by spaces, we can step through it
  2055. - # and add multilib dir if necessary.
  2056. - lt_tmp_lt_search_path_spec=
  2057. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2058. - for lt_sys_path in $lt_search_path_spec; do
  2059. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2060. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2061. - else
  2062. - test -d "$lt_sys_path" && \
  2063. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2064. - fi
  2065. - done
  2066. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  2067. -BEGIN {RS=" "; FS="/|\n";} {
  2068. - lt_foo="";
  2069. - lt_count=0;
  2070. - for (lt_i = NF; lt_i > 0; lt_i--) {
  2071. - if ($lt_i != "" && $lt_i != ".") {
  2072. - if ($lt_i == "..") {
  2073. - lt_count++;
  2074. - } else {
  2075. - if (lt_count == 0) {
  2076. - lt_foo="/" $lt_i lt_foo;
  2077. - } else {
  2078. - lt_count--;
  2079. - }
  2080. - }
  2081. - }
  2082. - }
  2083. - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2084. - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2085. -}'`
  2086. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  2087. -else
  2088. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2089. -fi])
  2090. -need_lib_prefix=unknown
  2091. -hardcode_into_libs=no
  2092. -
  2093. -# when you set need_version to no, make sure it does not cause -set_version
  2094. -# flags to be left without arguments
  2095. -need_version=unknown
  2096. -case $host_os in
  2097. -aix3*)
  2098. - version_type=linux
  2099. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2100. - shlibpath_var=LIBPATH
  2101. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  2102. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  2103. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2104. + :
  2105. + else
  2106. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  2107. + # backslashes. This makes it impossible to quote backslashes using
  2108. + # echo "$something" | sed 's/\\/\\\\/g'
  2109. + #
  2110. + # So, first we look for a working echo in the user's PATH.
  2111. - # AIX 3 has no versioning support, so we append a major version to the name.
  2112. - soname_spec='${libname}${release}${shared_ext}$major'
  2113. - ;;
  2114. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2115. + for dir in $PATH /usr/ucb; do
  2116. + IFS="$lt_save_ifs"
  2117. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  2118. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  2119. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  2120. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2121. + ECHO="$dir/echo"
  2122. + break
  2123. + fi
  2124. + done
  2125. + IFS="$lt_save_ifs"
  2126. -aix4* | aix5*)
  2127. - version_type=linux
  2128. - need_lib_prefix=no
  2129. - need_version=no
  2130. - hardcode_into_libs=yes
  2131. - if test "$host_cpu" = ia64; then
  2132. - # AIX 5 supports IA64
  2133. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2134. - shlibpath_var=LD_LIBRARY_PATH
  2135. - else
  2136. - # With GCC up to 2.95.x, collect2 would create an import file
  2137. - # for dependence libraries. The import file would start with
  2138. - # the line `#! .'. This would cause the generated library to
  2139. - # depend on `.', always an invalid library. This was fixed in
  2140. - # development snapshots of GCC prior to 3.0.
  2141. - case $host_os in
  2142. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2143. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2144. - echo ' yes '
  2145. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2146. - :
  2147. + if test "X$ECHO" = Xecho; then
  2148. + # We didn't find a better echo, so look for alternatives.
  2149. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  2150. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  2151. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2152. + # This shell has a builtin print -r that does the trick.
  2153. + ECHO='print -r'
  2154. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  2155. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  2156. + # If we have ksh, try running configure again with it.
  2157. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  2158. + export ORIGINAL_CONFIG_SHELL
  2159. + CONFIG_SHELL=/bin/ksh
  2160. + export CONFIG_SHELL
  2161. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  2162. else
  2163. - can_build_shared=no
  2164. + # Try using printf.
  2165. + ECHO='printf %s\n'
  2166. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  2167. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  2168. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2169. + # Cool, printf works
  2170. + :
  2171. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2172. + test "X$echo_testing_string" = 'X\t' &&
  2173. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2174. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2175. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  2176. + export CONFIG_SHELL
  2177. + SHELL="$CONFIG_SHELL"
  2178. + export SHELL
  2179. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2180. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2181. + test "X$echo_testing_string" = 'X\t' &&
  2182. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2183. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2184. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2185. + else
  2186. + # maybe with a smaller string...
  2187. + prev=:
  2188. +
  2189. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2190. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2191. + then
  2192. + break
  2193. + fi
  2194. + prev="$cmd"
  2195. + done
  2196. +
  2197. + if test "$prev" != 'sed 50q "[$]0"'; then
  2198. + echo_test_string=`eval $prev`
  2199. + export echo_test_string
  2200. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2201. + else
  2202. + # Oops. We lost completely, so just stick with echo.
  2203. + ECHO=echo
  2204. + fi
  2205. + fi
  2206. fi
  2207. - ;;
  2208. - esac
  2209. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2210. - # soname into executable. Probably we can add versioning support to
  2211. - # collect2, so additional links can be useful in future.
  2212. - if test "$aix_use_runtimelinking" = yes; then
  2213. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2214. - # instead of lib<name>.a to let people know that these are not
  2215. - # typical AIX shared libraries.
  2216. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2217. - else
  2218. - # We preserve .a as extension for shared libraries through AIX4.2
  2219. - # and later when we are not doing run time linking.
  2220. - library_names_spec='${libname}${release}.a $libname.a'
  2221. - soname_spec='${libname}${release}${shared_ext}$major'
  2222. fi
  2223. - shlibpath_var=LIBPATH
  2224. fi
  2225. - ;;
  2226. +fi
  2227. -amigaos*)
  2228. - library_names_spec='$libname.ixlibrary $libname.a'
  2229. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2230. - 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'
  2231. - ;;
  2232. +# Copy echo and quote the copy suitably for passing to libtool from
  2233. +# the Makefile, instead of quoting the original, which is used later.
  2234. +lt_ECHO=$ECHO
  2235. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2236. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2237. +fi
  2238. -beos*)
  2239. - library_names_spec='${libname}${shared_ext}'
  2240. - dynamic_linker="$host_os ld.so"
  2241. - shlibpath_var=LIBRARY_PATH
  2242. - ;;
  2243. +AC_SUBST(lt_ECHO)
  2244. +])
  2245. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2246. +_LT_DECL([], [ECHO], [1],
  2247. + [An echo program that does not interpret backslashes])
  2248. +])# _LT_PROG_ECHO_BACKSLASH
  2249. -bsdi[[45]]*)
  2250. - version_type=linux
  2251. - need_version=no
  2252. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2253. - soname_spec='${libname}${release}${shared_ext}$major'
  2254. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2255. - shlibpath_var=LD_LIBRARY_PATH
  2256. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2257. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2258. - # the default ld.so.conf also contains /usr/contrib/lib and
  2259. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2260. - # libtool to hard-code these into programs
  2261. - ;;
  2262. -cygwin* | mingw* | pw32*)
  2263. - version_type=windows
  2264. - shrext_cmds=".dll"
  2265. - need_version=no
  2266. - need_lib_prefix=no
  2267. -
  2268. - case $GCC,$host_os in
  2269. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2270. - library_names_spec='$libname.dll.a'
  2271. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2272. - postinstall_cmds='base_file=`basename \${file}`~
  2273. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2274. - dldir=$destdir/`dirname \$dlpath`~
  2275. - test -d \$dldir || mkdir -p \$dldir~
  2276. - $install_prog $dir/$dlname \$dldir/$dlname~
  2277. - chmod a+x \$dldir/$dlname'
  2278. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2279. - dlpath=$dir/\$dldll~
  2280. - $rm \$dlpath'
  2281. - shlibpath_overrides_runpath=yes
  2282. +# _LT_ENABLE_LOCK
  2283. +# ---------------
  2284. +m4_defun([_LT_ENABLE_LOCK],
  2285. +[AC_ARG_ENABLE([libtool-lock],
  2286. + [AS_HELP_STRING([--disable-libtool-lock],
  2287. + [avoid locking (might break parallel builds)])])
  2288. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2289. - case $host_os in
  2290. - cygwin*)
  2291. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2292. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2293. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2294. - ;;
  2295. - mingw*)
  2296. - # MinGW DLLs use traditional 'lib' prefix
  2297. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2298. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2299. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2300. - # It is most probably a Windows format PATH printed by
  2301. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2302. - # path with ; separators, and with drive letters. We can handle the
  2303. - # drive letters (cygwin fileutils understands them), so leave them,
  2304. - # especially as we might pass files found there to a mingw objdump,
  2305. - # which wouldn't understand a cygwinified path. Ahh.
  2306. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2307. - else
  2308. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2309. - fi
  2310. - ;;
  2311. - pw32*)
  2312. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2313. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2314. - ;;
  2315. +# Some flags need to be propagated to the compiler or linker for good
  2316. +# libtool support.
  2317. +case $host in
  2318. +ia64-*-hpux*)
  2319. + # Find out which ABI we are using.
  2320. + echo 'int i;' > conftest.$ac_ext
  2321. + if AC_TRY_EVAL(ac_compile); then
  2322. + case `/usr/bin/file conftest.$ac_objext` in
  2323. + *ELF-32*)
  2324. + HPUX_IA64_MODE="32"
  2325. + ;;
  2326. + *ELF-64*)
  2327. + HPUX_IA64_MODE="64"
  2328. + ;;
  2329. esac
  2330. - ;;
  2331. -
  2332. - *)
  2333. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2334. - ;;
  2335. - esac
  2336. - dynamic_linker='Win32 ld.exe'
  2337. - # FIXME: first we should search . and the directory the executable is in
  2338. - shlibpath_var=PATH
  2339. + fi
  2340. + rm -rf conftest*
  2341. ;;
  2342. -
  2343. -darwin* | rhapsody*)
  2344. - dynamic_linker="$host_os dyld"
  2345. - version_type=darwin
  2346. - need_lib_prefix=no
  2347. - need_version=no
  2348. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2349. - soname_spec='${libname}${release}${major}$shared_ext'
  2350. - shlibpath_overrides_runpath=yes
  2351. - shlibpath_var=DYLD_LIBRARY_PATH
  2352. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2353. - m4_if([$1], [],[
  2354. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2355. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2356. +*-*-irix6*)
  2357. + # Find out which ABI we are using.
  2358. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2359. + if AC_TRY_EVAL(ac_compile); then
  2360. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2361. + case `/usr/bin/file conftest.$ac_objext` in
  2362. + *32-bit*)
  2363. + LD="${LD-ld} -melf32bsmip"
  2364. + ;;
  2365. + *N32*)
  2366. + LD="${LD-ld} -melf32bmipn32"
  2367. + ;;
  2368. + *64-bit*)
  2369. + LD="${LD-ld} -melf64bmip"
  2370. + ;;
  2371. + esac
  2372. + else
  2373. + case `/usr/bin/file conftest.$ac_objext` in
  2374. + *32-bit*)
  2375. + LD="${LD-ld} -32"
  2376. + ;;
  2377. + *N32*)
  2378. + LD="${LD-ld} -n32"
  2379. + ;;
  2380. + *64-bit*)
  2381. + LD="${LD-ld} -64"
  2382. + ;;
  2383. + esac
  2384. + fi
  2385. + fi
  2386. + rm -rf conftest*
  2387. ;;
  2388. -dgux*)
  2389. - version_type=linux
  2390. - need_lib_prefix=no
  2391. - need_version=no
  2392. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2393. - soname_spec='${libname}${release}${shared_ext}$major'
  2394. - shlibpath_var=LD_LIBRARY_PATH
  2395. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2396. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2397. + # Find out which ABI we are using.
  2398. + echo 'int i;' > conftest.$ac_ext
  2399. + if AC_TRY_EVAL(ac_compile); then
  2400. + case `/usr/bin/file conftest.o` in
  2401. + *32-bit*)
  2402. + case $host in
  2403. + x86_64-*kfreebsd*-gnu)
  2404. + LD="${LD-ld} -m elf_i386_fbsd"
  2405. + ;;
  2406. + x86_64-*linux*)
  2407. + LD="${LD-ld} -m elf_i386"
  2408. + ;;
  2409. + ppc64-*linux*|powerpc64-*linux*)
  2410. + LD="${LD-ld} -m elf32ppclinux"
  2411. + ;;
  2412. + s390x-*linux*)
  2413. + LD="${LD-ld} -m elf_s390"
  2414. + ;;
  2415. + sparc64-*linux*)
  2416. + LD="${LD-ld} -m elf32_sparc"
  2417. + ;;
  2418. + esac
  2419. + ;;
  2420. + *64-bit*)
  2421. + case $host in
  2422. + x86_64-*kfreebsd*-gnu)
  2423. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2424. + ;;
  2425. + x86_64-*linux*)
  2426. + LD="${LD-ld} -m elf_x86_64"
  2427. + ;;
  2428. + ppc*-*linux*|powerpc*-*linux*)
  2429. + LD="${LD-ld} -m elf64ppc"
  2430. + ;;
  2431. + s390*-*linux*|s390*-*tpf*)
  2432. + LD="${LD-ld} -m elf64_s390"
  2433. + ;;
  2434. + sparc*-*linux*)
  2435. + LD="${LD-ld} -m elf64_sparc"
  2436. + ;;
  2437. + esac
  2438. + ;;
  2439. + esac
  2440. + fi
  2441. + rm -rf conftest*
  2442. ;;
  2443. -freebsd1*)
  2444. - dynamic_linker=no
  2445. +*-*-sco3.2v5*)
  2446. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2447. + SAVE_CFLAGS="$CFLAGS"
  2448. + CFLAGS="$CFLAGS -belf"
  2449. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2450. + [AC_LANG_PUSH(C)
  2451. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2452. + AC_LANG_POP])
  2453. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2454. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2455. + CFLAGS="$SAVE_CFLAGS"
  2456. + fi
  2457. ;;
  2458. -
  2459. -freebsd* | dragonfly*)
  2460. - # DragonFly does not have aout. When/if they implement a new
  2461. - # versioning mechanism, adjust this.
  2462. - if test -x /usr/bin/objformat; then
  2463. - objformat=`/usr/bin/objformat`
  2464. - else
  2465. - case $host_os in
  2466. - freebsd[[123]]*) objformat=aout ;;
  2467. - *) objformat=elf ;;
  2468. +sparc*-*solaris*)
  2469. + # Find out which ABI we are using.
  2470. + echo 'int i;' > conftest.$ac_ext
  2471. + if AC_TRY_EVAL(ac_compile); then
  2472. + case `/usr/bin/file conftest.o` in
  2473. + *64-bit*)
  2474. + case $lt_cv_prog_gnu_ld in
  2475. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2476. + *)
  2477. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2478. + LD="${LD-ld} -64"
  2479. + fi
  2480. + ;;
  2481. + esac
  2482. + ;;
  2483. esac
  2484. fi
  2485. - version_type=freebsd-$objformat
  2486. - case $version_type in
  2487. - freebsd-elf*)
  2488. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2489. - need_version=no
  2490. - need_lib_prefix=no
  2491. - ;;
  2492. - freebsd-*)
  2493. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2494. - need_version=yes
  2495. - ;;
  2496. - esac
  2497. - shlibpath_var=LD_LIBRARY_PATH
  2498. - case $host_os in
  2499. - freebsd2*)
  2500. - shlibpath_overrides_runpath=yes
  2501. - ;;
  2502. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2503. - shlibpath_overrides_runpath=yes
  2504. - hardcode_into_libs=yes
  2505. - ;;
  2506. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2507. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2508. - shlibpath_overrides_runpath=no
  2509. - hardcode_into_libs=yes
  2510. - ;;
  2511. - *) # from 4.6 on, and DragonFly
  2512. - shlibpath_overrides_runpath=yes
  2513. - hardcode_into_libs=yes
  2514. - ;;
  2515. - esac
  2516. + rm -rf conftest*
  2517. ;;
  2518. +esac
  2519. -gnu*)
  2520. - version_type=linux
  2521. - need_lib_prefix=no
  2522. - need_version=no
  2523. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2524. - soname_spec='${libname}${release}${shared_ext}$major'
  2525. - shlibpath_var=LD_LIBRARY_PATH
  2526. - hardcode_into_libs=yes
  2527. - ;;
  2528. +need_locks="$enable_libtool_lock"
  2529. +])# _LT_ENABLE_LOCK
  2530. -hpux9* | hpux10* | hpux11*)
  2531. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2532. - # link against other versions.
  2533. - version_type=sunos
  2534. - need_lib_prefix=no
  2535. - need_version=no
  2536. - case $host_cpu in
  2537. - ia64*)
  2538. - shrext_cmds='.so'
  2539. - hardcode_into_libs=yes
  2540. - dynamic_linker="$host_os dld.so"
  2541. - shlibpath_var=LD_LIBRARY_PATH
  2542. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2543. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2544. - soname_spec='${libname}${release}${shared_ext}$major'
  2545. - if test "X$HPUX_IA64_MODE" = X32; then
  2546. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2547. - else
  2548. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2549. - fi
  2550. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2551. +
  2552. +# _LT_CMD_OLD_ARCHIVE
  2553. +# -------------------
  2554. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2555. +[AC_CHECK_TOOL(AR, ar, false)
  2556. +test -z "$AR" && AR=ar
  2557. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2558. +_LT_DECL([], [AR], [1], [The archiver])
  2559. +_LT_DECL([], [AR_FLAGS], [1])
  2560. +
  2561. +AC_CHECK_TOOL(STRIP, strip, :)
  2562. +test -z "$STRIP" && STRIP=:
  2563. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2564. +
  2565. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2566. +test -z "$RANLIB" && RANLIB=:
  2567. +_LT_DECL([], [RANLIB], [1],
  2568. + [Commands used to install an old-style archive])
  2569. +
  2570. +# Determine commands to create old-style static archives.
  2571. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2572. +old_postinstall_cmds='chmod 644 $oldlib'
  2573. +old_postuninstall_cmds=
  2574. +
  2575. +if test -n "$RANLIB"; then
  2576. + case $host_os in
  2577. + openbsd*)
  2578. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2579. ;;
  2580. - hppa*64*)
  2581. - shrext_cmds='.sl'
  2582. - hardcode_into_libs=yes
  2583. - dynamic_linker="$host_os dld.sl"
  2584. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2585. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2586. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2587. - soname_spec='${libname}${release}${shared_ext}$major'
  2588. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2589. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2590. - ;;
  2591. - *)
  2592. - shrext_cmds='.sl'
  2593. - dynamic_linker="$host_os dld.sl"
  2594. - shlibpath_var=SHLIB_PATH
  2595. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2596. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2597. - soname_spec='${libname}${release}${shared_ext}$major'
  2598. + *)
  2599. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2600. ;;
  2601. esac
  2602. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2603. - postinstall_cmds='chmod 555 $lib'
  2604. - ;;
  2605. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2606. +fi
  2607. +_LT_DECL([], [old_postinstall_cmds], [2])
  2608. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2609. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2610. + [Commands used to build an old-style archive])
  2611. +])# _LT_CMD_OLD_ARCHIVE
  2612. -interix[[3-9]]*)
  2613. - version_type=linux
  2614. - need_lib_prefix=no
  2615. - need_version=no
  2616. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2617. - soname_spec='${libname}${release}${shared_ext}$major'
  2618. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2619. - shlibpath_var=LD_LIBRARY_PATH
  2620. - shlibpath_overrides_runpath=no
  2621. - hardcode_into_libs=yes
  2622. - ;;
  2623. -irix5* | irix6* | nonstopux*)
  2624. - case $host_os in
  2625. - nonstopux*) version_type=nonstopux ;;
  2626. - *)
  2627. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2628. - version_type=linux
  2629. - else
  2630. - version_type=irix
  2631. - fi ;;
  2632. - esac
  2633. - need_lib_prefix=no
  2634. - need_version=no
  2635. - soname_spec='${libname}${release}${shared_ext}$major'
  2636. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2637. - case $host_os in
  2638. - irix5* | nonstopux*)
  2639. - libsuff= shlibsuff=
  2640. - ;;
  2641. - *)
  2642. - case $LD in # libtool.m4 will add one of these switches to LD
  2643. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2644. - libsuff= shlibsuff= libmagic=32-bit;;
  2645. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2646. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2647. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2648. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2649. - *) libsuff= shlibsuff= libmagic=never-match;;
  2650. - esac
  2651. - ;;
  2652. - esac
  2653. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2654. - shlibpath_overrides_runpath=no
  2655. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2656. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2657. - hardcode_into_libs=yes
  2658. - ;;
  2659. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2660. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2661. +# ----------------------------------------------------------------
  2662. +# Check whether the given compiler option works
  2663. +AC_DEFUN([_LT_COMPILER_OPTION],
  2664. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2665. +m4_require([_LT_DECL_SED])dnl
  2666. +AC_CACHE_CHECK([$1], [$2],
  2667. + [$2=no
  2668. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2669. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2670. + lt_compiler_flag="$3"
  2671. + # Insert the option either (1) after the last *FLAGS variable, or
  2672. + # (2) before a word containing "conftest.", or (3) at the end.
  2673. + # Note that $ac_compile itself does not contain backslashes and begins
  2674. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2675. + # The option is referenced via a variable to avoid confusing sed.
  2676. + lt_compile=`echo "$ac_compile" | $SED \
  2677. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2678. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2679. + -e 's:$: $lt_compiler_flag:'`
  2680. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2681. + (eval "$lt_compile" 2>conftest.err)
  2682. + ac_status=$?
  2683. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2684. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2685. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2686. + # The compiler can only warn and ignore the option if not recognized
  2687. + # So say no if there are warnings other than the usual output.
  2688. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2689. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2690. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2691. + $2=yes
  2692. + fi
  2693. + fi
  2694. + $RM conftest*
  2695. +])
  2696. -# No shared lib support for Linux oldld, aout, or coff.
  2697. -linux*oldld* | linux*aout* | linux*coff*)
  2698. - dynamic_linker=no
  2699. - ;;
  2700. +if test x"[$]$2" = xyes; then
  2701. + m4_if([$5], , :, [$5])
  2702. +else
  2703. + m4_if([$6], , :, [$6])
  2704. +fi
  2705. +])# _LT_COMPILER_OPTION
  2706. -# This must be Linux ELF.
  2707. -linux* | k*bsd*-gnu)
  2708. - version_type=linux
  2709. - need_lib_prefix=no
  2710. - need_version=no
  2711. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2712. - soname_spec='${libname}${release}${shared_ext}$major'
  2713. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2714. - shlibpath_var=LD_LIBRARY_PATH
  2715. - shlibpath_overrides_runpath=no
  2716. - # This implies no fast_install, which is unacceptable.
  2717. - # Some rework will be needed to allow for fast_install
  2718. - # before this can be enabled.
  2719. - hardcode_into_libs=yes
  2720. +# Old name:
  2721. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2722. +dnl aclocal-1.4 backwards compatibility:
  2723. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2724. +
  2725. +
  2726. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2727. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2728. +# ----------------------------------------------------
  2729. +# Check whether the given linker option works
  2730. +AC_DEFUN([_LT_LINKER_OPTION],
  2731. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2732. +m4_require([_LT_DECL_SED])dnl
  2733. +AC_CACHE_CHECK([$1], [$2],
  2734. + [$2=no
  2735. + save_LDFLAGS="$LDFLAGS"
  2736. + LDFLAGS="$LDFLAGS $3"
  2737. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2738. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2739. + # The linker can only warn and ignore the option if not recognized
  2740. + # So say no if there are warnings
  2741. + if test -s conftest.err; then
  2742. + # Append any errors to the config.log.
  2743. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2744. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2745. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2746. + if diff conftest.exp conftest.er2 >/dev/null; then
  2747. + $2=yes
  2748. + fi
  2749. + else
  2750. + $2=yes
  2751. + fi
  2752. + fi
  2753. + $RM -r conftest*
  2754. + LDFLAGS="$save_LDFLAGS"
  2755. +])
  2756. - # Append ld.so.conf contents to the search path
  2757. - if test -f /etc/ld.so.conf; then
  2758. - 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' ' '`
  2759. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2760. - fi
  2761. +if test x"[$]$2" = xyes; then
  2762. + m4_if([$4], , :, [$4])
  2763. +else
  2764. + m4_if([$5], , :, [$5])
  2765. +fi
  2766. +])# _LT_LINKER_OPTION
  2767. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2768. - # powerpc, because MkLinux only supported shared libraries with the
  2769. - # GNU dynamic linker. Since this was broken with cross compilers,
  2770. - # most powerpc-linux boxes support dynamic linking these days and
  2771. - # people can always --disable-shared, the test was removed, and we
  2772. - # assume the GNU/Linux dynamic linker is in use.
  2773. - dynamic_linker='GNU/Linux ld.so'
  2774. - ;;
  2775. +# Old name:
  2776. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2777. +dnl aclocal-1.4 backwards compatibility:
  2778. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2779. -netbsdelf*-gnu)
  2780. - version_type=linux
  2781. - need_lib_prefix=no
  2782. - need_version=no
  2783. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2784. - soname_spec='${libname}${release}${shared_ext}$major'
  2785. - shlibpath_var=LD_LIBRARY_PATH
  2786. - shlibpath_overrides_runpath=no
  2787. - hardcode_into_libs=yes
  2788. - dynamic_linker='NetBSD ld.elf_so'
  2789. - ;;
  2790. -netbsd*)
  2791. - version_type=sunos
  2792. - need_lib_prefix=no
  2793. - need_version=no
  2794. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2795. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2796. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2797. - dynamic_linker='NetBSD (a.out) ld.so'
  2798. - else
  2799. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2800. - soname_spec='${libname}${release}${shared_ext}$major'
  2801. - dynamic_linker='NetBSD ld.elf_so'
  2802. - fi
  2803. - shlibpath_var=LD_LIBRARY_PATH
  2804. - shlibpath_overrides_runpath=yes
  2805. - hardcode_into_libs=yes
  2806. - ;;
  2807. +# LT_CMD_MAX_LEN
  2808. +#---------------
  2809. +AC_DEFUN([LT_CMD_MAX_LEN],
  2810. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2811. +# find the maximum length of command line arguments
  2812. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2813. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2814. + i=0
  2815. + teststring="ABCD"
  2816. -newsos6)
  2817. - version_type=linux
  2818. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2819. - shlibpath_var=LD_LIBRARY_PATH
  2820. - shlibpath_overrides_runpath=yes
  2821. - ;;
  2822. + case $build_os in
  2823. + msdosdjgpp*)
  2824. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2825. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2826. + # during glob expansion). Even if it were fixed, the result of this
  2827. + # check would be larger than it should be.
  2828. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2829. + ;;
  2830. -nto-qnx*)
  2831. - version_type=linux
  2832. - need_lib_prefix=no
  2833. - need_version=no
  2834. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2835. - soname_spec='${libname}${release}${shared_ext}$major'
  2836. - shlibpath_var=LD_LIBRARY_PATH
  2837. - shlibpath_overrides_runpath=yes
  2838. - ;;
  2839. + gnu*)
  2840. + # Under GNU Hurd, this test is not required because there is
  2841. + # no limit to the length of command line arguments.
  2842. + # Libtool will interpret -1 as no limit whatsoever
  2843. + lt_cv_sys_max_cmd_len=-1;
  2844. + ;;
  2845. -openbsd*)
  2846. - version_type=sunos
  2847. - sys_lib_dlsearch_path_spec="/usr/lib"
  2848. - need_lib_prefix=no
  2849. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2850. - case $host_os in
  2851. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2852. - *) need_version=no ;;
  2853. - esac
  2854. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2855. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2856. - shlibpath_var=LD_LIBRARY_PATH
  2857. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2858. - case $host_os in
  2859. - openbsd2.[[89]] | openbsd2.[[89]].*)
  2860. - shlibpath_overrides_runpath=no
  2861. - ;;
  2862. - *)
  2863. - shlibpath_overrides_runpath=yes
  2864. - ;;
  2865. - esac
  2866. - else
  2867. - shlibpath_overrides_runpath=yes
  2868. - fi
  2869. - ;;
  2870. + cygwin* | mingw* | cegcc*)
  2871. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2872. + # about 5 minutes as the teststring grows exponentially.
  2873. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2874. + # you end up with a "frozen" computer, even though with patience
  2875. + # the test eventually succeeds (with a max line length of 256k).
  2876. + # Instead, let's just punt: use the minimum linelength reported by
  2877. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2878. + lt_cv_sys_max_cmd_len=8192;
  2879. + ;;
  2880. -os2*)
  2881. - libname_spec='$name'
  2882. - shrext_cmds=".dll"
  2883. - need_lib_prefix=no
  2884. - library_names_spec='$libname${shared_ext} $libname.a'
  2885. - dynamic_linker='OS/2 ld.exe'
  2886. - shlibpath_var=LIBPATH
  2887. - ;;
  2888. + amigaos*)
  2889. + # On AmigaOS with pdksh, this test takes hours, literally.
  2890. + # So we just punt and use a minimum line length of 8192.
  2891. + lt_cv_sys_max_cmd_len=8192;
  2892. + ;;
  2893. -osf3* | osf4* | osf5*)
  2894. - version_type=osf
  2895. - need_lib_prefix=no
  2896. - need_version=no
  2897. - soname_spec='${libname}${release}${shared_ext}$major'
  2898. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2899. - shlibpath_var=LD_LIBRARY_PATH
  2900. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2901. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2902. - ;;
  2903. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2904. + # This has been around since 386BSD, at least. Likely further.
  2905. + if test -x /sbin/sysctl; then
  2906. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2907. + elif test -x /usr/sbin/sysctl; then
  2908. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2909. + else
  2910. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2911. + fi
  2912. + # And add a safety zone
  2913. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2914. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2915. + ;;
  2916. -rdos*)
  2917. - dynamic_linker=no
  2918. - ;;
  2919. -
  2920. -solaris*)
  2921. - version_type=linux
  2922. - need_lib_prefix=no
  2923. - need_version=no
  2924. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2925. - soname_spec='${libname}${release}${shared_ext}$major'
  2926. - shlibpath_var=LD_LIBRARY_PATH
  2927. - shlibpath_overrides_runpath=yes
  2928. - hardcode_into_libs=yes
  2929. - # ldd complains unless libraries are executable
  2930. - postinstall_cmds='chmod +x $lib'
  2931. - ;;
  2932. -
  2933. -sunos4*)
  2934. - version_type=sunos
  2935. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2936. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2937. - shlibpath_var=LD_LIBRARY_PATH
  2938. - shlibpath_overrides_runpath=yes
  2939. - if test "$with_gnu_ld" = yes; then
  2940. - need_lib_prefix=no
  2941. - fi
  2942. - need_version=yes
  2943. - ;;
  2944. + interix*)
  2945. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2946. + lt_cv_sys_max_cmd_len=196608
  2947. + ;;
  2948. -sysv4 | sysv4.3*)
  2949. - version_type=linux
  2950. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2951. - soname_spec='${libname}${release}${shared_ext}$major'
  2952. - shlibpath_var=LD_LIBRARY_PATH
  2953. - case $host_vendor in
  2954. - sni)
  2955. - shlibpath_overrides_runpath=no
  2956. - need_lib_prefix=no
  2957. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2958. - runpath_var=LD_RUN_PATH
  2959. - ;;
  2960. - siemens)
  2961. - need_lib_prefix=no
  2962. - ;;
  2963. - motorola)
  2964. - need_lib_prefix=no
  2965. - need_version=no
  2966. - shlibpath_overrides_runpath=no
  2967. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2968. - ;;
  2969. + osf*)
  2970. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2971. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2972. + # nice to cause kernel panics so lets avoid the loop below.
  2973. + # First set a reasonable default.
  2974. + lt_cv_sys_max_cmd_len=16384
  2975. + #
  2976. + if test -x /sbin/sysconfig; then
  2977. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2978. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2979. + esac
  2980. + fi
  2981. + ;;
  2982. + sco3.2v5*)
  2983. + lt_cv_sys_max_cmd_len=102400
  2984. + ;;
  2985. + sysv5* | sco5v6* | sysv4.2uw2*)
  2986. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2987. + if test -n "$kargmax"; then
  2988. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2989. + else
  2990. + lt_cv_sys_max_cmd_len=32768
  2991. + fi
  2992. + ;;
  2993. + *)
  2994. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2995. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2996. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2997. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2998. + else
  2999. + # Make teststring a little bigger before we do anything with it.
  3000. + # a 1K string should be a reasonable start.
  3001. + for i in 1 2 3 4 5 6 7 8 ; do
  3002. + teststring=$teststring$teststring
  3003. + done
  3004. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3005. + # If test is not a shell built-in, we'll probably end up computing a
  3006. + # maximum length that is only half of the actual maximum length, but
  3007. + # we can't tell.
  3008. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  3009. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  3010. + test $i != 17 # 1/2 MB should be enough
  3011. + do
  3012. + i=`expr $i + 1`
  3013. + teststring=$teststring$teststring
  3014. + done
  3015. + # Only check the string length outside the loop.
  3016. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3017. + teststring=
  3018. + # Add a significant safety factor because C++ compilers can tack on
  3019. + # massive amounts of additional arguments before passing them to the
  3020. + # linker. It appears as though 1/2 is a usable value.
  3021. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3022. + fi
  3023. + ;;
  3024. esac
  3025. - ;;
  3026. -
  3027. -sysv4*MP*)
  3028. - if test -d /usr/nec ;then
  3029. - version_type=linux
  3030. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3031. - soname_spec='$libname${shared_ext}.$major'
  3032. - shlibpath_var=LD_LIBRARY_PATH
  3033. - fi
  3034. - ;;
  3035. -
  3036. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3037. - version_type=freebsd-elf
  3038. - need_lib_prefix=no
  3039. - need_version=no
  3040. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3041. - soname_spec='${libname}${release}${shared_ext}$major'
  3042. - shlibpath_var=LD_LIBRARY_PATH
  3043. - hardcode_into_libs=yes
  3044. - if test "$with_gnu_ld" = yes; then
  3045. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3046. - shlibpath_overrides_runpath=no
  3047. - else
  3048. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3049. - shlibpath_overrides_runpath=yes
  3050. - case $host_os in
  3051. - sco3.2v5*)
  3052. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3053. - ;;
  3054. - esac
  3055. - fi
  3056. - sys_lib_dlsearch_path_spec='/usr/lib'
  3057. - ;;
  3058. -
  3059. -uts4*)
  3060. - version_type=linux
  3061. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3062. - soname_spec='${libname}${release}${shared_ext}$major'
  3063. - shlibpath_var=LD_LIBRARY_PATH
  3064. - ;;
  3065. -
  3066. -*)
  3067. - dynamic_linker=no
  3068. - ;;
  3069. -esac
  3070. -AC_MSG_RESULT([$dynamic_linker])
  3071. -test "$dynamic_linker" = no && can_build_shared=no
  3072. -
  3073. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3074. -if test "$GCC" = yes; then
  3075. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3076. +])
  3077. +if test -n $lt_cv_sys_max_cmd_len ; then
  3078. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  3079. +else
  3080. + AC_MSG_RESULT(none)
  3081. fi
  3082. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3083. -
  3084. +max_cmd_len=$lt_cv_sys_max_cmd_len
  3085. +_LT_DECL([], [max_cmd_len], [0],
  3086. + [What is the maximum length of a command?])
  3087. +])# LT_CMD_MAX_LEN
  3088. -# _LT_AC_TAGCONFIG
  3089. -# ----------------
  3090. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3091. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  3092. -AC_ARG_WITH([tags],
  3093. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3094. - [include additional configurations @<:@automatic@:>@])],
  3095. - [tagnames="$withval"])
  3096. -
  3097. -if test -f "$ltmain" && test -n "$tagnames"; then
  3098. - if test ! -f "${ofile}"; then
  3099. - AC_MSG_WARN([output file `$ofile' does not exist])
  3100. - fi
  3101. -
  3102. - if test -z "$LTCC"; then
  3103. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3104. - if test -z "$LTCC"; then
  3105. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3106. - else
  3107. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3108. - fi
  3109. - fi
  3110. - if test -z "$LTCFLAGS"; then
  3111. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  3112. - fi
  3113. +# Old name:
  3114. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  3115. +dnl aclocal-1.4 backwards compatibility:
  3116. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  3117. - # Extract list of available tagged configurations in $ofile.
  3118. - # Note that this assumes the entire list is on one line.
  3119. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3120. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3121. - for tagname in $tagnames; do
  3122. - IFS="$lt_save_ifs"
  3123. - # Check whether tagname contains only valid characters
  3124. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3125. - "") ;;
  3126. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3127. - ;;
  3128. - esac
  3129. +# _LT_HEADER_DLFCN
  3130. +# ----------------
  3131. +m4_defun([_LT_HEADER_DLFCN],
  3132. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  3133. +])# _LT_HEADER_DLFCN
  3134. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3135. - then
  3136. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3137. - fi
  3138. - # Update the list of available tags.
  3139. - if test -n "$tagname"; then
  3140. - echo appending configuration tag \"$tagname\" to $ofile
  3141. -
  3142. - case $tagname in
  3143. - CXX)
  3144. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3145. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3146. - (test "X$CXX" != "Xg++"))) ; then
  3147. - AC_LIBTOOL_LANG_CXX_CONFIG
  3148. - else
  3149. - tagname=""
  3150. - fi
  3151. - ;;
  3152. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  3153. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  3154. +# ----------------------------------------------------------------
  3155. +m4_defun([_LT_TRY_DLOPEN_SELF],
  3156. +[m4_require([_LT_HEADER_DLFCN])dnl
  3157. +if test "$cross_compiling" = yes; then :
  3158. + [$4]
  3159. +else
  3160. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  3161. + lt_status=$lt_dlunknown
  3162. + cat > conftest.$ac_ext <<_LT_EOF
  3163. +[#line __oline__ "configure"
  3164. +#include "confdefs.h"
  3165. - F77)
  3166. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3167. - AC_LIBTOOL_LANG_F77_CONFIG
  3168. - else
  3169. - tagname=""
  3170. - fi
  3171. - ;;
  3172. +#if HAVE_DLFCN_H
  3173. +#include <dlfcn.h>
  3174. +#endif
  3175. - GCJ)
  3176. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3177. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3178. - else
  3179. - tagname=""
  3180. - fi
  3181. - ;;
  3182. +#include <stdio.h>
  3183. - RC)
  3184. - AC_LIBTOOL_LANG_RC_CONFIG
  3185. - ;;
  3186. +#ifdef RTLD_GLOBAL
  3187. +# define LT_DLGLOBAL RTLD_GLOBAL
  3188. +#else
  3189. +# ifdef DL_GLOBAL
  3190. +# define LT_DLGLOBAL DL_GLOBAL
  3191. +# else
  3192. +# define LT_DLGLOBAL 0
  3193. +# endif
  3194. +#endif
  3195. - *)
  3196. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3197. - ;;
  3198. - esac
  3199. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  3200. + find out it does not work in some platform. */
  3201. +#ifndef LT_DLLAZY_OR_NOW
  3202. +# ifdef RTLD_LAZY
  3203. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  3204. +# else
  3205. +# ifdef DL_LAZY
  3206. +# define LT_DLLAZY_OR_NOW DL_LAZY
  3207. +# else
  3208. +# ifdef RTLD_NOW
  3209. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  3210. +# else
  3211. +# ifdef DL_NOW
  3212. +# define LT_DLLAZY_OR_NOW DL_NOW
  3213. +# else
  3214. +# define LT_DLLAZY_OR_NOW 0
  3215. +# endif
  3216. +# endif
  3217. +# endif
  3218. +# endif
  3219. +#endif
  3220. - # Append the new tag name to the list of available tags.
  3221. - if test -n "$tagname" ; then
  3222. - available_tags="$available_tags $tagname"
  3223. - fi
  3224. - fi
  3225. - done
  3226. - IFS="$lt_save_ifs"
  3227. +void fnord() { int i=42;}
  3228. +int main ()
  3229. +{
  3230. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  3231. + int status = $lt_dlunknown;
  3232. - # Now substitute the updated list of available tags.
  3233. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3234. - mv "${ofile}T" "$ofile"
  3235. - chmod +x "$ofile"
  3236. + if (self)
  3237. + {
  3238. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  3239. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  3240. + /* dlclose (self); */
  3241. + }
  3242. else
  3243. - rm -f "${ofile}T"
  3244. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3245. + puts (dlerror ());
  3246. +
  3247. + return status;
  3248. +}]
  3249. +_LT_EOF
  3250. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  3251. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  3252. + lt_status=$?
  3253. + case x$lt_status in
  3254. + x$lt_dlno_uscore) $1 ;;
  3255. + x$lt_dlneed_uscore) $2 ;;
  3256. + x$lt_dlunknown|x*) $3 ;;
  3257. + esac
  3258. + else :
  3259. + # compilation failed
  3260. + $3
  3261. fi
  3262. fi
  3263. -])# _LT_AC_TAGCONFIG
  3264. -
  3265. -
  3266. -# AC_LIBTOOL_DLOPEN
  3267. -# -----------------
  3268. -# enable checks for dlopen support
  3269. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3270. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3271. -])# AC_LIBTOOL_DLOPEN
  3272. +rm -fr conftest*
  3273. +])# _LT_TRY_DLOPEN_SELF
  3274. -# AC_LIBTOOL_WIN32_DLL
  3275. -# --------------------
  3276. -# declare package support for building win32 DLLs
  3277. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3278. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3279. -])# AC_LIBTOOL_WIN32_DLL
  3280. +# LT_SYS_DLOPEN_SELF
  3281. +# ------------------
  3282. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  3283. +[m4_require([_LT_HEADER_DLFCN])dnl
  3284. +if test "x$enable_dlopen" != xyes; then
  3285. + enable_dlopen=unknown
  3286. + enable_dlopen_self=unknown
  3287. + enable_dlopen_self_static=unknown
  3288. +else
  3289. + lt_cv_dlopen=no
  3290. + lt_cv_dlopen_libs=
  3291. + case $host_os in
  3292. + beos*)
  3293. + lt_cv_dlopen="load_add_on"
  3294. + lt_cv_dlopen_libs=
  3295. + lt_cv_dlopen_self=yes
  3296. + ;;
  3297. -# AC_ENABLE_SHARED([DEFAULT])
  3298. -# ---------------------------
  3299. -# implement the --enable-shared flag
  3300. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3301. -AC_DEFUN([AC_ENABLE_SHARED],
  3302. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3303. -AC_ARG_ENABLE([shared],
  3304. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3305. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3306. - [p=${PACKAGE-default}
  3307. - case $enableval in
  3308. - yes) enable_shared=yes ;;
  3309. - no) enable_shared=no ;;
  3310. - *)
  3311. - enable_shared=no
  3312. - # Look at the argument we got. We use all the common list separators.
  3313. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3314. - for pkg in $enableval; do
  3315. - IFS="$lt_save_ifs"
  3316. - if test "X$pkg" = "X$p"; then
  3317. - enable_shared=yes
  3318. - fi
  3319. - done
  3320. - IFS="$lt_save_ifs"
  3321. - ;;
  3322. - esac],
  3323. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3324. -])# AC_ENABLE_SHARED
  3325. + mingw* | pw32* | cegcc*)
  3326. + lt_cv_dlopen="LoadLibrary"
  3327. + lt_cv_dlopen_libs=
  3328. + ;;
  3329. + cygwin*)
  3330. + lt_cv_dlopen="dlopen"
  3331. + lt_cv_dlopen_libs=
  3332. + ;;
  3333. -# AC_DISABLE_SHARED
  3334. -# -----------------
  3335. -# set the default shared flag to --disable-shared
  3336. -AC_DEFUN([AC_DISABLE_SHARED],
  3337. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3338. -AC_ENABLE_SHARED(no)
  3339. -])# AC_DISABLE_SHARED
  3340. + darwin*)
  3341. + # if libdl is installed we need to link against it
  3342. + AC_CHECK_LIB([dl], [dlopen],
  3343. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3344. + lt_cv_dlopen="dyld"
  3345. + lt_cv_dlopen_libs=
  3346. + lt_cv_dlopen_self=yes
  3347. + ])
  3348. + ;;
  3349. + *)
  3350. + AC_CHECK_FUNC([shl_load],
  3351. + [lt_cv_dlopen="shl_load"],
  3352. + [AC_CHECK_LIB([dld], [shl_load],
  3353. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3354. + [AC_CHECK_FUNC([dlopen],
  3355. + [lt_cv_dlopen="dlopen"],
  3356. + [AC_CHECK_LIB([dl], [dlopen],
  3357. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3358. + [AC_CHECK_LIB([svld], [dlopen],
  3359. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3360. + [AC_CHECK_LIB([dld], [dld_link],
  3361. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3362. + ])
  3363. + ])
  3364. + ])
  3365. + ])
  3366. + ])
  3367. + ;;
  3368. + esac
  3369. -# AC_ENABLE_STATIC([DEFAULT])
  3370. -# ---------------------------
  3371. -# implement the --enable-static flag
  3372. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3373. -AC_DEFUN([AC_ENABLE_STATIC],
  3374. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3375. -AC_ARG_ENABLE([static],
  3376. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3377. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3378. - [p=${PACKAGE-default}
  3379. - case $enableval in
  3380. - yes) enable_static=yes ;;
  3381. - no) enable_static=no ;;
  3382. - *)
  3383. - enable_static=no
  3384. - # Look at the argument we got. We use all the common list separators.
  3385. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3386. - for pkg in $enableval; do
  3387. - IFS="$lt_save_ifs"
  3388. - if test "X$pkg" = "X$p"; then
  3389. - enable_static=yes
  3390. - fi
  3391. - done
  3392. - IFS="$lt_save_ifs"
  3393. - ;;
  3394. - esac],
  3395. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3396. -])# AC_ENABLE_STATIC
  3397. + if test "x$lt_cv_dlopen" != xno; then
  3398. + enable_dlopen=yes
  3399. + else
  3400. + enable_dlopen=no
  3401. + fi
  3402. + case $lt_cv_dlopen in
  3403. + dlopen)
  3404. + save_CPPFLAGS="$CPPFLAGS"
  3405. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3406. -# AC_DISABLE_STATIC
  3407. -# -----------------
  3408. -# set the default static flag to --disable-static
  3409. -AC_DEFUN([AC_DISABLE_STATIC],
  3410. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3411. -AC_ENABLE_STATIC(no)
  3412. -])# AC_DISABLE_STATIC
  3413. + save_LDFLAGS="$LDFLAGS"
  3414. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3415. + save_LIBS="$LIBS"
  3416. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3417. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3418. -# ---------------------------------
  3419. -# implement the --enable-fast-install flag
  3420. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3421. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3422. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3423. -AC_ARG_ENABLE([fast-install],
  3424. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3425. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3426. - [p=${PACKAGE-default}
  3427. - case $enableval in
  3428. - yes) enable_fast_install=yes ;;
  3429. - no) enable_fast_install=no ;;
  3430. - *)
  3431. - enable_fast_install=no
  3432. - # Look at the argument we got. We use all the common list separators.
  3433. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3434. - for pkg in $enableval; do
  3435. - IFS="$lt_save_ifs"
  3436. - if test "X$pkg" = "X$p"; then
  3437. - enable_fast_install=yes
  3438. - fi
  3439. - done
  3440. - IFS="$lt_save_ifs"
  3441. - ;;
  3442. - esac],
  3443. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3444. -])# AC_ENABLE_FAST_INSTALL
  3445. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3446. + lt_cv_dlopen_self, [dnl
  3447. + _LT_TRY_DLOPEN_SELF(
  3448. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3449. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3450. + ])
  3451. + if test "x$lt_cv_dlopen_self" = xyes; then
  3452. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3453. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3454. + lt_cv_dlopen_self_static, [dnl
  3455. + _LT_TRY_DLOPEN_SELF(
  3456. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3457. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3458. + ])
  3459. + fi
  3460. -# AC_DISABLE_FAST_INSTALL
  3461. -# -----------------------
  3462. -# set the default to --disable-fast-install
  3463. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3464. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3465. -AC_ENABLE_FAST_INSTALL(no)
  3466. -])# AC_DISABLE_FAST_INSTALL
  3467. + CPPFLAGS="$save_CPPFLAGS"
  3468. + LDFLAGS="$save_LDFLAGS"
  3469. + LIBS="$save_LIBS"
  3470. + ;;
  3471. + esac
  3472. + case $lt_cv_dlopen_self in
  3473. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3474. + *) enable_dlopen_self=unknown ;;
  3475. + esac
  3476. -# AC_LIBTOOL_PICMODE([MODE])
  3477. -# --------------------------
  3478. -# implement the --with-pic flag
  3479. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3480. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3481. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3482. -pic_mode=ifelse($#,1,$1,default)
  3483. -])# AC_LIBTOOL_PICMODE
  3484. + case $lt_cv_dlopen_self_static in
  3485. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3486. + *) enable_dlopen_self_static=unknown ;;
  3487. + esac
  3488. +fi
  3489. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3490. + [Whether dlopen is supported])
  3491. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3492. + [Whether dlopen of programs is supported])
  3493. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3494. + [Whether dlopen of statically linked programs is supported])
  3495. +])# LT_SYS_DLOPEN_SELF
  3496. +
  3497. +# Old name:
  3498. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3499. +dnl aclocal-1.4 backwards compatibility:
  3500. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3501. -# AC_PROG_EGREP
  3502. -# -------------
  3503. -# This is predefined starting with Autoconf 2.54, so this conditional
  3504. -# definition can be removed once we require Autoconf 2.54 or later.
  3505. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3506. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3507. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3508. - then ac_cv_prog_egrep='grep -E'
  3509. - else ac_cv_prog_egrep='egrep'
  3510. - fi])
  3511. - EGREP=$ac_cv_prog_egrep
  3512. - AC_SUBST([EGREP])
  3513. -])])
  3514. +# _LT_COMPILER_C_O([TAGNAME])
  3515. +# ---------------------------
  3516. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3517. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3518. +m4_defun([_LT_COMPILER_C_O],
  3519. +[m4_require([_LT_DECL_SED])dnl
  3520. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3521. +m4_require([_LT_TAG_COMPILER])dnl
  3522. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3523. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3524. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3525. + $RM -r conftest 2>/dev/null
  3526. + mkdir conftest
  3527. + cd conftest
  3528. + mkdir out
  3529. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3530. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3531. + # Insert the option either (1) after the last *FLAGS variable, or
  3532. + # (2) before a word containing "conftest.", or (3) at the end.
  3533. + # Note that $ac_compile itself does not contain backslashes and begins
  3534. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3535. + lt_compile=`echo "$ac_compile" | $SED \
  3536. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3537. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3538. + -e 's:$: $lt_compiler_flag:'`
  3539. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3540. + (eval "$lt_compile" 2>out/conftest.err)
  3541. + ac_status=$?
  3542. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3543. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3544. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3545. + then
  3546. + # The compiler can only warn and ignore the option if not recognized
  3547. + # So say no if there are warnings
  3548. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3549. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3550. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3551. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3552. + fi
  3553. + fi
  3554. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3555. + $RM conftest*
  3556. + # SGI C++ compiler will create directory out/ii_files/ for
  3557. + # template instantiation
  3558. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3559. + $RM out/* && rmdir out
  3560. + cd ..
  3561. + $RM -r conftest
  3562. + $RM conftest*
  3563. +])
  3564. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3565. + [Does compiler simultaneously support -c and -o options?])
  3566. +])# _LT_COMPILER_C_O
  3567. -# AC_PATH_TOOL_PREFIX
  3568. -# -------------------
  3569. -# find a file program which can recognize shared library
  3570. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3571. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3572. -AC_MSG_CHECKING([for $1])
  3573. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3574. -[case $MAGIC_CMD in
  3575. -[[\\/*] | ?:[\\/]*])
  3576. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3577. - ;;
  3578. -*)
  3579. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3580. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3581. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3582. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3583. -dnl not every word. This closes a longstanding sh security hole.
  3584. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3585. - for ac_dir in $ac_dummy; do
  3586. - IFS="$lt_save_ifs"
  3587. - test -z "$ac_dir" && ac_dir=.
  3588. - if test -f $ac_dir/$1; then
  3589. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3590. - if test -n "$file_magic_test_file"; then
  3591. - case $deplibs_check_method in
  3592. - "file_magic "*)
  3593. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3594. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3595. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3596. - $EGREP "$file_magic_regex" > /dev/null; then
  3597. - :
  3598. - else
  3599. - cat <<EOF 1>&2
  3600. -*** Warning: the command libtool uses to detect shared libraries,
  3601. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3602. -*** The result is that libtool may fail to recognize shared libraries
  3603. -*** as such. This will affect the creation of libtool libraries that
  3604. -*** depend on shared libraries, but programs linked with such libtool
  3605. -*** libraries will work regardless of this problem. Nevertheless, you
  3606. -*** may want to report the problem to your system manager and/or to
  3607. -*** bug-libtool@gnu.org
  3608. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3609. +# ----------------------------------
  3610. +# Check to see if we can do hard links to lock some files if needed
  3611. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3612. +[m4_require([_LT_ENABLE_LOCK])dnl
  3613. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3614. +_LT_COMPILER_C_O([$1])
  3615. -EOF
  3616. - fi ;;
  3617. - esac
  3618. - fi
  3619. - break
  3620. - fi
  3621. - done
  3622. - IFS="$lt_save_ifs"
  3623. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3624. - ;;
  3625. -esac])
  3626. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3627. -if test -n "$MAGIC_CMD"; then
  3628. - AC_MSG_RESULT($MAGIC_CMD)
  3629. +hard_links="nottested"
  3630. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3631. + # do not overwrite the value of need_locks provided by the user
  3632. + AC_MSG_CHECKING([if we can lock with hard links])
  3633. + hard_links=yes
  3634. + $RM conftest*
  3635. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3636. + touch conftest.a
  3637. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3638. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3639. + AC_MSG_RESULT([$hard_links])
  3640. + if test "$hard_links" = no; then
  3641. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3642. + need_locks=warn
  3643. + fi
  3644. else
  3645. - AC_MSG_RESULT(no)
  3646. + need_locks=no
  3647. fi
  3648. -])# AC_PATH_TOOL_PREFIX
  3649. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3650. +])# _LT_COMPILER_FILE_LOCKS
  3651. -# AC_PATH_MAGIC
  3652. -# -------------
  3653. -# find a file program which can recognize a shared library
  3654. -AC_DEFUN([AC_PATH_MAGIC],
  3655. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3656. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3657. - if test -n "$ac_tool_prefix"; then
  3658. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3659. - else
  3660. - MAGIC_CMD=:
  3661. - fi
  3662. +# _LT_CHECK_OBJDIR
  3663. +# ----------------
  3664. +m4_defun([_LT_CHECK_OBJDIR],
  3665. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3666. +[rm -f .libs 2>/dev/null
  3667. +mkdir .libs 2>/dev/null
  3668. +if test -d .libs; then
  3669. + lt_cv_objdir=.libs
  3670. +else
  3671. + # MS-DOS does not allow filenames that begin with a dot.
  3672. + lt_cv_objdir=_libs
  3673. fi
  3674. -])# AC_PATH_MAGIC
  3675. +rmdir .libs 2>/dev/null])
  3676. +objdir=$lt_cv_objdir
  3677. +_LT_DECL([], [objdir], [0],
  3678. + [The name of the directory that contains temporary libtool files])dnl
  3679. +m4_pattern_allow([LT_OBJDIR])dnl
  3680. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3681. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3682. +])# _LT_CHECK_OBJDIR
  3683. -# AC_PROG_LD
  3684. -# ----------
  3685. -# find the pathname to the GNU or non-GNU linker
  3686. -AC_DEFUN([AC_PROG_LD],
  3687. -[AC_ARG_WITH([gnu-ld],
  3688. - [AC_HELP_STRING([--with-gnu-ld],
  3689. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3690. - [test "$withval" = no || with_gnu_ld=yes],
  3691. - [with_gnu_ld=no])
  3692. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3693. -AC_REQUIRE([AC_PROG_CC])dnl
  3694. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3695. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3696. -ac_prog=ld
  3697. -if test "$GCC" = yes; then
  3698. - # Check if gcc -print-prog-name=ld gives a path.
  3699. - AC_MSG_CHECKING([for ld used by $CC])
  3700. - case $host in
  3701. - *-*-mingw*)
  3702. - # gcc leaves a trailing carriage return which upsets mingw
  3703. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3704. - *)
  3705. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3706. - esac
  3707. - case $ac_prog in
  3708. - # Accept absolute paths.
  3709. - [[\\/]]* | ?:[[\\/]]*)
  3710. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3711. - # Canonicalize the pathname of ld
  3712. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3713. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3714. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3715. - done
  3716. - test -z "$LD" && LD="$ac_prog"
  3717. - ;;
  3718. - "")
  3719. - # If it fails, then pretend we aren't using GCC.
  3720. - ac_prog=ld
  3721. - ;;
  3722. - *)
  3723. - # If it is relative, then search for the first ld in PATH.
  3724. - with_gnu_ld=unknown
  3725. - ;;
  3726. - esac
  3727. -elif test "$with_gnu_ld" = yes; then
  3728. - AC_MSG_CHECKING([for GNU ld])
  3729. -else
  3730. - AC_MSG_CHECKING([for non-GNU ld])
  3731. -fi
  3732. -AC_CACHE_VAL(lt_cv_path_LD,
  3733. -[if test -z "$LD"; then
  3734. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3735. - for ac_dir in $PATH; do
  3736. - IFS="$lt_save_ifs"
  3737. - test -z "$ac_dir" && ac_dir=.
  3738. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3739. - lt_cv_path_LD="$ac_dir/$ac_prog"
  3740. - # Check to see if the program is GNU ld. I'd rather use --version,
  3741. - # but apparently some variants of GNU ld only accept -v.
  3742. - # Break only if it was the GNU/non-GNU ld that we prefer.
  3743. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3744. - *GNU* | *'with BFD'*)
  3745. - test "$with_gnu_ld" != no && break
  3746. - ;;
  3747. - *)
  3748. - test "$with_gnu_ld" != yes && break
  3749. - ;;
  3750. - esac
  3751. - fi
  3752. - done
  3753. - IFS="$lt_save_ifs"
  3754. -else
  3755. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3756. -fi])
  3757. -LD="$lt_cv_path_LD"
  3758. -if test -n "$LD"; then
  3759. - AC_MSG_RESULT($LD)
  3760. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3761. +# --------------------------------------
  3762. +# Check hardcoding attributes.
  3763. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3764. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3765. +_LT_TAGVAR(hardcode_action, $1)=
  3766. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3767. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3768. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3769. +
  3770. + # We can hardcode non-existent directories.
  3771. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3772. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3773. + # have to relink, otherwise we might link with an installed library
  3774. + # when we should be linking with a yet-to-be-installed one
  3775. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3776. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3777. + # Linking always hardcodes the temporary library directory.
  3778. + _LT_TAGVAR(hardcode_action, $1)=relink
  3779. + else
  3780. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3781. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3782. + fi
  3783. else
  3784. - AC_MSG_RESULT(no)
  3785. + # We cannot hardcode anything, or else we can only hardcode existing
  3786. + # directories.
  3787. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3788. fi
  3789. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3790. -AC_PROG_LD_GNU
  3791. -])# AC_PROG_LD
  3792. -
  3793. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3794. -# AC_PROG_LD_GNU
  3795. -# --------------
  3796. -AC_DEFUN([AC_PROG_LD_GNU],
  3797. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3798. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3799. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3800. -case `$LD -v 2>&1 </dev/null` in
  3801. -*GNU* | *'with BFD'*)
  3802. - lt_cv_prog_gnu_ld=yes
  3803. - ;;
  3804. -*)
  3805. - lt_cv_prog_gnu_ld=no
  3806. - ;;
  3807. -esac])
  3808. -with_gnu_ld=$lt_cv_prog_gnu_ld
  3809. -])# AC_PROG_LD_GNU
  3810. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3811. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3812. + # Fast installation is not supported
  3813. + enable_fast_install=no
  3814. +elif test "$shlibpath_overrides_runpath" = yes ||
  3815. + test "$enable_shared" = no; then
  3816. + # Fast installation is not necessary
  3817. + enable_fast_install=needless
  3818. +fi
  3819. +_LT_TAGDECL([], [hardcode_action], [0],
  3820. + [How to hardcode a shared library path into an executable])
  3821. +])# _LT_LINKER_HARDCODE_LIBPATH
  3822. -# AC_PROG_LD_RELOAD_FLAG
  3823. -# ----------------------
  3824. -# find reload flag for linker
  3825. -# -- PORTME Some linkers may need a different reload flag.
  3826. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3827. -[AC_CACHE_CHECK([for $LD option to reload object files],
  3828. - lt_cv_ld_reload_flag,
  3829. - [lt_cv_ld_reload_flag='-r'])
  3830. -reload_flag=$lt_cv_ld_reload_flag
  3831. -case $reload_flag in
  3832. -"" | " "*) ;;
  3833. -*) reload_flag=" $reload_flag" ;;
  3834. -esac
  3835. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3836. -case $host_os in
  3837. +# _LT_CMD_STRIPLIB
  3838. +# ----------------
  3839. +m4_defun([_LT_CMD_STRIPLIB],
  3840. +[m4_require([_LT_DECL_EGREP])
  3841. +striplib=
  3842. +old_striplib=
  3843. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3844. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3845. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3846. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3847. + AC_MSG_RESULT([yes])
  3848. +else
  3849. +# FIXME - insert some real tests, host_os isn't really good enough
  3850. + case $host_os in
  3851. darwin*)
  3852. - if test "$GCC" = yes; then
  3853. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3854. + if test -n "$STRIP" ; then
  3855. + striplib="$STRIP -x"
  3856. + old_striplib="$STRIP -S"
  3857. + AC_MSG_RESULT([yes])
  3858. else
  3859. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3860. + AC_MSG_RESULT([no])
  3861. fi
  3862. ;;
  3863. -esac
  3864. -])# AC_PROG_LD_RELOAD_FLAG
  3865. -
  3866. + *)
  3867. + AC_MSG_RESULT([no])
  3868. + ;;
  3869. + esac
  3870. +fi
  3871. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3872. +_LT_DECL([], [striplib], [1])
  3873. +])# _LT_CMD_STRIPLIB
  3874. -# AC_DEPLIBS_CHECK_METHOD
  3875. -# -----------------------
  3876. -# how to check for library dependencies
  3877. -# -- PORTME fill in with the dynamic library characteristics
  3878. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3879. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  3880. -lt_cv_deplibs_check_method,
  3881. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3882. -lt_cv_file_magic_test_file=
  3883. -lt_cv_deplibs_check_method='unknown'
  3884. -# Need to set the preceding variable on all platforms that support
  3885. -# interlibrary dependencies.
  3886. -# 'none' -- dependencies not supported.
  3887. -# `unknown' -- same as none, but documents that we really don't know.
  3888. -# 'pass_all' -- all dependencies passed with no checks.
  3889. -# 'test_compile' -- check by making test program.
  3890. -# 'file_magic [[regex]]' -- check by looking for files in library path
  3891. -# which responds to the $file_magic_cmd with a given extended regex.
  3892. -# If you have `file' or equivalent on your system and you're not sure
  3893. -# whether `pass_all' will *always* work, you probably want this one.
  3894. -case $host_os in
  3895. -aix4* | aix5*)
  3896. - lt_cv_deplibs_check_method=pass_all
  3897. - ;;
  3898. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3899. +# -----------------------------
  3900. +# PORTME Fill in your ld.so characteristics
  3901. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3902. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3903. +m4_require([_LT_DECL_EGREP])dnl
  3904. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3905. +m4_require([_LT_DECL_OBJDUMP])dnl
  3906. +m4_require([_LT_DECL_SED])dnl
  3907. +AC_MSG_CHECKING([dynamic linker characteristics])
  3908. +m4_if([$1],
  3909. + [], [
  3910. +if test "$GCC" = yes; then
  3911. + case $host_os in
  3912. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3913. + *) lt_awk_arg="/^libraries:/" ;;
  3914. + esac
  3915. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3916. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3917. + # if the path contains ";" then we assume it to be the separator
  3918. + # otherwise default to the standard path separator (i.e. ":") - it is
  3919. + # assumed that no part of a normal pathname contains ";" but that should
  3920. + # okay in the real world where ";" in dirpaths is itself problematic.
  3921. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3922. + else
  3923. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3924. + fi
  3925. + # Ok, now we have the path, separated by spaces, we can step through it
  3926. + # and add multilib dir if necessary.
  3927. + lt_tmp_lt_search_path_spec=
  3928. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3929. + for lt_sys_path in $lt_search_path_spec; do
  3930. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3931. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3932. + else
  3933. + test -d "$lt_sys_path" && \
  3934. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3935. + fi
  3936. + done
  3937. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3938. +BEGIN {RS=" "; FS="/|\n";} {
  3939. + lt_foo="";
  3940. + lt_count=0;
  3941. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3942. + if ($lt_i != "" && $lt_i != ".") {
  3943. + if ($lt_i == "..") {
  3944. + lt_count++;
  3945. + } else {
  3946. + if (lt_count == 0) {
  3947. + lt_foo="/" $lt_i lt_foo;
  3948. + } else {
  3949. + lt_count--;
  3950. + }
  3951. + }
  3952. + }
  3953. + }
  3954. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3955. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3956. +}'`
  3957. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3958. +else
  3959. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3960. +fi])
  3961. +library_names_spec=
  3962. +libname_spec='lib$name'
  3963. +soname_spec=
  3964. +shrext_cmds=".so"
  3965. +postinstall_cmds=
  3966. +postuninstall_cmds=
  3967. +finish_cmds=
  3968. +finish_eval=
  3969. +shlibpath_var=
  3970. +shlibpath_overrides_runpath=unknown
  3971. +version_type=none
  3972. +dynamic_linker="$host_os ld.so"
  3973. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3974. +need_lib_prefix=unknown
  3975. +hardcode_into_libs=no
  3976. -beos*)
  3977. - lt_cv_deplibs_check_method=pass_all
  3978. - ;;
  3979. +# when you set need_version to no, make sure it does not cause -set_version
  3980. +# flags to be left without arguments
  3981. +need_version=unknown
  3982. -bsdi[[45]]*)
  3983. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3984. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  3985. - lt_cv_file_magic_test_file=/shlib/libc.so
  3986. - ;;
  3987. +case $host_os in
  3988. +aix3*)
  3989. + version_type=linux
  3990. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3991. + shlibpath_var=LIBPATH
  3992. -cygwin*)
  3993. - # func_win32_libid is a shell function defined in ltmain.sh
  3994. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3995. - lt_cv_file_magic_cmd='func_win32_libid'
  3996. + # AIX 3 has no versioning support, so we append a major version to the name.
  3997. + soname_spec='${libname}${release}${shared_ext}$major'
  3998. ;;
  3999. -mingw* | pw32*)
  4000. - # Base MSYS/MinGW do not provide the 'file' command needed by
  4001. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4002. - # unless we find 'file', for example because we are cross-compiling.
  4003. - if ( file / ) >/dev/null 2>&1; then
  4004. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4005. - lt_cv_file_magic_cmd='func_win32_libid'
  4006. +aix[[4-9]]*)
  4007. + version_type=linux
  4008. + need_lib_prefix=no
  4009. + need_version=no
  4010. + hardcode_into_libs=yes
  4011. + if test "$host_cpu" = ia64; then
  4012. + # AIX 5 supports IA64
  4013. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  4014. + shlibpath_var=LD_LIBRARY_PATH
  4015. else
  4016. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4017. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  4018. - fi
  4019. - ;;
  4020. -
  4021. -darwin* | rhapsody*)
  4022. - lt_cv_deplibs_check_method=pass_all
  4023. - ;;
  4024. -
  4025. -freebsd* | dragonfly*)
  4026. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4027. - case $host_cpu in
  4028. - i*86 )
  4029. - # Not sure whether the presence of OpenBSD here was a mistake.
  4030. - # Let's accept both of them until this is cleared up.
  4031. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  4032. - lt_cv_file_magic_cmd=/usr/bin/file
  4033. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4034. + # With GCC up to 2.95.x, collect2 would create an import file
  4035. + # for dependence libraries. The import file would start with
  4036. + # the line `#! .'. This would cause the generated library to
  4037. + # depend on `.', always an invalid library. This was fixed in
  4038. + # development snapshots of GCC prior to 3.0.
  4039. + case $host_os in
  4040. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  4041. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  4042. + echo ' yes '
  4043. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  4044. + :
  4045. + else
  4046. + can_build_shared=no
  4047. + fi
  4048. ;;
  4049. esac
  4050. - else
  4051. - lt_cv_deplibs_check_method=pass_all
  4052. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  4053. + # soname into executable. Probably we can add versioning support to
  4054. + # collect2, so additional links can be useful in future.
  4055. + if test "$aix_use_runtimelinking" = yes; then
  4056. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  4057. + # instead of lib<name>.a to let people know that these are not
  4058. + # typical AIX shared libraries.
  4059. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4060. + else
  4061. + # We preserve .a as extension for shared libraries through AIX4.2
  4062. + # and later when we are not doing run time linking.
  4063. + library_names_spec='${libname}${release}.a $libname.a'
  4064. + soname_spec='${libname}${release}${shared_ext}$major'
  4065. + fi
  4066. + shlibpath_var=LIBPATH
  4067. fi
  4068. ;;
  4069. -gnu*)
  4070. - lt_cv_deplibs_check_method=pass_all
  4071. - ;;
  4072. -
  4073. -hpux10.20* | hpux11*)
  4074. - lt_cv_file_magic_cmd=/usr/bin/file
  4075. +amigaos*)
  4076. case $host_cpu in
  4077. - ia64*)
  4078. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4079. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4080. - ;;
  4081. - hppa*64*)
  4082. - [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]']
  4083. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4084. + powerpc)
  4085. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  4086. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  4087. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4088. ;;
  4089. - *)
  4090. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4091. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4092. + m68k)
  4093. + library_names_spec='$libname.ixlibrary $libname.a'
  4094. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  4095. + 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'
  4096. ;;
  4097. esac
  4098. ;;
  4099. -interix[[3-9]]*)
  4100. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4101. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4102. - ;;
  4103. -
  4104. -irix5* | irix6* | nonstopux*)
  4105. - case $LD in
  4106. - *-32|*"-32 ") libmagic=32-bit;;
  4107. - *-n32|*"-n32 ") libmagic=N32;;
  4108. - *-64|*"-64 ") libmagic=64-bit;;
  4109. - *) libmagic=never-match;;
  4110. - esac
  4111. - lt_cv_deplibs_check_method=pass_all
  4112. +beos*)
  4113. + library_names_spec='${libname}${shared_ext}'
  4114. + dynamic_linker="$host_os ld.so"
  4115. + shlibpath_var=LIBRARY_PATH
  4116. ;;
  4117. -# This must be Linux ELF.
  4118. -linux* | k*bsd*-gnu)
  4119. - lt_cv_deplibs_check_method=pass_all
  4120. +bsdi[[45]]*)
  4121. + version_type=linux
  4122. + need_version=no
  4123. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4124. + soname_spec='${libname}${release}${shared_ext}$major'
  4125. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  4126. + shlibpath_var=LD_LIBRARY_PATH
  4127. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  4128. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  4129. + # the default ld.so.conf also contains /usr/contrib/lib and
  4130. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  4131. + # libtool to hard-code these into programs
  4132. ;;
  4133. -netbsd* | netbsdelf*-gnu)
  4134. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4135. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4136. - else
  4137. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4138. - fi
  4139. - ;;
  4140. +cygwin* | mingw* | pw32* | cegcc*)
  4141. + version_type=windows
  4142. + shrext_cmds=".dll"
  4143. + need_version=no
  4144. + need_lib_prefix=no
  4145. -newos6*)
  4146. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4147. - lt_cv_file_magic_cmd=/usr/bin/file
  4148. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4149. - ;;
  4150. + case $GCC,$host_os in
  4151. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  4152. + library_names_spec='$libname.dll.a'
  4153. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4154. + postinstall_cmds='base_file=`basename \${file}`~
  4155. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  4156. + dldir=$destdir/`dirname \$dlpath`~
  4157. + test -d \$dldir || mkdir -p \$dldir~
  4158. + $install_prog $dir/$dlname \$dldir/$dlname~
  4159. + chmod a+x \$dldir/$dlname~
  4160. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  4161. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  4162. + fi'
  4163. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  4164. + dlpath=$dir/\$dldll~
  4165. + $RM \$dlpath'
  4166. + shlibpath_overrides_runpath=yes
  4167. -nto-qnx*)
  4168. - lt_cv_deplibs_check_method=unknown
  4169. - ;;
  4170. + case $host_os in
  4171. + cygwin*)
  4172. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  4173. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4174. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  4175. + ;;
  4176. + mingw* | cegcc*)
  4177. + # MinGW DLLs use traditional 'lib' prefix
  4178. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4179. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4180. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  4181. + # It is most probably a Windows format PATH printed by
  4182. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  4183. + # path with ; separators, and with drive letters. We can handle the
  4184. + # drive letters (cygwin fileutils understands them), so leave them,
  4185. + # especially as we might pass files found there to a mingw objdump,
  4186. + # which wouldn't understand a cygwinified path. Ahh.
  4187. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4188. + else
  4189. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4190. + fi
  4191. + ;;
  4192. + pw32*)
  4193. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  4194. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4195. + ;;
  4196. + esac
  4197. + ;;
  4198. -openbsd*)
  4199. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4200. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4201. - else
  4202. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4203. - fi
  4204. + *)
  4205. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4206. + ;;
  4207. + esac
  4208. + dynamic_linker='Win32 ld.exe'
  4209. + # FIXME: first we should search . and the directory the executable is in
  4210. + shlibpath_var=PATH
  4211. ;;
  4212. -osf3* | osf4* | osf5*)
  4213. - lt_cv_deplibs_check_method=pass_all
  4214. +darwin* | rhapsody*)
  4215. + dynamic_linker="$host_os dyld"
  4216. + version_type=darwin
  4217. + need_lib_prefix=no
  4218. + need_version=no
  4219. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4220. + soname_spec='${libname}${release}${major}$shared_ext'
  4221. + shlibpath_overrides_runpath=yes
  4222. + shlibpath_var=DYLD_LIBRARY_PATH
  4223. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4224. +m4_if([$1], [],[
  4225. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  4226. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4227. ;;
  4228. -rdos*)
  4229. - lt_cv_deplibs_check_method=pass_all
  4230. +dgux*)
  4231. + version_type=linux
  4232. + need_lib_prefix=no
  4233. + need_version=no
  4234. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4235. + soname_spec='${libname}${release}${shared_ext}$major'
  4236. + shlibpath_var=LD_LIBRARY_PATH
  4237. ;;
  4238. -solaris*)
  4239. - lt_cv_deplibs_check_method=pass_all
  4240. +freebsd1*)
  4241. + dynamic_linker=no
  4242. ;;
  4243. -sysv4 | sysv4.3*)
  4244. - case $host_vendor in
  4245. - motorola)
  4246. - 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]]'
  4247. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4248. - ;;
  4249. - ncr)
  4250. - lt_cv_deplibs_check_method=pass_all
  4251. - ;;
  4252. - sequent)
  4253. - lt_cv_file_magic_cmd='/bin/file'
  4254. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4255. +freebsd* | dragonfly*)
  4256. + # DragonFly does not have aout. When/if they implement a new
  4257. + # versioning mechanism, adjust this.
  4258. + if test -x /usr/bin/objformat; then
  4259. + objformat=`/usr/bin/objformat`
  4260. + else
  4261. + case $host_os in
  4262. + freebsd[[123]]*) objformat=aout ;;
  4263. + *) objformat=elf ;;
  4264. + esac
  4265. + fi
  4266. + version_type=freebsd-$objformat
  4267. + case $version_type in
  4268. + freebsd-elf*)
  4269. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4270. + need_version=no
  4271. + need_lib_prefix=no
  4272. + ;;
  4273. + freebsd-*)
  4274. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4275. + need_version=yes
  4276. + ;;
  4277. + esac
  4278. + shlibpath_var=LD_LIBRARY_PATH
  4279. + case $host_os in
  4280. + freebsd2*)
  4281. + shlibpath_overrides_runpath=yes
  4282. ;;
  4283. - sni)
  4284. - lt_cv_file_magic_cmd='/bin/file'
  4285. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4286. - lt_cv_file_magic_test_file=/lib/libc.so
  4287. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4288. + shlibpath_overrides_runpath=yes
  4289. + hardcode_into_libs=yes
  4290. ;;
  4291. - siemens)
  4292. - lt_cv_deplibs_check_method=pass_all
  4293. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4294. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4295. + shlibpath_overrides_runpath=no
  4296. + hardcode_into_libs=yes
  4297. ;;
  4298. - pc)
  4299. - lt_cv_deplibs_check_method=pass_all
  4300. + *) # from 4.6 on, and DragonFly
  4301. + shlibpath_overrides_runpath=yes
  4302. + hardcode_into_libs=yes
  4303. ;;
  4304. esac
  4305. ;;
  4306. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4307. - lt_cv_deplibs_check_method=pass_all
  4308. - ;;
  4309. -esac
  4310. -])
  4311. -file_magic_cmd=$lt_cv_file_magic_cmd
  4312. -deplibs_check_method=$lt_cv_deplibs_check_method
  4313. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4314. -])# AC_DEPLIBS_CHECK_METHOD
  4315. -
  4316. -
  4317. -# AC_PROG_NM
  4318. -# ----------
  4319. -# find the pathname to a BSD-compatible name lister
  4320. -AC_DEFUN([AC_PROG_NM],
  4321. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4322. -[if test -n "$NM"; then
  4323. - # Let the user override the test.
  4324. - lt_cv_path_NM="$NM"
  4325. -else
  4326. - lt_nm_to_check="${ac_tool_prefix}nm"
  4327. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4328. - lt_nm_to_check="$lt_nm_to_check nm"
  4329. - fi
  4330. - for lt_tmp_nm in $lt_nm_to_check; do
  4331. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4332. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4333. - IFS="$lt_save_ifs"
  4334. - test -z "$ac_dir" && ac_dir=.
  4335. - tmp_nm="$ac_dir/$lt_tmp_nm"
  4336. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4337. - # Check to see if the nm accepts a BSD-compat flag.
  4338. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4339. - # nm: unknown option "B" ignored
  4340. - # Tru64's nm complains that /dev/null is an invalid object file
  4341. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4342. - */dev/null* | *'Invalid file or object type'*)
  4343. - lt_cv_path_NM="$tmp_nm -B"
  4344. - break
  4345. - ;;
  4346. - *)
  4347. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4348. - */dev/null*)
  4349. - lt_cv_path_NM="$tmp_nm -p"
  4350. - break
  4351. - ;;
  4352. - *)
  4353. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4354. - continue # so that we can try to find one that supports BSD flags
  4355. - ;;
  4356. - esac
  4357. - ;;
  4358. - esac
  4359. - fi
  4360. - done
  4361. - IFS="$lt_save_ifs"
  4362. - done
  4363. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4364. -fi])
  4365. -NM="$lt_cv_path_NM"
  4366. -])# AC_PROG_NM
  4367. -
  4368. +gnu*)
  4369. + version_type=linux
  4370. + need_lib_prefix=no
  4371. + need_version=no
  4372. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4373. + soname_spec='${libname}${release}${shared_ext}$major'
  4374. + shlibpath_var=LD_LIBRARY_PATH
  4375. + hardcode_into_libs=yes
  4376. + ;;
  4377. -# AC_CHECK_LIBM
  4378. -# -------------
  4379. -# check for math library
  4380. -AC_DEFUN([AC_CHECK_LIBM],
  4381. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4382. -LIBM=
  4383. -case $host in
  4384. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4385. - # These system don't have libm, or don't need it
  4386. +hpux9* | hpux10* | hpux11*)
  4387. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4388. + # link against other versions.
  4389. + version_type=sunos
  4390. + need_lib_prefix=no
  4391. + need_version=no
  4392. + case $host_cpu in
  4393. + ia64*)
  4394. + shrext_cmds='.so'
  4395. + hardcode_into_libs=yes
  4396. + dynamic_linker="$host_os dld.so"
  4397. + shlibpath_var=LD_LIBRARY_PATH
  4398. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4399. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4400. + soname_spec='${libname}${release}${shared_ext}$major'
  4401. + if test "X$HPUX_IA64_MODE" = X32; then
  4402. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4403. + else
  4404. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4405. + fi
  4406. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4407. + ;;
  4408. + hppa*64*)
  4409. + shrext_cmds='.sl'
  4410. + hardcode_into_libs=yes
  4411. + dynamic_linker="$host_os dld.sl"
  4412. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4413. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4414. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4415. + soname_spec='${libname}${release}${shared_ext}$major'
  4416. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4417. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4418. + ;;
  4419. + *)
  4420. + shrext_cmds='.sl'
  4421. + dynamic_linker="$host_os dld.sl"
  4422. + shlibpath_var=SHLIB_PATH
  4423. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4424. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4425. + soname_spec='${libname}${release}${shared_ext}$major'
  4426. + ;;
  4427. + esac
  4428. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4429. + postinstall_cmds='chmod 555 $lib'
  4430. ;;
  4431. -*-ncr-sysv4.3*)
  4432. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4433. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4434. +
  4435. +interix[[3-9]]*)
  4436. + version_type=linux
  4437. + need_lib_prefix=no
  4438. + need_version=no
  4439. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4440. + soname_spec='${libname}${release}${shared_ext}$major'
  4441. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4442. + shlibpath_var=LD_LIBRARY_PATH
  4443. + shlibpath_overrides_runpath=no
  4444. + hardcode_into_libs=yes
  4445. ;;
  4446. -*)
  4447. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4448. +
  4449. +irix5* | irix6* | nonstopux*)
  4450. + case $host_os in
  4451. + nonstopux*) version_type=nonstopux ;;
  4452. + *)
  4453. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4454. + version_type=linux
  4455. + else
  4456. + version_type=irix
  4457. + fi ;;
  4458. + esac
  4459. + need_lib_prefix=no
  4460. + need_version=no
  4461. + soname_spec='${libname}${release}${shared_ext}$major'
  4462. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4463. + case $host_os in
  4464. + irix5* | nonstopux*)
  4465. + libsuff= shlibsuff=
  4466. + ;;
  4467. + *)
  4468. + case $LD in # libtool.m4 will add one of these switches to LD
  4469. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4470. + libsuff= shlibsuff= libmagic=32-bit;;
  4471. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4472. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4473. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4474. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4475. + *) libsuff= shlibsuff= libmagic=never-match;;
  4476. + esac
  4477. + ;;
  4478. + esac
  4479. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4480. + shlibpath_overrides_runpath=no
  4481. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4482. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4483. + hardcode_into_libs=yes
  4484. ;;
  4485. -esac
  4486. -])# AC_CHECK_LIBM
  4487. +# No shared lib support for Linux oldld, aout, or coff.
  4488. +linux*oldld* | linux*aout* | linux*coff*)
  4489. + dynamic_linker=no
  4490. + ;;
  4491. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4492. -# -----------------------------------
  4493. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4494. -# LTDLINCL to the include flags for the libltdl header and adds
  4495. -# --enable-ltdl-convenience to the configure arguments. Note that
  4496. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4497. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  4498. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  4499. -# (note the single quotes!). If your package is not flat and you're not
  4500. -# using automake, define top_builddir and top_srcdir appropriately in
  4501. -# the Makefiles.
  4502. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4503. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4504. - case $enable_ltdl_convenience in
  4505. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4506. - "") enable_ltdl_convenience=yes
  4507. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4508. - esac
  4509. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4510. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4511. - # For backwards non-gettext consistent compatibility...
  4512. - INCLTDL="$LTDLINCL"
  4513. -])# AC_LIBLTDL_CONVENIENCE
  4514. +# This must be Linux ELF.
  4515. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4516. + version_type=linux
  4517. + need_lib_prefix=no
  4518. + need_version=no
  4519. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4520. + soname_spec='${libname}${release}${shared_ext}$major'
  4521. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4522. + shlibpath_var=LD_LIBRARY_PATH
  4523. + shlibpath_overrides_runpath=no
  4524. + # Some binutils ld are patched to set DT_RUNPATH
  4525. + save_LDFLAGS=$LDFLAGS
  4526. + save_libdir=$libdir
  4527. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4528. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4529. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4530. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4531. + [shlibpath_overrides_runpath=yes])])
  4532. + LDFLAGS=$save_LDFLAGS
  4533. + libdir=$save_libdir
  4534. + # This implies no fast_install, which is unacceptable.
  4535. + # Some rework will be needed to allow for fast_install
  4536. + # before this can be enabled.
  4537. + hardcode_into_libs=yes
  4538. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4539. -# -----------------------------------
  4540. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4541. -# LTDLINCL to the include flags for the libltdl header and adds
  4542. -# --enable-ltdl-install to the configure arguments. Note that
  4543. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4544. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  4545. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  4546. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4547. -# flat and you're not using automake, define top_builddir and top_srcdir
  4548. -# appropriately in the Makefiles.
  4549. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4550. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4551. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4552. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4553. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4554. - [if test x"$enable_ltdl_install" = xno; then
  4555. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4556. - else
  4557. - enable_ltdl_install=yes
  4558. - fi
  4559. - ])
  4560. - if test x"$enable_ltdl_install" = x"yes"; then
  4561. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4562. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4563. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4564. - else
  4565. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4566. - LIBLTDL="-lltdl"
  4567. - LTDLINCL=
  4568. + # Append ld.so.conf contents to the search path
  4569. + if test -f /etc/ld.so.conf; then
  4570. + 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' ' '`
  4571. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4572. fi
  4573. - # For backwards non-gettext consistent compatibility...
  4574. - INCLTDL="$LTDLINCL"
  4575. -])# AC_LIBLTDL_INSTALLABLE
  4576. -
  4577. -
  4578. -# AC_LIBTOOL_CXX
  4579. -# --------------
  4580. -# enable support for C++ libraries
  4581. -AC_DEFUN([AC_LIBTOOL_CXX],
  4582. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4583. -])# AC_LIBTOOL_CXX
  4584. -
  4585. -
  4586. -# _LT_AC_LANG_CXX
  4587. -# ---------------
  4588. -AC_DEFUN([_LT_AC_LANG_CXX],
  4589. -[AC_REQUIRE([AC_PROG_CXX])
  4590. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4591. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4592. -])# _LT_AC_LANG_CXX
  4593. -
  4594. -# _LT_AC_PROG_CXXCPP
  4595. -# ------------------
  4596. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4597. -[
  4598. -AC_REQUIRE([AC_PROG_CXX])
  4599. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4600. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4601. - (test "X$CXX" != "Xg++"))) ; then
  4602. - AC_PROG_CXXCPP
  4603. -fi
  4604. -])# _LT_AC_PROG_CXXCPP
  4605. -
  4606. -# AC_LIBTOOL_F77
  4607. -# --------------
  4608. -# enable support for Fortran 77 libraries
  4609. -AC_DEFUN([AC_LIBTOOL_F77],
  4610. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4611. -])# AC_LIBTOOL_F77
  4612. -
  4613. -
  4614. -# _LT_AC_LANG_F77
  4615. -# ---------------
  4616. -AC_DEFUN([_LT_AC_LANG_F77],
  4617. -[AC_REQUIRE([AC_PROG_F77])
  4618. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4619. -])# _LT_AC_LANG_F77
  4620. -
  4621. -
  4622. -# AC_LIBTOOL_GCJ
  4623. -# --------------
  4624. -# enable support for GCJ libraries
  4625. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4626. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4627. -])# AC_LIBTOOL_GCJ
  4628. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4629. + # powerpc, because MkLinux only supported shared libraries with the
  4630. + # GNU dynamic linker. Since this was broken with cross compilers,
  4631. + # most powerpc-linux boxes support dynamic linking these days and
  4632. + # people can always --disable-shared, the test was removed, and we
  4633. + # assume the GNU/Linux dynamic linker is in use.
  4634. + dynamic_linker='GNU/Linux ld.so'
  4635. + ;;
  4636. -# _LT_AC_LANG_GCJ
  4637. -# ---------------
  4638. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4639. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4640. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4641. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4642. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4643. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4644. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4645. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4646. -])# _LT_AC_LANG_GCJ
  4647. +netbsdelf*-gnu)
  4648. + version_type=linux
  4649. + need_lib_prefix=no
  4650. + need_version=no
  4651. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4652. + soname_spec='${libname}${release}${shared_ext}$major'
  4653. + shlibpath_var=LD_LIBRARY_PATH
  4654. + shlibpath_overrides_runpath=no
  4655. + hardcode_into_libs=yes
  4656. + dynamic_linker='NetBSD ld.elf_so'
  4657. + ;;
  4658. +netbsd*)
  4659. + version_type=sunos
  4660. + need_lib_prefix=no
  4661. + need_version=no
  4662. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4663. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4664. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4665. + dynamic_linker='NetBSD (a.out) ld.so'
  4666. + else
  4667. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4668. + soname_spec='${libname}${release}${shared_ext}$major'
  4669. + dynamic_linker='NetBSD ld.elf_so'
  4670. + fi
  4671. + shlibpath_var=LD_LIBRARY_PATH
  4672. + shlibpath_overrides_runpath=yes
  4673. + hardcode_into_libs=yes
  4674. + ;;
  4675. -# AC_LIBTOOL_RC
  4676. -# -------------
  4677. -# enable support for Windows resource files
  4678. -AC_DEFUN([AC_LIBTOOL_RC],
  4679. -[AC_REQUIRE([LT_AC_PROG_RC])
  4680. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4681. -])# AC_LIBTOOL_RC
  4682. +newsos6)
  4683. + version_type=linux
  4684. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4685. + shlibpath_var=LD_LIBRARY_PATH
  4686. + shlibpath_overrides_runpath=yes
  4687. + ;;
  4688. +*nto* | *qnx*)
  4689. + version_type=qnx
  4690. + need_lib_prefix=no
  4691. + need_version=no
  4692. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4693. + soname_spec='${libname}${release}${shared_ext}$major'
  4694. + shlibpath_var=LD_LIBRARY_PATH
  4695. + shlibpath_overrides_runpath=no
  4696. + hardcode_into_libs=yes
  4697. + dynamic_linker='ldqnx.so'
  4698. + ;;
  4699. -# AC_LIBTOOL_LANG_C_CONFIG
  4700. -# ------------------------
  4701. -# Ensure that the configuration vars for the C compiler are
  4702. -# suitably defined. Those variables are subsequently used by
  4703. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4704. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4705. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4706. -[lt_save_CC="$CC"
  4707. -AC_LANG_PUSH(C)
  4708. -
  4709. -# Source file extension for C test sources.
  4710. -ac_ext=c
  4711. -
  4712. -# Object file extension for compiled C test sources.
  4713. -objext=o
  4714. -_LT_AC_TAGVAR(objext, $1)=$objext
  4715. +openbsd*)
  4716. + version_type=sunos
  4717. + sys_lib_dlsearch_path_spec="/usr/lib"
  4718. + need_lib_prefix=no
  4719. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4720. + case $host_os in
  4721. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4722. + *) need_version=no ;;
  4723. + esac
  4724. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4725. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4726. + shlibpath_var=LD_LIBRARY_PATH
  4727. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4728. + case $host_os in
  4729. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4730. + shlibpath_overrides_runpath=no
  4731. + ;;
  4732. + *)
  4733. + shlibpath_overrides_runpath=yes
  4734. + ;;
  4735. + esac
  4736. + else
  4737. + shlibpath_overrides_runpath=yes
  4738. + fi
  4739. + ;;
  4740. -# Code to be used in simple compile tests
  4741. -lt_simple_compile_test_code="int some_variable = 0;"
  4742. +os2*)
  4743. + libname_spec='$name'
  4744. + shrext_cmds=".dll"
  4745. + need_lib_prefix=no
  4746. + library_names_spec='$libname${shared_ext} $libname.a'
  4747. + dynamic_linker='OS/2 ld.exe'
  4748. + shlibpath_var=LIBPATH
  4749. + ;;
  4750. -# Code to be used in simple link tests
  4751. -lt_simple_link_test_code='int main(){return(0);}'
  4752. +osf3* | osf4* | osf5*)
  4753. + version_type=osf
  4754. + need_lib_prefix=no
  4755. + need_version=no
  4756. + soname_spec='${libname}${release}${shared_ext}$major'
  4757. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4758. + shlibpath_var=LD_LIBRARY_PATH
  4759. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4760. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4761. + ;;
  4762. -_LT_AC_SYS_COMPILER
  4763. +rdos*)
  4764. + dynamic_linker=no
  4765. + ;;
  4766. -# save warnings/boilerplate of simple test code
  4767. -_LT_COMPILER_BOILERPLATE
  4768. -_LT_LINKER_BOILERPLATE
  4769. +solaris*)
  4770. + version_type=linux
  4771. + need_lib_prefix=no
  4772. + need_version=no
  4773. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4774. + soname_spec='${libname}${release}${shared_ext}$major'
  4775. + shlibpath_var=LD_LIBRARY_PATH
  4776. + shlibpath_overrides_runpath=yes
  4777. + hardcode_into_libs=yes
  4778. + # ldd complains unless libraries are executable
  4779. + postinstall_cmds='chmod +x $lib'
  4780. + ;;
  4781. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4782. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4783. -AC_LIBTOOL_PROG_CC_C_O($1)
  4784. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4785. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4786. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4787. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4788. -AC_LIBTOOL_SYS_LIB_STRIP
  4789. -AC_LIBTOOL_DLOPEN_SELF
  4790. -
  4791. -# Report which library types will actually be built
  4792. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4793. -AC_MSG_RESULT([$can_build_shared])
  4794. +sunos4*)
  4795. + version_type=sunos
  4796. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4797. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4798. + shlibpath_var=LD_LIBRARY_PATH
  4799. + shlibpath_overrides_runpath=yes
  4800. + if test "$with_gnu_ld" = yes; then
  4801. + need_lib_prefix=no
  4802. + fi
  4803. + need_version=yes
  4804. + ;;
  4805. -AC_MSG_CHECKING([whether to build shared libraries])
  4806. -test "$can_build_shared" = "no" && enable_shared=no
  4807. +sysv4 | sysv4.3*)
  4808. + version_type=linux
  4809. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4810. + soname_spec='${libname}${release}${shared_ext}$major'
  4811. + shlibpath_var=LD_LIBRARY_PATH
  4812. + case $host_vendor in
  4813. + sni)
  4814. + shlibpath_overrides_runpath=no
  4815. + need_lib_prefix=no
  4816. + runpath_var=LD_RUN_PATH
  4817. + ;;
  4818. + siemens)
  4819. + need_lib_prefix=no
  4820. + ;;
  4821. + motorola)
  4822. + need_lib_prefix=no
  4823. + need_version=no
  4824. + shlibpath_overrides_runpath=no
  4825. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4826. + ;;
  4827. + esac
  4828. + ;;
  4829. -# On AIX, shared libraries and static libraries use the same namespace, and
  4830. -# are all built from PIC.
  4831. -case $host_os in
  4832. -aix3*)
  4833. - test "$enable_shared" = yes && enable_static=no
  4834. - if test -n "$RANLIB"; then
  4835. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4836. - postinstall_cmds='$RANLIB $lib'
  4837. +sysv4*MP*)
  4838. + if test -d /usr/nec ;then
  4839. + version_type=linux
  4840. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4841. + soname_spec='$libname${shared_ext}.$major'
  4842. + shlibpath_var=LD_LIBRARY_PATH
  4843. fi
  4844. ;;
  4845. -aix4* | aix5*)
  4846. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4847. - test "$enable_shared" = yes && enable_static=no
  4848. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4849. + version_type=freebsd-elf
  4850. + need_lib_prefix=no
  4851. + need_version=no
  4852. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4853. + soname_spec='${libname}${release}${shared_ext}$major'
  4854. + shlibpath_var=LD_LIBRARY_PATH
  4855. + shlibpath_overrides_runpath=yes
  4856. + hardcode_into_libs=yes
  4857. + if test "$with_gnu_ld" = yes; then
  4858. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4859. + else
  4860. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4861. + case $host_os in
  4862. + sco3.2v5*)
  4863. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4864. + ;;
  4865. + esac
  4866. fi
  4867. - ;;
  4868. -esac
  4869. -AC_MSG_RESULT([$enable_shared])
  4870. -
  4871. -AC_MSG_CHECKING([whether to build static libraries])
  4872. -# Make sure either enable_shared or enable_static is yes.
  4873. -test "$enable_shared" = yes || enable_static=yes
  4874. -AC_MSG_RESULT([$enable_static])
  4875. -
  4876. -AC_LIBTOOL_CONFIG($1)
  4877. -
  4878. -AC_LANG_POP
  4879. -CC="$lt_save_CC"
  4880. -])# AC_LIBTOOL_LANG_C_CONFIG
  4881. -
  4882. + sys_lib_dlsearch_path_spec='/usr/lib'
  4883. + ;;
  4884. -# AC_LIBTOOL_LANG_CXX_CONFIG
  4885. -# --------------------------
  4886. -# Ensure that the configuration vars for the C compiler are
  4887. -# suitably defined. Those variables are subsequently used by
  4888. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4889. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4890. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4891. -[AC_LANG_PUSH(C++)
  4892. -AC_REQUIRE([AC_PROG_CXX])
  4893. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4894. -
  4895. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4896. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4897. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4898. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4899. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4900. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4901. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4902. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4903. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4904. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4905. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4906. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4907. -_LT_AC_TAGVAR(module_cmds, $1)=
  4908. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4909. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4910. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4911. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4912. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4913. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4914. +tpf*)
  4915. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4916. + version_type=linux
  4917. + need_lib_prefix=no
  4918. + need_version=no
  4919. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4920. + shlibpath_var=LD_LIBRARY_PATH
  4921. + shlibpath_overrides_runpath=no
  4922. + hardcode_into_libs=yes
  4923. + ;;
  4924. -# Dependencies to place before and after the object being linked:
  4925. -_LT_AC_TAGVAR(predep_objects, $1)=
  4926. -_LT_AC_TAGVAR(postdep_objects, $1)=
  4927. -_LT_AC_TAGVAR(predeps, $1)=
  4928. -_LT_AC_TAGVAR(postdeps, $1)=
  4929. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4930. +uts4*)
  4931. + version_type=linux
  4932. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4933. + soname_spec='${libname}${release}${shared_ext}$major'
  4934. + shlibpath_var=LD_LIBRARY_PATH
  4935. + ;;
  4936. -# Source file extension for C++ test sources.
  4937. -ac_ext=cpp
  4938. +*)
  4939. + dynamic_linker=no
  4940. + ;;
  4941. +esac
  4942. +AC_MSG_RESULT([$dynamic_linker])
  4943. +test "$dynamic_linker" = no && can_build_shared=no
  4944. -# Object file extension for compiled C++ test sources.
  4945. -objext=o
  4946. -_LT_AC_TAGVAR(objext, $1)=$objext
  4947. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4948. +if test "$GCC" = yes; then
  4949. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4950. +fi
  4951. -# Code to be used in simple compile tests
  4952. -lt_simple_compile_test_code="int some_variable = 0;"
  4953. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4954. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4955. +fi
  4956. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4957. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4958. +fi
  4959. -# Code to be used in simple link tests
  4960. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  4961. +_LT_DECL([], [variables_saved_for_relink], [1],
  4962. + [Variables whose values should be saved in libtool wrapper scripts and
  4963. + restored at link time])
  4964. +_LT_DECL([], [need_lib_prefix], [0],
  4965. + [Do we need the "lib" prefix for modules?])
  4966. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4967. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4968. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4969. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4970. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4971. + [Is shlibpath searched before the hard-coded library search path?])
  4972. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4973. +_LT_DECL([], [library_names_spec], [1],
  4974. + [[List of archive names. First name is the real one, the rest are links.
  4975. + The last name is the one that the linker finds with -lNAME]])
  4976. +_LT_DECL([], [soname_spec], [1],
  4977. + [[The coded name of the library, if different from the real name]])
  4978. +_LT_DECL([], [postinstall_cmds], [2],
  4979. + [Command to use after installation of a shared archive])
  4980. +_LT_DECL([], [postuninstall_cmds], [2],
  4981. + [Command to use after uninstallation of a shared archive])
  4982. +_LT_DECL([], [finish_cmds], [2],
  4983. + [Commands used to finish a libtool library installation in a directory])
  4984. +_LT_DECL([], [finish_eval], [1],
  4985. + [[As "finish_cmds", except a single script fragment to be evaled but
  4986. + not shown]])
  4987. +_LT_DECL([], [hardcode_into_libs], [0],
  4988. + [Whether we should hardcode library paths into libraries])
  4989. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  4990. + [Compile-time system search path for libraries])
  4991. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4992. + [Run-time system search path for libraries])
  4993. +])# _LT_SYS_DYNAMIC_LINKER
  4994. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4995. -_LT_AC_SYS_COMPILER
  4996. -# save warnings/boilerplate of simple test code
  4997. -_LT_COMPILER_BOILERPLATE
  4998. -_LT_LINKER_BOILERPLATE
  4999. +# _LT_PATH_TOOL_PREFIX(TOOL)
  5000. +# --------------------------
  5001. +# find a file program which can recognize shared library
  5002. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  5003. +[m4_require([_LT_DECL_EGREP])dnl
  5004. +AC_MSG_CHECKING([for $1])
  5005. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  5006. +[case $MAGIC_CMD in
  5007. +[[\\/*] | ?:[\\/]*])
  5008. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5009. + ;;
  5010. +*)
  5011. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  5012. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5013. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  5014. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  5015. +dnl not every word. This closes a longstanding sh security hole.
  5016. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  5017. + for ac_dir in $ac_dummy; do
  5018. + IFS="$lt_save_ifs"
  5019. + test -z "$ac_dir" && ac_dir=.
  5020. + if test -f $ac_dir/$1; then
  5021. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  5022. + if test -n "$file_magic_test_file"; then
  5023. + case $deplibs_check_method in
  5024. + "file_magic "*)
  5025. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5026. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5027. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5028. + $EGREP "$file_magic_regex" > /dev/null; then
  5029. + :
  5030. + else
  5031. + cat <<_LT_EOF 1>&2
  5032. -# Allow CC to be a program name with arguments.
  5033. -lt_save_CC=$CC
  5034. -lt_save_LD=$LD
  5035. -lt_save_GCC=$GCC
  5036. -GCC=$GXX
  5037. -lt_save_with_gnu_ld=$with_gnu_ld
  5038. -lt_save_path_LD=$lt_cv_path_LD
  5039. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5040. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5041. -else
  5042. - $as_unset lt_cv_prog_gnu_ld
  5043. -fi
  5044. -if test -n "${lt_cv_path_LDCXX+set}"; then
  5045. - lt_cv_path_LD=$lt_cv_path_LDCXX
  5046. -else
  5047. - $as_unset lt_cv_path_LD
  5048. -fi
  5049. -test -z "${LDCXX+set}" || LD=$LDCXX
  5050. -CC=${CXX-"c++"}
  5051. -compiler=$CC
  5052. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5053. -_LT_CC_BASENAME([$compiler])
  5054. +*** Warning: the command libtool uses to detect shared libraries,
  5055. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  5056. +*** The result is that libtool may fail to recognize shared libraries
  5057. +*** as such. This will affect the creation of libtool libraries that
  5058. +*** depend on shared libraries, but programs linked with such libtool
  5059. +*** libraries will work regardless of this problem. Nevertheless, you
  5060. +*** may want to report the problem to your system manager and/or to
  5061. +*** bug-libtool@gnu.org
  5062. -# We don't want -fno-exception wen compiling C++ code, so set the
  5063. -# no_builtin_flag separately
  5064. -if test "$GXX" = yes; then
  5065. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5066. +_LT_EOF
  5067. + fi ;;
  5068. + esac
  5069. + fi
  5070. + break
  5071. + fi
  5072. + done
  5073. + IFS="$lt_save_ifs"
  5074. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  5075. + ;;
  5076. +esac])
  5077. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5078. +if test -n "$MAGIC_CMD"; then
  5079. + AC_MSG_RESULT($MAGIC_CMD)
  5080. else
  5081. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5082. + AC_MSG_RESULT(no)
  5083. fi
  5084. +_LT_DECL([], [MAGIC_CMD], [0],
  5085. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  5086. +])# _LT_PATH_TOOL_PREFIX
  5087. -if test "$GXX" = yes; then
  5088. - # Set up default GNU C++ configuration
  5089. -
  5090. - AC_PROG_LD
  5091. -
  5092. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5093. - # archiving commands below assume that GNU ld is being used.
  5094. - if test "$with_gnu_ld" = yes; then
  5095. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5096. - _LT_AC_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'
  5097. -
  5098. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5099. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5100. +# Old name:
  5101. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  5102. +dnl aclocal-1.4 backwards compatibility:
  5103. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  5104. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5105. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5106. - # investigate it a little bit more. (MM)
  5107. - wlarc='${wl}'
  5108. - # ancient GNU ld didn't support --whole-archive et. al.
  5109. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  5110. - grep 'no-whole-archive' > /dev/null; then
  5111. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5112. - else
  5113. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5114. - fi
  5115. +# _LT_PATH_MAGIC
  5116. +# --------------
  5117. +# find a file program which can recognize a shared library
  5118. +m4_defun([_LT_PATH_MAGIC],
  5119. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  5120. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  5121. + if test -n "$ac_tool_prefix"; then
  5122. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  5123. else
  5124. - with_gnu_ld=no
  5125. - wlarc=
  5126. -
  5127. - # A generic and very simple default shared library creation
  5128. - # command for GNU C++ for the case where it uses the native
  5129. - # linker, instead of GNU ld. If possible, this setting should
  5130. - # overridden to take advantage of the native linker features on
  5131. - # the platform it is being used on.
  5132. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5133. + MAGIC_CMD=:
  5134. fi
  5135. +fi
  5136. +])# _LT_PATH_MAGIC
  5137. - # Commands to make compiler produce verbose output that lists
  5138. - # what "hidden" libraries, object files and flags are used when
  5139. - # linking a shared library.
  5140. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5141. -else
  5142. - GXX=no
  5143. - with_gnu_ld=no
  5144. - wlarc=
  5145. -fi
  5146. +# LT_PATH_LD
  5147. +# ----------
  5148. +# find the pathname to the GNU or non-GNU linker
  5149. +AC_DEFUN([LT_PATH_LD],
  5150. +[AC_REQUIRE([AC_PROG_CC])dnl
  5151. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5152. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  5153. +m4_require([_LT_DECL_SED])dnl
  5154. +m4_require([_LT_DECL_EGREP])dnl
  5155. -# PORTME: fill in a description of your system's C++ link characteristics
  5156. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5157. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5158. -case $host_os in
  5159. - aix3*)
  5160. - # FIXME: insert proper C++ library support
  5161. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5162. - ;;
  5163. - aix4* | aix5*)
  5164. - if test "$host_cpu" = ia64; then
  5165. - # On IA64, the linker does run time linking by default, so we don't
  5166. - # have to do anything special.
  5167. - aix_use_runtimelinking=no
  5168. - exp_sym_flag='-Bexport'
  5169. - no_entry_flag=""
  5170. - else
  5171. - aix_use_runtimelinking=no
  5172. +AC_ARG_WITH([gnu-ld],
  5173. + [AS_HELP_STRING([--with-gnu-ld],
  5174. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  5175. + [test "$withval" = no || with_gnu_ld=yes],
  5176. + [with_gnu_ld=no])dnl
  5177. - # Test if we are trying to use run time linking or normal
  5178. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5179. - # need to do runtime linking.
  5180. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5181. - for ld_flag in $LDFLAGS; do
  5182. - case $ld_flag in
  5183. - *-brtl*)
  5184. - aix_use_runtimelinking=yes
  5185. - break
  5186. - ;;
  5187. - esac
  5188. - done
  5189. +ac_prog=ld
  5190. +if test "$GCC" = yes; then
  5191. + # Check if gcc -print-prog-name=ld gives a path.
  5192. + AC_MSG_CHECKING([for ld used by $CC])
  5193. + case $host in
  5194. + *-*-mingw*)
  5195. + # gcc leaves a trailing carriage return which upsets mingw
  5196. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5197. + *)
  5198. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5199. + esac
  5200. + case $ac_prog in
  5201. + # Accept absolute paths.
  5202. + [[\\/]]* | ?:[[\\/]]*)
  5203. + re_direlt='/[[^/]][[^/]]*/\.\./'
  5204. + # Canonicalize the pathname of ld
  5205. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5206. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5207. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5208. + done
  5209. + test -z "$LD" && LD="$ac_prog"
  5210. + ;;
  5211. + "")
  5212. + # If it fails, then pretend we aren't using GCC.
  5213. + ac_prog=ld
  5214. + ;;
  5215. + *)
  5216. + # If it is relative, then search for the first ld in PATH.
  5217. + with_gnu_ld=unknown
  5218. + ;;
  5219. + esac
  5220. +elif test "$with_gnu_ld" = yes; then
  5221. + AC_MSG_CHECKING([for GNU ld])
  5222. +else
  5223. + AC_MSG_CHECKING([for non-GNU ld])
  5224. +fi
  5225. +AC_CACHE_VAL(lt_cv_path_LD,
  5226. +[if test -z "$LD"; then
  5227. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5228. + for ac_dir in $PATH; do
  5229. + IFS="$lt_save_ifs"
  5230. + test -z "$ac_dir" && ac_dir=.
  5231. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5232. + lt_cv_path_LD="$ac_dir/$ac_prog"
  5233. + # Check to see if the program is GNU ld. I'd rather use --version,
  5234. + # but apparently some variants of GNU ld only accept -v.
  5235. + # Break only if it was the GNU/non-GNU ld that we prefer.
  5236. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5237. + *GNU* | *'with BFD'*)
  5238. + test "$with_gnu_ld" != no && break
  5239. ;;
  5240. - esac
  5241. -
  5242. - exp_sym_flag='-bexport'
  5243. - no_entry_flag='-bnoentry'
  5244. - fi
  5245. -
  5246. - # When large executables or shared objects are built, AIX ld can
  5247. - # have problems creating the table of contents. If linking a library
  5248. - # or program results in "error TOC overflow" add -mminimal-toc to
  5249. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5250. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5251. -
  5252. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5253. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5254. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5255. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5256. -
  5257. - if test "$GXX" = yes; then
  5258. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5259. - # We only want to do this on AIX 4.2 and lower, the check
  5260. - # below for broken collect2 doesn't work under 4.3+
  5261. - collect2name=`${CC} -print-prog-name=collect2`
  5262. - if test -f "$collect2name" && \
  5263. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5264. - then
  5265. - # We have reworked collect2
  5266. - :
  5267. - else
  5268. - # We have old collect2
  5269. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5270. - # It fails to find uninstalled libraries when the uninstalled
  5271. - # path is not listed in the libpath. Setting hardcode_minus_L
  5272. - # to unsupported forces relinking
  5273. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5274. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5275. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5276. - fi
  5277. + *)
  5278. + test "$with_gnu_ld" != yes && break
  5279. ;;
  5280. esac
  5281. - shared_flag='-shared'
  5282. - if test "$aix_use_runtimelinking" = yes; then
  5283. - shared_flag="$shared_flag "'${wl}-G'
  5284. - fi
  5285. - else
  5286. - # not using gcc
  5287. - if test "$host_cpu" = ia64; then
  5288. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5289. - # chokes on -Wl,-G. The following line is correct:
  5290. - shared_flag='-G'
  5291. - else
  5292. - if test "$aix_use_runtimelinking" = yes; then
  5293. - shared_flag='${wl}-G'
  5294. - else
  5295. - shared_flag='${wl}-bM:SRE'
  5296. - fi
  5297. - fi
  5298. fi
  5299. + done
  5300. + IFS="$lt_save_ifs"
  5301. +else
  5302. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5303. +fi])
  5304. +LD="$lt_cv_path_LD"
  5305. +if test -n "$LD"; then
  5306. + AC_MSG_RESULT($LD)
  5307. +else
  5308. + AC_MSG_RESULT(no)
  5309. +fi
  5310. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5311. +_LT_PATH_LD_GNU
  5312. +AC_SUBST([LD])
  5313. - # It seems that -bexpall does not export symbols beginning with
  5314. - # underscore (_), so it is better to generate a list of symbols to export.
  5315. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5316. - if test "$aix_use_runtimelinking" = yes; then
  5317. - # Warning - without using the other runtime loading flags (-brtl),
  5318. - # -berok will link without error, but may produce a broken library.
  5319. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5320. - # Determine the default libpath from the value encoded in an empty executable.
  5321. - _LT_AC_SYS_LIBPATH_AIX
  5322. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5323. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5324. +])# LT_PATH_LD
  5325. - _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5326. - else
  5327. - if test "$host_cpu" = ia64; then
  5328. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5329. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5330. - _LT_AC_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"
  5331. - else
  5332. - # Determine the default libpath from the value encoded in an empty executable.
  5333. - _LT_AC_SYS_LIBPATH_AIX
  5334. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5335. - # Warning - without using the other run time loading flags,
  5336. - # -berok will link without error, but may produce a broken library.
  5337. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5338. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5339. - # Exported symbols can be pulled into shared objects from archives
  5340. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5341. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5342. - # This is similar to how AIX traditionally builds its shared libraries.
  5343. - _LT_AC_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'
  5344. - fi
  5345. - fi
  5346. - ;;
  5347. +# Old names:
  5348. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5349. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5350. +dnl aclocal-1.4 backwards compatibility:
  5351. +dnl AC_DEFUN([AM_PROG_LD], [])
  5352. +dnl AC_DEFUN([AC_PROG_LD], [])
  5353. +
  5354. +
  5355. +# _LT_PATH_LD_GNU
  5356. +#- --------------
  5357. +m4_defun([_LT_PATH_LD_GNU],
  5358. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5359. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5360. +case `$LD -v 2>&1 </dev/null` in
  5361. +*GNU* | *'with BFD'*)
  5362. + lt_cv_prog_gnu_ld=yes
  5363. + ;;
  5364. +*)
  5365. + lt_cv_prog_gnu_ld=no
  5366. + ;;
  5367. +esac])
  5368. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5369. +])# _LT_PATH_LD_GNU
  5370. - beos*)
  5371. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5372. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5373. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5374. - # support --undefined. This deserves some investigation. FIXME
  5375. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5376. +
  5377. +# _LT_CMD_RELOAD
  5378. +# --------------
  5379. +# find reload flag for linker
  5380. +# -- PORTME Some linkers may need a different reload flag.
  5381. +m4_defun([_LT_CMD_RELOAD],
  5382. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5383. + lt_cv_ld_reload_flag,
  5384. + [lt_cv_ld_reload_flag='-r'])
  5385. +reload_flag=$lt_cv_ld_reload_flag
  5386. +case $reload_flag in
  5387. +"" | " "*) ;;
  5388. +*) reload_flag=" $reload_flag" ;;
  5389. +esac
  5390. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5391. +case $host_os in
  5392. + darwin*)
  5393. + if test "$GCC" = yes; then
  5394. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5395. else
  5396. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5397. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5398. fi
  5399. ;;
  5400. +esac
  5401. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5402. +_LT_DECL([], [reload_cmds], [2])dnl
  5403. +])# _LT_CMD_RELOAD
  5404. - chorus*)
  5405. - case $cc_basename in
  5406. - *)
  5407. - # FIXME: insert proper C++ library support
  5408. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5409. - ;;
  5410. - esac
  5411. - ;;
  5412. - cygwin* | mingw* | pw32*)
  5413. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5414. - # as there is no search path for DLLs.
  5415. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5416. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5417. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5418. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5419. -
  5420. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5421. - _LT_AC_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'
  5422. - # If the export-symbols file already is a .def file (1st line
  5423. - # is EXPORTS), use it as is; otherwise, prepend...
  5424. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5425. - cp $export_symbols $output_objdir/$soname.def;
  5426. - else
  5427. - echo EXPORTS > $output_objdir/$soname.def;
  5428. - cat $export_symbols >> $output_objdir/$soname.def;
  5429. - fi~
  5430. - $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'
  5431. - else
  5432. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5433. - fi
  5434. +# _LT_CHECK_MAGIC_METHOD
  5435. +# ----------------------
  5436. +# how to check for library dependencies
  5437. +# -- PORTME fill in with the dynamic library characteristics
  5438. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5439. +[m4_require([_LT_DECL_EGREP])
  5440. +m4_require([_LT_DECL_OBJDUMP])
  5441. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5442. +lt_cv_deplibs_check_method,
  5443. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  5444. +lt_cv_file_magic_test_file=
  5445. +lt_cv_deplibs_check_method='unknown'
  5446. +# Need to set the preceding variable on all platforms that support
  5447. +# interlibrary dependencies.
  5448. +# 'none' -- dependencies not supported.
  5449. +# `unknown' -- same as none, but documents that we really don't know.
  5450. +# 'pass_all' -- all dependencies passed with no checks.
  5451. +# 'test_compile' -- check by making test program.
  5452. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5453. +# which responds to the $file_magic_cmd with a given extended regex.
  5454. +# If you have `file' or equivalent on your system and you're not sure
  5455. +# whether `pass_all' will *always* work, you probably want this one.
  5456. +
  5457. +case $host_os in
  5458. +aix[[4-9]]*)
  5459. + lt_cv_deplibs_check_method=pass_all
  5460. ;;
  5461. - darwin* | rhapsody*)
  5462. - case $host_os in
  5463. - rhapsody* | darwin1.[[012]])
  5464. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5465. - ;;
  5466. - *) # Darwin 1.3 on
  5467. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5468. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5469. - else
  5470. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5471. - 10.[[012]])
  5472. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5473. - ;;
  5474. - 10.*)
  5475. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5476. - ;;
  5477. - esac
  5478. - fi
  5479. - ;;
  5480. - esac
  5481. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5482. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5483. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5484. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5485. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5486. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5487. -
  5488. - if test "$GXX" = yes ; then
  5489. - lt_int_apple_cc_single_mod=no
  5490. - output_verbose_link_cmd='echo'
  5491. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  5492. - lt_int_apple_cc_single_mod=yes
  5493. - fi
  5494. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5495. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5496. - else
  5497. - _LT_AC_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'
  5498. - fi
  5499. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5500. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5501. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5502. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5503. - else
  5504. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5505. - fi
  5506. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5507. - else
  5508. - case $cc_basename in
  5509. - xlc*)
  5510. - output_verbose_link_cmd='echo'
  5511. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  5512. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5513. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5514. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5515. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5516. - ;;
  5517. - *)
  5518. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5519. - ;;
  5520. - esac
  5521. - fi
  5522. - ;;
  5523. - dgux*)
  5524. - case $cc_basename in
  5525. - ec++*)
  5526. - # FIXME: insert proper C++ library support
  5527. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5528. - ;;
  5529. - ghcx*)
  5530. - # Green Hills C++ Compiler
  5531. - # FIXME: insert proper C++ library support
  5532. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5533. - ;;
  5534. - *)
  5535. - # FIXME: insert proper C++ library support
  5536. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5537. - ;;
  5538. - esac
  5539. - ;;
  5540. - freebsd[[12]]*)
  5541. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5542. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5543. - ;;
  5544. - freebsd-elf*)
  5545. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5546. - ;;
  5547. - freebsd* | dragonfly*)
  5548. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5549. - # conventions
  5550. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5551. - ;;
  5552. - gnu*)
  5553. - ;;
  5554. - hpux9*)
  5555. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5556. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5557. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5558. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5559. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5560. - # but as the default
  5561. - # location of the library.
  5562. -
  5563. - case $cc_basename in
  5564. - CC*)
  5565. - # FIXME: insert proper C++ library support
  5566. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5567. - ;;
  5568. - aCC*)
  5569. - _LT_AC_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'
  5570. - # Commands to make compiler produce verbose output that lists
  5571. - # what "hidden" libraries, object files and flags are used when
  5572. - # linking a shared library.
  5573. - #
  5574. - # There doesn't appear to be a way to prevent this compiler from
  5575. - # explicitly linking system object files so we need to strip them
  5576. - # from the output so that they don't get included in the library
  5577. - # dependencies.
  5578. - 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 $list'
  5579. - ;;
  5580. - *)
  5581. - if test "$GXX" = yes; then
  5582. - _LT_AC_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'
  5583. - else
  5584. - # FIXME: insert proper C++ library support
  5585. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5586. - fi
  5587. - ;;
  5588. - esac
  5589. - ;;
  5590. - hpux10*|hpux11*)
  5591. - if test $with_gnu_ld = no; then
  5592. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5593. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5594. +beos*)
  5595. + lt_cv_deplibs_check_method=pass_all
  5596. + ;;
  5597. - case $host_cpu in
  5598. - hppa*64*|ia64*) ;;
  5599. - *)
  5600. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5601. - ;;
  5602. - esac
  5603. - fi
  5604. +bsdi[[45]]*)
  5605. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5606. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5607. + lt_cv_file_magic_test_file=/shlib/libc.so
  5608. + ;;
  5609. +
  5610. +cygwin*)
  5611. + # func_win32_libid is a shell function defined in ltmain.sh
  5612. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5613. + lt_cv_file_magic_cmd='func_win32_libid'
  5614. + ;;
  5615. +
  5616. +mingw* | pw32*)
  5617. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5618. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5619. + # unless we find 'file', for example because we are cross-compiling.
  5620. + if ( file / ) >/dev/null 2>&1; then
  5621. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5622. + lt_cv_file_magic_cmd='func_win32_libid'
  5623. + else
  5624. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5625. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5626. + fi
  5627. + ;;
  5628. +
  5629. +cegcc)
  5630. + # use the weaker test based on 'objdump'. See mingw*.
  5631. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5632. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5633. + ;;
  5634. +
  5635. +darwin* | rhapsody*)
  5636. + lt_cv_deplibs_check_method=pass_all
  5637. + ;;
  5638. +
  5639. +freebsd* | dragonfly*)
  5640. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5641. case $host_cpu in
  5642. - hppa*64*|ia64*)
  5643. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5644. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5645. - ;;
  5646. - *)
  5647. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5648. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5649. - # but as the default
  5650. - # location of the library.
  5651. + i*86 )
  5652. + # Not sure whether the presence of OpenBSD here was a mistake.
  5653. + # Let's accept both of them until this is cleared up.
  5654. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5655. + lt_cv_file_magic_cmd=/usr/bin/file
  5656. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5657. ;;
  5658. esac
  5659. + else
  5660. + lt_cv_deplibs_check_method=pass_all
  5661. + fi
  5662. + ;;
  5663. - case $cc_basename in
  5664. - CC*)
  5665. - # FIXME: insert proper C++ library support
  5666. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5667. - ;;
  5668. - aCC*)
  5669. - case $host_cpu in
  5670. - hppa*64*)
  5671. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5672. - ;;
  5673. - ia64*)
  5674. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5675. - ;;
  5676. - *)
  5677. - _LT_AC_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'
  5678. - ;;
  5679. - esac
  5680. - # Commands to make compiler produce verbose output that lists
  5681. - # what "hidden" libraries, object files and flags are used when
  5682. - # linking a shared library.
  5683. - #
  5684. - # There doesn't appear to be a way to prevent this compiler from
  5685. - # explicitly linking system object files so we need to strip them
  5686. - # from the output so that they don't get included in the library
  5687. - # dependencies.
  5688. - 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 $list'
  5689. - ;;
  5690. - *)
  5691. - if test "$GXX" = yes; then
  5692. - if test $with_gnu_ld = no; then
  5693. - case $host_cpu in
  5694. - hppa*64*)
  5695. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5696. - ;;
  5697. - ia64*)
  5698. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5699. - ;;
  5700. - *)
  5701. - _LT_AC_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'
  5702. - ;;
  5703. - esac
  5704. - fi
  5705. - else
  5706. - # FIXME: insert proper C++ library support
  5707. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5708. - fi
  5709. - ;;
  5710. - esac
  5711. - ;;
  5712. - interix[[3-9]]*)
  5713. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5714. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5715. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5716. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5717. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5718. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5719. - # default) and relocated if they conflict, which is a slow very memory
  5720. - # consuming and fragmenting process. To avoid this, we pick a random,
  5721. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5722. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5723. - _LT_AC_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'
  5724. - _LT_AC_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'
  5725. - ;;
  5726. - irix5* | irix6*)
  5727. - case $cc_basename in
  5728. - CC*)
  5729. - # SGI C++
  5730. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5731. -
  5732. - # Archives containing C++ object files must be created using
  5733. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5734. - # necessary to make sure instantiated templates are included
  5735. - # in the archive.
  5736. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5737. - ;;
  5738. - *)
  5739. - if test "$GXX" = yes; then
  5740. - if test "$with_gnu_ld" = no; then
  5741. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5742. - else
  5743. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  5744. - fi
  5745. - fi
  5746. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5747. - ;;
  5748. - esac
  5749. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5750. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5751. - ;;
  5752. - linux* | k*bsd*-gnu)
  5753. - case $cc_basename in
  5754. - KCC*)
  5755. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5756. -
  5757. - # KCC will only create a shared library if the output file
  5758. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5759. - # to its proper name (with version) after linking.
  5760. - _LT_AC_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'
  5761. - _LT_AC_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'
  5762. - # Commands to make compiler produce verbose output that lists
  5763. - # what "hidden" libraries, object files and flags are used when
  5764. - # linking a shared library.
  5765. - #
  5766. - # There doesn't appear to be a way to prevent this compiler from
  5767. - # explicitly linking system object files so we need to strip them
  5768. - # from the output so that they don't get included in the library
  5769. - # dependencies.
  5770. - 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 $list'
  5771. -
  5772. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5773. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5774. -
  5775. - # Archives containing C++ object files must be created using
  5776. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5777. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5778. - ;;
  5779. - icpc*)
  5780. - # Intel C++
  5781. - with_gnu_ld=yes
  5782. - # version 8.0 and above of icpc choke on multiply defined symbols
  5783. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  5784. - # earlier do not add the objects themselves.
  5785. - case `$CC -V 2>&1` in
  5786. - *"Version 7."*)
  5787. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5788. - _LT_AC_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'
  5789. - ;;
  5790. - *) # Version 8.0 or newer
  5791. - tmp_idyn=
  5792. - case $host_cpu in
  5793. - ia64*) tmp_idyn=' -i_dynamic';;
  5794. - esac
  5795. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5796. - _LT_AC_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'
  5797. - ;;
  5798. - esac
  5799. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5800. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5801. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5802. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5803. - ;;
  5804. - pgCC*)
  5805. - # Portland Group C++ compiler
  5806. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5807. - _LT_AC_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'
  5808. -
  5809. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5810. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5811. - _LT_AC_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'
  5812. - ;;
  5813. - cxx*)
  5814. - # Compaq C++
  5815. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5816. - _LT_AC_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'
  5817. -
  5818. - runpath_var=LD_RUN_PATH
  5819. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5820. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5821. +gnu*)
  5822. + lt_cv_deplibs_check_method=pass_all
  5823. + ;;
  5824. - # Commands to make compiler produce verbose output that lists
  5825. - # what "hidden" libraries, object files and flags are used when
  5826. - # linking a shared library.
  5827. - #
  5828. - # There doesn't appear to be a way to prevent this compiler from
  5829. - # explicitly linking system object files so we need to strip them
  5830. - # from the output so that they don't get included in the library
  5831. - # dependencies.
  5832. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
  5833. - ;;
  5834. - *)
  5835. - case `$CC -V 2>&1 | sed 5q` in
  5836. - *Sun\ C*)
  5837. - # Sun C++ 5.9
  5838. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5839. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5840. - _LT_AC_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'
  5841. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5842. - _LT_AC_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'
  5843. -
  5844. - # Not sure whether something based on
  5845. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5846. - # would be better.
  5847. - output_verbose_link_cmd='echo'
  5848. -
  5849. - # Archives containing C++ object files must be created using
  5850. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5851. - # necessary to make sure instantiated templates are included
  5852. - # in the archive.
  5853. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5854. - ;;
  5855. - esac
  5856. - ;;
  5857. - esac
  5858. - ;;
  5859. - lynxos*)
  5860. - # FIXME: insert proper C++ library support
  5861. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5862. - ;;
  5863. - m88k*)
  5864. - # FIXME: insert proper C++ library support
  5865. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5866. - ;;
  5867. - mvs*)
  5868. - case $cc_basename in
  5869. - cxx*)
  5870. - # FIXME: insert proper C++ library support
  5871. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5872. - ;;
  5873. - *)
  5874. - # FIXME: insert proper C++ library support
  5875. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5876. - ;;
  5877. - esac
  5878. - ;;
  5879. - netbsd* | netbsdelf*-gnu)
  5880. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5881. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5882. - wlarc=
  5883. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5884. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5885. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5886. - fi
  5887. - # Workaround some broken pre-1.5 toolchains
  5888. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5889. +hpux10.20* | hpux11*)
  5890. + lt_cv_file_magic_cmd=/usr/bin/file
  5891. + case $host_cpu in
  5892. + ia64*)
  5893. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5894. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5895. ;;
  5896. - openbsd2*)
  5897. - # C++ shared libraries are fairly broken
  5898. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5899. + hppa*64*)
  5900. + [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]']
  5901. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5902. ;;
  5903. - openbsd*)
  5904. - if test -f /usr/libexec/ld.so; then
  5905. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5906. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5907. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5908. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5909. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5910. - _LT_AC_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'
  5911. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5912. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5913. - fi
  5914. - output_verbose_link_cmd='echo'
  5915. - else
  5916. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5917. - fi
  5918. + *)
  5919. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5920. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5921. ;;
  5922. - osf3*)
  5923. - case $cc_basename in
  5924. - KCC*)
  5925. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5926. -
  5927. - # KCC will only create a shared library if the output file
  5928. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5929. - # to its proper name (with version) after linking.
  5930. - _LT_AC_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'
  5931. -
  5932. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5933. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5934. -
  5935. - # Archives containing C++ object files must be created using
  5936. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5937. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5938. -
  5939. - ;;
  5940. - RCC*)
  5941. - # Rational C++ 2.4.1
  5942. - # FIXME: insert proper C++ library support
  5943. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5944. - ;;
  5945. - cxx*)
  5946. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5947. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5948. -
  5949. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5950. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5951. -
  5952. - # Commands to make compiler produce verbose output that lists
  5953. - # what "hidden" libraries, object files and flags are used when
  5954. - # linking a shared library.
  5955. - #
  5956. - # There doesn't appear to be a way to prevent this compiler from
  5957. - # explicitly linking system object files so we need to strip them
  5958. - # from the output so that they don't get included in the library
  5959. - # dependencies.
  5960. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
  5961. - ;;
  5962. - *)
  5963. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5964. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5965. - _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5966. -
  5967. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5968. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5969. -
  5970. - # Commands to make compiler produce verbose output that lists
  5971. - # what "hidden" libraries, object files and flags are used when
  5972. - # linking a shared library.
  5973. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5974. + esac
  5975. + ;;
  5976. - else
  5977. - # FIXME: insert proper C++ library support
  5978. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5979. - fi
  5980. - ;;
  5981. - esac
  5982. - ;;
  5983. - osf4* | osf5*)
  5984. - case $cc_basename in
  5985. - KCC*)
  5986. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5987. -
  5988. - # KCC will only create a shared library if the output file
  5989. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5990. - # to its proper name (with version) after linking.
  5991. - _LT_AC_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'
  5992. -
  5993. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5994. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5995. -
  5996. - # Archives containing C++ object files must be created using
  5997. - # the KAI C++ compiler.
  5998. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5999. - ;;
  6000. - RCC*)
  6001. - # Rational C++ 2.4.1
  6002. - # FIXME: insert proper C++ library support
  6003. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6004. - ;;
  6005. - cxx*)
  6006. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6007. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6008. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6009. - echo "-hidden">> $lib.exp~
  6010. - $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  6011. - $rm $lib.exp'
  6012. -
  6013. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6014. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6015. -
  6016. - # Commands to make compiler produce verbose output that lists
  6017. - # what "hidden" libraries, object files and flags are used when
  6018. - # linking a shared library.
  6019. - #
  6020. - # There doesn't appear to be a way to prevent this compiler from
  6021. - # explicitly linking system object files so we need to strip them
  6022. - # from the output so that they don't get included in the library
  6023. - # dependencies.
  6024. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
  6025. - ;;
  6026. - *)
  6027. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6028. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6029. - _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6030. -
  6031. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6032. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6033. -
  6034. - # Commands to make compiler produce verbose output that lists
  6035. - # what "hidden" libraries, object files and flags are used when
  6036. - # linking a shared library.
  6037. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  6038. +interix[[3-9]]*)
  6039. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6040. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  6041. + ;;
  6042. - else
  6043. - # FIXME: insert proper C++ library support
  6044. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6045. - fi
  6046. - ;;
  6047. - esac
  6048. - ;;
  6049. - psos*)
  6050. - # FIXME: insert proper C++ library support
  6051. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6052. - ;;
  6053. - sunos4*)
  6054. - case $cc_basename in
  6055. - CC*)
  6056. - # Sun C++ 4.x
  6057. - # FIXME: insert proper C++ library support
  6058. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6059. - ;;
  6060. - lcc*)
  6061. - # Lucid
  6062. - # FIXME: insert proper C++ library support
  6063. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6064. - ;;
  6065. - *)
  6066. - # FIXME: insert proper C++ library support
  6067. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6068. - ;;
  6069. - esac
  6070. - ;;
  6071. - solaris*)
  6072. - case $cc_basename in
  6073. - CC*)
  6074. - # Sun C++ 4.2, 5.x and Centerline C++
  6075. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  6076. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6077. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6078. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6079. - $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'
  6080. -
  6081. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6082. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6083. - case $host_os in
  6084. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6085. - *)
  6086. - # The compiler driver will combine and reorder linker options,
  6087. - # but understands `-z linker_flag'.
  6088. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6089. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6090. - ;;
  6091. - esac
  6092. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6093. +irix5* | irix6* | nonstopux*)
  6094. + case $LD in
  6095. + *-32|*"-32 ") libmagic=32-bit;;
  6096. + *-n32|*"-n32 ") libmagic=N32;;
  6097. + *-64|*"-64 ") libmagic=64-bit;;
  6098. + *) libmagic=never-match;;
  6099. + esac
  6100. + lt_cv_deplibs_check_method=pass_all
  6101. + ;;
  6102. - output_verbose_link_cmd='echo'
  6103. +# This must be Linux ELF.
  6104. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6105. + lt_cv_deplibs_check_method=pass_all
  6106. + ;;
  6107. - # Archives containing C++ object files must be created using
  6108. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6109. - # necessary to make sure instantiated templates are included
  6110. - # in the archive.
  6111. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6112. - ;;
  6113. - gcx*)
  6114. - # Green Hills C++ Compiler
  6115. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6116. +netbsd* | netbsdelf*-gnu)
  6117. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6118. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6119. + else
  6120. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  6121. + fi
  6122. + ;;
  6123. - # The C++ compiler must be used to create the archive.
  6124. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6125. - ;;
  6126. - *)
  6127. - # GNU C++ compiler with Solaris linker
  6128. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6129. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6130. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  6131. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6132. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6133. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6134. +newos6*)
  6135. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  6136. + lt_cv_file_magic_cmd=/usr/bin/file
  6137. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6138. + ;;
  6139. - # Commands to make compiler produce verbose output that lists
  6140. - # what "hidden" libraries, object files and flags are used when
  6141. - # linking a shared library.
  6142. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6143. - else
  6144. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6145. - # platform.
  6146. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6147. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6148. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6149. +*nto* | *qnx*)
  6150. + lt_cv_deplibs_check_method=pass_all
  6151. + ;;
  6152. - # Commands to make compiler produce verbose output that lists
  6153. - # what "hidden" libraries, object files and flags are used when
  6154. - # linking a shared library.
  6155. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6156. - fi
  6157. +openbsd*)
  6158. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6159. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  6160. + else
  6161. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6162. + fi
  6163. + ;;
  6164. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6165. - case $host_os in
  6166. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6167. - *)
  6168. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6169. - ;;
  6170. - esac
  6171. - fi
  6172. - ;;
  6173. - esac
  6174. +osf3* | osf4* | osf5*)
  6175. + lt_cv_deplibs_check_method=pass_all
  6176. + ;;
  6177. +
  6178. +rdos*)
  6179. + lt_cv_deplibs_check_method=pass_all
  6180. + ;;
  6181. +
  6182. +solaris*)
  6183. + lt_cv_deplibs_check_method=pass_all
  6184. + ;;
  6185. +
  6186. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6187. + lt_cv_deplibs_check_method=pass_all
  6188. + ;;
  6189. +
  6190. +sysv4 | sysv4.3*)
  6191. + case $host_vendor in
  6192. + motorola)
  6193. + 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]]'
  6194. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6195. ;;
  6196. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6197. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6198. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6199. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6200. - runpath_var='LD_RUN_PATH'
  6201. -
  6202. - case $cc_basename in
  6203. - CC*)
  6204. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6205. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6206. - ;;
  6207. - *)
  6208. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6209. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6210. - ;;
  6211. - esac
  6212. + ncr)
  6213. + lt_cv_deplibs_check_method=pass_all
  6214. ;;
  6215. - sysv5* | sco3.2v5* | sco5v6*)
  6216. - # Note: We can NOT use -z defs as we might desire, because we do not
  6217. - # link with -lc, and that would cause any symbols used from libc to
  6218. - # always be unresolved, which means just about no library would
  6219. - # ever link correctly. If we're not using GNU ld we use -z text
  6220. - # though, which does catch some bad symbols but isn't as heavy-handed
  6221. - # as -z defs.
  6222. - # For security reasons, it is highly recommended that you always
  6223. - # use absolute paths for naming shared libraries, and exclude the
  6224. - # DT_RUNPATH tag from executables and libraries. But doing so
  6225. - # requires that you compile everything twice, which is a pain.
  6226. - # So that behaviour is only enabled if SCOABSPATH is set to a
  6227. - # non-empty value in the environment. Most likely only useful for
  6228. - # creating official distributions of packages.
  6229. - # This is a hack until libtool officially supports absolute path
  6230. - # names for shared libraries.
  6231. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6232. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6233. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6234. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6235. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6236. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6237. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6238. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6239. - runpath_var='LD_RUN_PATH'
  6240. -
  6241. - case $cc_basename in
  6242. - CC*)
  6243. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6244. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6245. - ;;
  6246. - *)
  6247. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6248. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6249. - ;;
  6250. - esac
  6251. + sequent)
  6252. + lt_cv_file_magic_cmd='/bin/file'
  6253. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  6254. ;;
  6255. - tandem*)
  6256. - case $cc_basename in
  6257. - NCC*)
  6258. - # NonStop-UX NCC 3.20
  6259. - # FIXME: insert proper C++ library support
  6260. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6261. - ;;
  6262. - *)
  6263. - # FIXME: insert proper C++ library support
  6264. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6265. - ;;
  6266. - esac
  6267. + sni)
  6268. + lt_cv_file_magic_cmd='/bin/file'
  6269. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  6270. + lt_cv_file_magic_test_file=/lib/libc.so
  6271. ;;
  6272. - vxworks*)
  6273. - # FIXME: insert proper C++ library support
  6274. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6275. + siemens)
  6276. + lt_cv_deplibs_check_method=pass_all
  6277. ;;
  6278. - *)
  6279. - # FIXME: insert proper C++ library support
  6280. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6281. + pc)
  6282. + lt_cv_deplibs_check_method=pass_all
  6283. ;;
  6284. + esac
  6285. + ;;
  6286. +
  6287. +tpf*)
  6288. + lt_cv_deplibs_check_method=pass_all
  6289. + ;;
  6290. esac
  6291. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6292. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6293. +])
  6294. +file_magic_cmd=$lt_cv_file_magic_cmd
  6295. +deplibs_check_method=$lt_cv_deplibs_check_method
  6296. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6297. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6298. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6299. +_LT_DECL([], [deplibs_check_method], [1],
  6300. + [Method to check whether dependent libraries are shared objects])
  6301. +_LT_DECL([], [file_magic_cmd], [1],
  6302. + [Command to use when deplibs_check_method == "file_magic"])
  6303. +])# _LT_CHECK_MAGIC_METHOD
  6304. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6305. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6306. -AC_LIBTOOL_PROG_CC_C_O($1)
  6307. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6308. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6309. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6310. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6311. -AC_LIBTOOL_CONFIG($1)
  6312. +# LT_PATH_NM
  6313. +# ----------
  6314. +# find the pathname to a BSD- or MS-compatible name lister
  6315. +AC_DEFUN([LT_PATH_NM],
  6316. +[AC_REQUIRE([AC_PROG_CC])dnl
  6317. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  6318. +[if test -n "$NM"; then
  6319. + # Let the user override the test.
  6320. + lt_cv_path_NM="$NM"
  6321. +else
  6322. + lt_nm_to_check="${ac_tool_prefix}nm"
  6323. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6324. + lt_nm_to_check="$lt_nm_to_check nm"
  6325. + fi
  6326. + for lt_tmp_nm in $lt_nm_to_check; do
  6327. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6328. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6329. + IFS="$lt_save_ifs"
  6330. + test -z "$ac_dir" && ac_dir=.
  6331. + tmp_nm="$ac_dir/$lt_tmp_nm"
  6332. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6333. + # Check to see if the nm accepts a BSD-compat flag.
  6334. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6335. + # nm: unknown option "B" ignored
  6336. + # Tru64's nm complains that /dev/null is an invalid object file
  6337. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6338. + */dev/null* | *'Invalid file or object type'*)
  6339. + lt_cv_path_NM="$tmp_nm -B"
  6340. + break
  6341. + ;;
  6342. + *)
  6343. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6344. + */dev/null*)
  6345. + lt_cv_path_NM="$tmp_nm -p"
  6346. + break
  6347. + ;;
  6348. + *)
  6349. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6350. + continue # so that we can try to find one that supports BSD flags
  6351. + ;;
  6352. + esac
  6353. + ;;
  6354. + esac
  6355. + fi
  6356. + done
  6357. + IFS="$lt_save_ifs"
  6358. + done
  6359. + : ${lt_cv_path_NM=no}
  6360. +fi])
  6361. +if test "$lt_cv_path_NM" != "no"; then
  6362. + NM="$lt_cv_path_NM"
  6363. +else
  6364. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6365. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6366. + AC_SUBST([DUMPBIN])
  6367. + if test "$DUMPBIN" != ":"; then
  6368. + NM="$DUMPBIN"
  6369. + fi
  6370. +fi
  6371. +test -z "$NM" && NM=nm
  6372. +AC_SUBST([NM])
  6373. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6374. -AC_LANG_POP
  6375. -CC=$lt_save_CC
  6376. -LDCXX=$LD
  6377. -LD=$lt_save_LD
  6378. -GCC=$lt_save_GCC
  6379. -with_gnu_ldcxx=$with_gnu_ld
  6380. -with_gnu_ld=$lt_save_with_gnu_ld
  6381. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6382. -lt_cv_path_LD=$lt_save_path_LD
  6383. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6384. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6385. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6386. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6387. + [lt_cv_nm_interface="BSD nm"
  6388. + echo "int some_variable = 0;" > conftest.$ac_ext
  6389. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6390. + (eval "$ac_compile" 2>conftest.err)
  6391. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6392. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6393. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6394. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6395. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6396. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6397. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6398. + lt_cv_nm_interface="MS dumpbin"
  6399. + fi
  6400. + rm -f conftest*])
  6401. +])# LT_PATH_NM
  6402. +
  6403. +# Old names:
  6404. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6405. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6406. +dnl aclocal-1.4 backwards compatibility:
  6407. +dnl AC_DEFUN([AM_PROG_NM], [])
  6408. +dnl AC_DEFUN([AC_PROG_NM], [])
  6409. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6410. -# ------------------------------------
  6411. -# Figure out "hidden" library dependencies from verbose
  6412. -# compiler output when linking a shared library.
  6413. -# Parse the compiler output and extract the necessary
  6414. -# objects, libraries and library flags.
  6415. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6416. -dnl we can't use the lt_simple_compile_test_code here,
  6417. -dnl because it contains code intended for an executable,
  6418. -dnl not a library. It's possible we should let each
  6419. -dnl tag define a new lt_????_link_test_code variable,
  6420. -dnl but it's only used here...
  6421. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6422. -int a;
  6423. -void foo (void) { a = 0; }
  6424. -EOF
  6425. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6426. -class Foo
  6427. -{
  6428. -public:
  6429. - Foo (void) { a = 0; }
  6430. -private:
  6431. - int a;
  6432. -};
  6433. -EOF
  6434. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6435. - subroutine foo
  6436. - implicit none
  6437. - integer*4 a
  6438. - a=0
  6439. - return
  6440. - end
  6441. -EOF
  6442. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6443. -public class foo {
  6444. - private int a;
  6445. - public void bar (void) {
  6446. - a = 0;
  6447. - }
  6448. -};
  6449. -EOF
  6450. -])
  6451. -dnl Parse the compiler output and extract the necessary
  6452. -dnl objects, libraries and library flags.
  6453. -if AC_TRY_EVAL(ac_compile); then
  6454. - # Parse the compiler output and extract the necessary
  6455. - # objects, libraries and library flags.
  6456. -
  6457. - # Sentinel used to keep track of whether or not we are before
  6458. - # the conftest object file.
  6459. - pre_test_object_deps_done=no
  6460. -
  6461. - # The `*' in the case matches for architectures that use `case' in
  6462. - # $output_verbose_cmd can trigger glob expansion during the loop
  6463. - # eval without this substitution.
  6464. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  6465. -
  6466. - for p in `eval $output_verbose_link_cmd`; do
  6467. - case $p in
  6468. -
  6469. - -L* | -R* | -l*)
  6470. - # Some compilers place space between "-{L,R}" and the path.
  6471. - # Remove the space.
  6472. - if test $p = "-L" \
  6473. - || test $p = "-R"; then
  6474. - prev=$p
  6475. - continue
  6476. - else
  6477. - prev=
  6478. - fi
  6479. -
  6480. - if test "$pre_test_object_deps_done" = no; then
  6481. - case $p in
  6482. - -L* | -R*)
  6483. - # Internal compiler library paths should come after those
  6484. - # provided the user. The postdeps already come after the
  6485. - # user supplied libs so there is no need to process them.
  6486. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6487. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6488. - else
  6489. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6490. - fi
  6491. - ;;
  6492. - # The "-l" case would never come before the object being
  6493. - # linked, so don't bother handling this case.
  6494. - esac
  6495. - else
  6496. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6497. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6498. - else
  6499. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6500. - fi
  6501. - fi
  6502. - ;;
  6503. -
  6504. - *.$objext)
  6505. - # This assumes that the test object file only shows up
  6506. - # once in the compiler output.
  6507. - if test "$p" = "conftest.$objext"; then
  6508. - pre_test_object_deps_done=yes
  6509. - continue
  6510. - fi
  6511. -
  6512. - if test "$pre_test_object_deps_done" = no; then
  6513. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6514. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6515. - else
  6516. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6517. - fi
  6518. - else
  6519. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6520. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6521. - else
  6522. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6523. - fi
  6524. - fi
  6525. - ;;
  6526. -
  6527. - *) ;; # Ignore the rest.
  6528. -
  6529. - esac
  6530. - done
  6531. -
  6532. - # Clean up.
  6533. - rm -f a.out a.exe
  6534. -else
  6535. - echo "libtool.m4: error: problem compiling $1 test program"
  6536. -fi
  6537. -
  6538. -$rm -f confest.$objext
  6539. -# PORTME: override above test on systems where it is broken
  6540. -ifelse([$1],[CXX],
  6541. -[case $host_os in
  6542. -interix[[3-9]]*)
  6543. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6544. - # hack all around it, let's just trust "g++" to DTRT.
  6545. - _LT_AC_TAGVAR(predep_objects,$1)=
  6546. - _LT_AC_TAGVAR(postdep_objects,$1)=
  6547. - _LT_AC_TAGVAR(postdeps,$1)=
  6548. +# LT_LIB_M
  6549. +# --------
  6550. +# check for math library
  6551. +AC_DEFUN([LT_LIB_M],
  6552. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6553. +LIBM=
  6554. +case $host in
  6555. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6556. + # These system don't have libm, or don't need it
  6557. ;;
  6558. -
  6559. -linux*)
  6560. - case `$CC -V 2>&1 | sed 5q` in
  6561. - *Sun\ C*)
  6562. - # Sun C++ 5.9
  6563. - #
  6564. - # The more standards-conforming stlport4 library is
  6565. - # incompatible with the Cstd library. Avoid specifying
  6566. - # it if it's in CXXFLAGS. Ignore libCrun as
  6567. - # -library=stlport4 depends on it.
  6568. - case " $CXX $CXXFLAGS " in
  6569. - *" -library=stlport4 "*)
  6570. - solaris_use_stlport4=yes
  6571. - ;;
  6572. - esac
  6573. - if test "$solaris_use_stlport4" != yes; then
  6574. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6575. - fi
  6576. - ;;
  6577. - esac
  6578. +*-ncr-sysv4.3*)
  6579. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6580. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6581. ;;
  6582. -
  6583. -solaris*)
  6584. - case $cc_basename in
  6585. - CC*)
  6586. - # The more standards-conforming stlport4 library is
  6587. - # incompatible with the Cstd library. Avoid specifying
  6588. - # it if it's in CXXFLAGS. Ignore libCrun as
  6589. - # -library=stlport4 depends on it.
  6590. - case " $CXX $CXXFLAGS " in
  6591. - *" -library=stlport4 "*)
  6592. - solaris_use_stlport4=yes
  6593. - ;;
  6594. - esac
  6595. -
  6596. - # Adding this requires a known-good setup of shared libraries for
  6597. - # Sun compiler versions before 5.6, else PIC objects from an old
  6598. - # archive will be linked into the output, leading to subtle bugs.
  6599. - if test "$solaris_use_stlport4" != yes; then
  6600. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6601. - fi
  6602. - ;;
  6603. - esac
  6604. +*)
  6605. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6606. ;;
  6607. esac
  6608. -])
  6609. -
  6610. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6611. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6612. -esac
  6613. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6614. +AC_SUBST([LIBM])
  6615. +])# LT_LIB_M
  6616. -# AC_LIBTOOL_LANG_F77_CONFIG
  6617. -# --------------------------
  6618. -# Ensure that the configuration vars for the C compiler are
  6619. -# suitably defined. Those variables are subsequently used by
  6620. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6621. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6622. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6623. -[AC_REQUIRE([AC_PROG_F77])
  6624. -AC_LANG_PUSH(Fortran 77)
  6625. +# Old name:
  6626. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6627. +dnl aclocal-1.4 backwards compatibility:
  6628. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6629. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6630. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6631. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6632. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6633. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6634. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6635. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6636. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6637. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6638. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6639. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6640. -_LT_AC_TAGVAR(module_cmds, $1)=
  6641. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6642. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6643. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6644. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6645. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6646. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6647. -# Source file extension for f77 test sources.
  6648. -ac_ext=f
  6649. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6650. +# -------------------------------
  6651. +m4_defun([_LT_COMPILER_NO_RTTI],
  6652. +[m4_require([_LT_TAG_COMPILER])dnl
  6653. -# Object file extension for compiled f77 test sources.
  6654. -objext=o
  6655. -_LT_AC_TAGVAR(objext, $1)=$objext
  6656. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6657. -# Code to be used in simple compile tests
  6658. -lt_simple_compile_test_code="\
  6659. - subroutine t
  6660. - return
  6661. - end
  6662. -"
  6663. +if test "$GCC" = yes; then
  6664. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6665. -# Code to be used in simple link tests
  6666. -lt_simple_link_test_code="\
  6667. - program t
  6668. - end
  6669. -"
  6670. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6671. + lt_cv_prog_compiler_rtti_exceptions,
  6672. + [-fno-rtti -fno-exceptions], [],
  6673. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6674. +fi
  6675. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6676. + [Compiler flag to turn off builtin functions])
  6677. +])# _LT_COMPILER_NO_RTTI
  6678. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6679. -_LT_AC_SYS_COMPILER
  6680. -# save warnings/boilerplate of simple test code
  6681. -_LT_COMPILER_BOILERPLATE
  6682. -_LT_LINKER_BOILERPLATE
  6683. +# _LT_CMD_GLOBAL_SYMBOLS
  6684. +# ----------------------
  6685. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6686. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6687. +AC_REQUIRE([AC_PROG_CC])dnl
  6688. +AC_REQUIRE([LT_PATH_NM])dnl
  6689. +AC_REQUIRE([LT_PATH_LD])dnl
  6690. +m4_require([_LT_DECL_SED])dnl
  6691. +m4_require([_LT_DECL_EGREP])dnl
  6692. +m4_require([_LT_TAG_COMPILER])dnl
  6693. -# Allow CC to be a program name with arguments.
  6694. -lt_save_CC="$CC"
  6695. -CC=${F77-"f77"}
  6696. -compiler=$CC
  6697. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6698. -_LT_CC_BASENAME([$compiler])
  6699. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6700. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6701. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6702. +[
  6703. +# These are sane defaults that work on at least a few old systems.
  6704. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6705. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6706. -AC_MSG_RESULT([$can_build_shared])
  6707. +# Character class describing NM global symbol codes.
  6708. +symcode='[[BCDEGRST]]'
  6709. -AC_MSG_CHECKING([whether to build shared libraries])
  6710. -test "$can_build_shared" = "no" && enable_shared=no
  6711. +# Regexp to match symbols that can be accessed directly from C.
  6712. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6713. -# On AIX, shared libraries and static libraries use the same namespace, and
  6714. -# are all built from PIC.
  6715. +# Define system-specific variables.
  6716. case $host_os in
  6717. -aix3*)
  6718. - test "$enable_shared" = yes && enable_static=no
  6719. - if test -n "$RANLIB"; then
  6720. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6721. - postinstall_cmds='$RANLIB $lib'
  6722. - fi
  6723. +aix*)
  6724. + symcode='[[BCDT]]'
  6725. ;;
  6726. -aix4* | aix5*)
  6727. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6728. - test "$enable_shared" = yes && enable_static=no
  6729. +cygwin* | mingw* | pw32* | cegcc*)
  6730. + symcode='[[ABCDGISTW]]'
  6731. + ;;
  6732. +hpux*)
  6733. + if test "$host_cpu" = ia64; then
  6734. + symcode='[[ABCDEGRST]]'
  6735. fi
  6736. ;;
  6737. +irix* | nonstopux*)
  6738. + symcode='[[BCDEGRST]]'
  6739. + ;;
  6740. +osf*)
  6741. + symcode='[[BCDEGQRST]]'
  6742. + ;;
  6743. +solaris*)
  6744. + symcode='[[BDRT]]'
  6745. + ;;
  6746. +sco3.2v5*)
  6747. + symcode='[[DT]]'
  6748. + ;;
  6749. +sysv4.2uw2*)
  6750. + symcode='[[DT]]'
  6751. + ;;
  6752. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6753. + symcode='[[ABDT]]'
  6754. + ;;
  6755. +sysv4)
  6756. + symcode='[[DFNSTU]]'
  6757. + ;;
  6758. esac
  6759. -AC_MSG_RESULT([$enable_shared])
  6760. -AC_MSG_CHECKING([whether to build static libraries])
  6761. -# Make sure either enable_shared or enable_static is yes.
  6762. -test "$enable_shared" = yes || enable_static=yes
  6763. -AC_MSG_RESULT([$enable_static])
  6764. -
  6765. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6766. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6767. -
  6768. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6769. -AC_LIBTOOL_PROG_CC_C_O($1)
  6770. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6771. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6772. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6773. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6774. +# If we're using GNU nm, then use its standard symbol codes.
  6775. +case `$NM -V 2>&1` in
  6776. +*GNU* | *'with BFD'*)
  6777. + symcode='[[ABCDGIRSTW]]' ;;
  6778. +esac
  6779. -AC_LIBTOOL_CONFIG($1)
  6780. +# Transform an extracted symbol line into a proper C declaration.
  6781. +# Some systems (esp. on ia64) link data and code symbols differently,
  6782. +# so use this general approach.
  6783. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6784. -AC_LANG_POP
  6785. -CC="$lt_save_CC"
  6786. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6787. +# Transform an extracted symbol line into symbol name and symbol address
  6788. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6789. +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'"
  6790. +# Handle CRLF in mingw tool chain
  6791. +opt_cr=
  6792. +case $build_os in
  6793. +mingw*)
  6794. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6795. + ;;
  6796. +esac
  6797. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6798. -# --------------------------
  6799. -# Ensure that the configuration vars for the C compiler are
  6800. -# suitably defined. Those variables are subsequently used by
  6801. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6802. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6803. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6804. -[AC_LANG_SAVE
  6805. +# Try without a prefix underscore, then with it.
  6806. +for ac_symprfx in "" "_"; do
  6807. -# Source file extension for Java test sources.
  6808. -ac_ext=java
  6809. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6810. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6811. -# Object file extension for compiled Java test sources.
  6812. -objext=o
  6813. -_LT_AC_TAGVAR(objext, $1)=$objext
  6814. + # Write the raw and C identifiers.
  6815. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6816. + # Fake it for dumpbin and say T for any non-static function
  6817. + # and D for any global variable.
  6818. + # Also find C++ and __fastcall symbols from MSVC++,
  6819. + # which start with @ or ?.
  6820. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6821. +" {last_section=section; section=\$ 3};"\
  6822. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6823. +" \$ 0!~/External *\|/{next};"\
  6824. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6825. +" {if(hide[section]) next};"\
  6826. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6827. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6828. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6829. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6830. +" ' prfx=^$ac_symprfx]"
  6831. + else
  6832. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6833. + fi
  6834. -# Code to be used in simple compile tests
  6835. -lt_simple_compile_test_code="class foo {}"
  6836. -
  6837. -# Code to be used in simple link tests
  6838. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6839. -
  6840. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6841. -_LT_AC_SYS_COMPILER
  6842. -
  6843. -# save warnings/boilerplate of simple test code
  6844. -_LT_COMPILER_BOILERPLATE
  6845. -_LT_LINKER_BOILERPLATE
  6846. -
  6847. -# Allow CC to be a program name with arguments.
  6848. -lt_save_CC="$CC"
  6849. -CC=${GCJ-"gcj"}
  6850. -compiler=$CC
  6851. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6852. -_LT_CC_BASENAME([$compiler])
  6853. -
  6854. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6855. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6856. -
  6857. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6858. + # Check to see that the pipe works correctly.
  6859. + pipe_works=no
  6860. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6861. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6862. -AC_LIBTOOL_PROG_CC_C_O($1)
  6863. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6864. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6865. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6866. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6867. + rm -f conftest*
  6868. + cat > conftest.$ac_ext <<_LT_EOF
  6869. +#ifdef __cplusplus
  6870. +extern "C" {
  6871. +#endif
  6872. +char nm_test_var;
  6873. +void nm_test_func(void);
  6874. +void nm_test_func(void){}
  6875. +#ifdef __cplusplus
  6876. +}
  6877. +#endif
  6878. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6879. +_LT_EOF
  6880. -AC_LIBTOOL_CONFIG($1)
  6881. + if AC_TRY_EVAL(ac_compile); then
  6882. + # Now try to grab the symbols.
  6883. + nlist=conftest.nm
  6884. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6885. + # Try sorting and uniquifying the output.
  6886. + if sort "$nlist" | uniq > "$nlist"T; then
  6887. + mv -f "$nlist"T "$nlist"
  6888. + else
  6889. + rm -f "$nlist"T
  6890. + fi
  6891. -AC_LANG_RESTORE
  6892. -CC="$lt_save_CC"
  6893. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6894. + # Make sure that we snagged all the symbols we need.
  6895. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6896. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6897. + cat <<_LT_EOF > conftest.$ac_ext
  6898. +#ifdef __cplusplus
  6899. +extern "C" {
  6900. +#endif
  6901. +_LT_EOF
  6902. + # Now generate the symbol file.
  6903. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6904. -# AC_LIBTOOL_LANG_RC_CONFIG
  6905. -# -------------------------
  6906. -# Ensure that the configuration vars for the Windows resource compiler are
  6907. -# suitably defined. Those variables are subsequently used by
  6908. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6909. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6910. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6911. -[AC_LANG_SAVE
  6912. + cat <<_LT_EOF >> conftest.$ac_ext
  6913. -# Source file extension for RC test sources.
  6914. -ac_ext=rc
  6915. +/* The mapping between symbol names and symbols. */
  6916. +const struct {
  6917. + const char *name;
  6918. + void *address;
  6919. +}
  6920. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6921. +{
  6922. + { "@PROGRAM@", (void *) 0 },
  6923. +_LT_EOF
  6924. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6925. + cat <<\_LT_EOF >> conftest.$ac_ext
  6926. + {0, (void *) 0}
  6927. +};
  6928. -# Object file extension for compiled RC test sources.
  6929. -objext=o
  6930. -_LT_AC_TAGVAR(objext, $1)=$objext
  6931. +/* This works around a problem in FreeBSD linker */
  6932. +#ifdef FREEBSD_WORKAROUND
  6933. +static const void *lt_preloaded_setup() {
  6934. + return lt__PROGRAM__LTX_preloaded_symbols;
  6935. +}
  6936. +#endif
  6937. -# Code to be used in simple compile tests
  6938. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6939. +#ifdef __cplusplus
  6940. +}
  6941. +#endif
  6942. +_LT_EOF
  6943. + # Now try linking the two files.
  6944. + mv conftest.$ac_objext conftstm.$ac_objext
  6945. + lt_save_LIBS="$LIBS"
  6946. + lt_save_CFLAGS="$CFLAGS"
  6947. + LIBS="conftstm.$ac_objext"
  6948. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6949. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6950. + pipe_works=yes
  6951. + fi
  6952. + LIBS="$lt_save_LIBS"
  6953. + CFLAGS="$lt_save_CFLAGS"
  6954. + else
  6955. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6956. + fi
  6957. + else
  6958. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6959. + fi
  6960. + else
  6961. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6962. + fi
  6963. + else
  6964. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6965. + cat conftest.$ac_ext >&5
  6966. + fi
  6967. + rm -rf conftest* conftst*
  6968. -# Code to be used in simple link tests
  6969. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6970. + # Do not use the global_symbol_pipe unless it works.
  6971. + if test "$pipe_works" = yes; then
  6972. + break
  6973. + else
  6974. + lt_cv_sys_global_symbol_pipe=
  6975. + fi
  6976. +done
  6977. +])
  6978. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6979. + lt_cv_sys_global_symbol_to_cdecl=
  6980. +fi
  6981. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6982. + AC_MSG_RESULT(failed)
  6983. +else
  6984. + AC_MSG_RESULT(ok)
  6985. +fi
  6986. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6987. -_LT_AC_SYS_COMPILER
  6988. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6989. + [Take the output of nm and produce a listing of raw symbols and C names])
  6990. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6991. + [Transform the output of nm in a proper C declaration])
  6992. +_LT_DECL([global_symbol_to_c_name_address],
  6993. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6994. + [Transform the output of nm in a C name address pair])
  6995. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6996. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6997. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  6998. +]) # _LT_CMD_GLOBAL_SYMBOLS
  6999. -# save warnings/boilerplate of simple test code
  7000. -_LT_COMPILER_BOILERPLATE
  7001. -_LT_LINKER_BOILERPLATE
  7002. -# Allow CC to be a program name with arguments.
  7003. -lt_save_CC="$CC"
  7004. -CC=${RC-"windres"}
  7005. -compiler=$CC
  7006. -_LT_AC_TAGVAR(compiler, $1)=$CC
  7007. -_LT_CC_BASENAME([$compiler])
  7008. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7009. +# _LT_COMPILER_PIC([TAGNAME])
  7010. +# ---------------------------
  7011. +m4_defun([_LT_COMPILER_PIC],
  7012. +[m4_require([_LT_TAG_COMPILER])dnl
  7013. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  7014. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7015. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  7016. -AC_LIBTOOL_CONFIG($1)
  7017. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  7018. +m4_if([$1], [CXX], [
  7019. + # C++ specific cases for pic, static, wl, etc.
  7020. + if test "$GXX" = yes; then
  7021. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7022. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7023. -AC_LANG_RESTORE
  7024. -CC="$lt_save_CC"
  7025. -])# AC_LIBTOOL_LANG_RC_CONFIG
  7026. + case $host_os in
  7027. + aix*)
  7028. + # All AIX code is PIC.
  7029. + if test "$host_cpu" = ia64; then
  7030. + # AIX 5 now supports IA64 processor
  7031. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7032. + fi
  7033. + ;;
  7034. + amigaos*)
  7035. + case $host_cpu in
  7036. + powerpc)
  7037. + # see comment about AmigaOS4 .so support
  7038. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7039. + ;;
  7040. + m68k)
  7041. + # FIXME: we need at least 68020 code to build shared libraries, but
  7042. + # adding the `-m68020' flag to GCC prevents building anything better,
  7043. + # like `-m68040'.
  7044. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7045. + ;;
  7046. + esac
  7047. + ;;
  7048. -# AC_LIBTOOL_CONFIG([TAGNAME])
  7049. -# ----------------------------
  7050. -# If TAGNAME is not passed, then create an initial libtool script
  7051. -# with a default configuration from the untagged config vars. Otherwise
  7052. -# add code to config.status for appending the configuration named by
  7053. -# TAGNAME from the matching tagged config vars.
  7054. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  7055. -[# The else clause should only fire when bootstrapping the
  7056. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  7057. -# with your package, and you will get complaints that there are
  7058. -# no rules to generate ltmain.sh.
  7059. -if test -f "$ltmain"; then
  7060. - # See if we are running on zsh, and set the options which allow our commands through
  7061. - # without removal of \ escapes.
  7062. - if test -n "${ZSH_VERSION+set}" ; then
  7063. - setopt NO_GLOB_SUBST
  7064. - fi
  7065. - # Now quote all the things that may contain metacharacters while being
  7066. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  7067. - # variables and quote the copies for generation of the libtool script.
  7068. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  7069. - SED SHELL STRIP \
  7070. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7071. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7072. - deplibs_check_method reload_flag reload_cmds need_locks \
  7073. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7074. - lt_cv_sys_global_symbol_to_c_name_address \
  7075. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7076. - old_postinstall_cmds old_postuninstall_cmds \
  7077. - _LT_AC_TAGVAR(compiler, $1) \
  7078. - _LT_AC_TAGVAR(CC, $1) \
  7079. - _LT_AC_TAGVAR(LD, $1) \
  7080. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  7081. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  7082. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  7083. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  7084. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  7085. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  7086. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  7087. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  7088. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  7089. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  7090. - _LT_AC_TAGVAR(predep_objects, $1) \
  7091. - _LT_AC_TAGVAR(postdep_objects, $1) \
  7092. - _LT_AC_TAGVAR(predeps, $1) \
  7093. - _LT_AC_TAGVAR(postdeps, $1) \
  7094. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  7095. - _LT_AC_TAGVAR(archive_cmds, $1) \
  7096. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  7097. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  7098. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  7099. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  7100. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  7101. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  7102. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  7103. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  7104. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  7105. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  7106. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  7107. - _LT_AC_TAGVAR(module_cmds, $1) \
  7108. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  7109. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  7110. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  7111. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  7112. - _LT_AC_TAGVAR(include_expsyms, $1); do
  7113. -
  7114. - case $var in
  7115. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  7116. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  7117. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  7118. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  7119. - _LT_AC_TAGVAR(module_cmds, $1) | \
  7120. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  7121. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  7122. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  7123. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7124. - postinstall_cmds | postuninstall_cmds | \
  7125. - old_postinstall_cmds | old_postuninstall_cmds | \
  7126. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7127. - # Double-quote double-evaled strings.
  7128. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7129. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7130. + # PIC is the default for these OSes.
  7131. + ;;
  7132. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  7133. + # This hack is so that the source file can tell whether it is being
  7134. + # built for inclusion in a dll (and should export symbols for example).
  7135. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7136. + # (--disable-auto-import) libraries
  7137. + m4_if([$1], [GCJ], [],
  7138. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7139. + ;;
  7140. + darwin* | rhapsody*)
  7141. + # PIC is the default on this platform
  7142. + # Common symbols not allowed in MH_DYLIB files
  7143. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7144. + ;;
  7145. + *djgpp*)
  7146. + # DJGPP does not support shared libraries at all
  7147. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7148. + ;;
  7149. + interix[[3-9]]*)
  7150. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7151. + # Instead, we relocate shared libraries at runtime.
  7152. + ;;
  7153. + sysv4*MP*)
  7154. + if test -d /usr/nec; then
  7155. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7156. + fi
  7157. + ;;
  7158. + hpux*)
  7159. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7160. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7161. + # sets the default TLS model and affects inlining.
  7162. + case $host_cpu in
  7163. + hppa*64*)
  7164. + ;;
  7165. + *)
  7166. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7167. + ;;
  7168. + esac
  7169. + ;;
  7170. + *qnx* | *nto*)
  7171. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7172. + # it will coredump.
  7173. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7174. ;;
  7175. *)
  7176. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7177. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7178. ;;
  7179. esac
  7180. - done
  7181. -
  7182. - case $lt_echo in
  7183. - *'\[$]0 --fallback-echo"')
  7184. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  7185. - ;;
  7186. - esac
  7187. -
  7188. -ifelse([$1], [],
  7189. - [cfgfile="${ofile}T"
  7190. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7191. - $rm -f "$cfgfile"
  7192. - AC_MSG_NOTICE([creating $ofile])],
  7193. - [cfgfile="$ofile"])
  7194. -
  7195. - cat <<__EOF__ >> "$cfgfile"
  7196. -ifelse([$1], [],
  7197. -[#! $SHELL
  7198. -
  7199. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7200. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7201. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7202. -#
  7203. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  7204. -# Free Software Foundation, Inc.
  7205. -#
  7206. -# This file is part of GNU Libtool:
  7207. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7208. -#
  7209. -# This program is free software; you can redistribute it and/or modify
  7210. -# it under the terms of the GNU General Public License as published by
  7211. -# the Free Software Foundation; either version 2 of the License, or
  7212. -# (at your option) any later version.
  7213. -#
  7214. -# This program is distributed in the hope that it will be useful, but
  7215. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  7216. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7217. -# General Public License for more details.
  7218. -#
  7219. -# You should have received a copy of the GNU General Public License
  7220. -# along with this program; if not, write to the Free Software
  7221. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7222. -#
  7223. -# As a special exception to the GNU General Public License, if you
  7224. -# distribute this file as part of a program that contains a
  7225. -# configuration script generated by Autoconf, you may include it under
  7226. -# the same distribution terms that you use for the rest of that program.
  7227. -
  7228. -# A sed program that does not truncate output.
  7229. -SED=$lt_SED
  7230. -
  7231. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7232. -Xsed="$SED -e 1s/^X//"
  7233. -
  7234. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  7235. -# if CDPATH is set.
  7236. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7237. -
  7238. -# The names of the tagged configurations supported by this script.
  7239. -available_tags=
  7240. -
  7241. -# ### BEGIN LIBTOOL CONFIG],
  7242. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7243. -
  7244. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7245. -
  7246. -# Shell to use when invoking shell scripts.
  7247. -SHELL=$lt_SHELL
  7248. -
  7249. -# Whether or not to build shared libraries.
  7250. -build_libtool_libs=$enable_shared
  7251. -
  7252. -# Whether or not to build static libraries.
  7253. -build_old_libs=$enable_static
  7254. -
  7255. -# Whether or not to add -lc for building shared libraries.
  7256. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7257. -
  7258. -# Whether or not to disallow shared libs when runtime libs are static
  7259. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7260. -
  7261. -# Whether or not to optimize for fast installation.
  7262. -fast_install=$enable_fast_install
  7263. -
  7264. -# The host system.
  7265. -host_alias=$host_alias
  7266. -host=$host
  7267. -host_os=$host_os
  7268. -
  7269. -# The build system.
  7270. -build_alias=$build_alias
  7271. -build=$build
  7272. -build_os=$build_os
  7273. -
  7274. -# An echo program that does not interpret backslashes.
  7275. -echo=$lt_echo
  7276. -
  7277. -# The archiver.
  7278. -AR=$lt_AR
  7279. -AR_FLAGS=$lt_AR_FLAGS
  7280. -
  7281. -# A C compiler.
  7282. -LTCC=$lt_LTCC
  7283. -
  7284. -# LTCC compiler flags.
  7285. -LTCFLAGS=$lt_LTCFLAGS
  7286. -
  7287. -# A language-specific compiler.
  7288. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7289. -
  7290. -# Is the compiler the GNU C compiler?
  7291. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7292. -
  7293. -# An ERE matcher.
  7294. -EGREP=$lt_EGREP
  7295. -
  7296. -# The linker used to build libraries.
  7297. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7298. -
  7299. -# Whether we need hard or soft links.
  7300. -LN_S=$lt_LN_S
  7301. -
  7302. -# A BSD-compatible nm program.
  7303. -NM=$lt_NM
  7304. -
  7305. -# A symbol stripping program
  7306. -STRIP=$lt_STRIP
  7307. -
  7308. -# Used to examine libraries when file_magic_cmd begins "file"
  7309. -MAGIC_CMD=$MAGIC_CMD
  7310. -
  7311. -# Used on cygwin: DLL creation program.
  7312. -DLLTOOL="$DLLTOOL"
  7313. -
  7314. -# Used on cygwin: object dumper.
  7315. -OBJDUMP="$OBJDUMP"
  7316. -
  7317. -# Used on cygwin: assembler.
  7318. -AS="$AS"
  7319. -
  7320. -# The name of the directory that contains temporary libtool files.
  7321. -objdir=$objdir
  7322. -
  7323. -# How to create reloadable object files.
  7324. -reload_flag=$lt_reload_flag
  7325. -reload_cmds=$lt_reload_cmds
  7326. -
  7327. -# How to pass a linker flag through the compiler.
  7328. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  7329. -
  7330. -# Object file suffix (normally "o").
  7331. -objext="$ac_objext"
  7332. -
  7333. -# Old archive suffix (normally "a").
  7334. -libext="$libext"
  7335. -
  7336. -# Shared library suffix (normally ".so").
  7337. -shrext_cmds='$shrext_cmds'
  7338. -
  7339. -# Executable file suffix (normally "").
  7340. -exeext="$exeext"
  7341. -
  7342. -# Additional compiler flags for building library objects.
  7343. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  7344. -pic_mode=$pic_mode
  7345. -
  7346. -# What is the maximum length of a command?
  7347. -max_cmd_len=$lt_cv_sys_max_cmd_len
  7348. -
  7349. -# Does compiler simultaneously support -c and -o options?
  7350. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  7351. -
  7352. -# Must we lock files when doing compilation?
  7353. -need_locks=$lt_need_locks
  7354. -
  7355. -# Do we need the lib prefix for modules?
  7356. -need_lib_prefix=$need_lib_prefix
  7357. -
  7358. -# Do we need a version for libraries?
  7359. -need_version=$need_version
  7360. -
  7361. -# Whether dlopen is supported.
  7362. -dlopen_support=$enable_dlopen
  7363. -
  7364. -# Whether dlopen of programs is supported.
  7365. -dlopen_self=$enable_dlopen_self
  7366. -
  7367. -# Whether dlopen of statically linked programs is supported.
  7368. -dlopen_self_static=$enable_dlopen_self_static
  7369. -
  7370. -# Compiler flag to prevent dynamic linking.
  7371. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  7372. -
  7373. -# Compiler flag to turn off builtin functions.
  7374. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  7375. -
  7376. -# Compiler flag to allow reflexive dlopens.
  7377. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  7378. -
  7379. -# Compiler flag to generate shared objects directly from archives.
  7380. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7381. -
  7382. -# Compiler flag to generate thread-safe objects.
  7383. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7384. -
  7385. -# Library versioning type.
  7386. -version_type=$version_type
  7387. -
  7388. -# Format of library name prefix.
  7389. -libname_spec=$lt_libname_spec
  7390. -
  7391. -# List of archive names. First name is the real one, the rest are links.
  7392. -# The last name is the one that the linker finds with -lNAME.
  7393. -library_names_spec=$lt_library_names_spec
  7394. -
  7395. -# The coded name of the library, if different from the real name.
  7396. -soname_spec=$lt_soname_spec
  7397. -
  7398. -# Commands used to build and install an old-style archive.
  7399. -RANLIB=$lt_RANLIB
  7400. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7401. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7402. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7403. -
  7404. -# Create an old-style archive from a shared archive.
  7405. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7406. -
  7407. -# Create a temporary old-style archive to link instead of a shared archive.
  7408. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7409. -
  7410. -# Commands used to build and install a shared archive.
  7411. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  7412. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  7413. -postinstall_cmds=$lt_postinstall_cmds
  7414. -postuninstall_cmds=$lt_postuninstall_cmds
  7415. -
  7416. -# Commands used to build a loadable module (assumed same as above if empty)
  7417. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  7418. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  7419. -
  7420. -# Commands to strip libraries.
  7421. -old_striplib=$lt_old_striplib
  7422. -striplib=$lt_striplib
  7423. -
  7424. -# Dependencies to place before the objects being linked to create a
  7425. -# shared library.
  7426. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  7427. -
  7428. -# Dependencies to place after the objects being linked to create a
  7429. -# shared library.
  7430. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  7431. -
  7432. -# Dependencies to place before the objects being linked to create a
  7433. -# shared library.
  7434. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  7435. -
  7436. -# Dependencies to place after the objects being linked to create a
  7437. -# shared library.
  7438. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  7439. -
  7440. -# The library search path used internally by the compiler when linking
  7441. -# a shared library.
  7442. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  7443. -
  7444. -# Method to check whether dependent libraries are shared objects.
  7445. -deplibs_check_method=$lt_deplibs_check_method
  7446. -
  7447. -# Command to use when deplibs_check_method == file_magic.
  7448. -file_magic_cmd=$lt_file_magic_cmd
  7449. -
  7450. -# Flag that allows shared libraries with undefined symbols to be built.
  7451. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  7452. -
  7453. -# Flag that forces no undefined symbols.
  7454. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  7455. -
  7456. -# Commands used to finish a libtool library installation in a directory.
  7457. -finish_cmds=$lt_finish_cmds
  7458. -
  7459. -# Same as above, but a single script fragment to be evaled but not shown.
  7460. -finish_eval=$lt_finish_eval
  7461. -
  7462. -# Take the output of nm and produce a listing of raw symbols and C names.
  7463. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  7464. -
  7465. -# Transform the output of nm in a proper C declaration
  7466. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  7467. -
  7468. -# Transform the output of nm in a C name address pair
  7469. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  7470. -
  7471. -# This is the shared library runtime path variable.
  7472. -runpath_var=$runpath_var
  7473. -
  7474. -# This is the shared library path variable.
  7475. -shlibpath_var=$shlibpath_var
  7476. -
  7477. -# Is shlibpath searched before the hard-coded library search path?
  7478. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7479. -
  7480. -# How to hardcode a shared library path into an executable.
  7481. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  7482. -
  7483. -# Whether we should hardcode library paths into libraries.
  7484. -hardcode_into_libs=$hardcode_into_libs
  7485. -
  7486. -# Flag to hardcode \$libdir into a binary during linking.
  7487. -# This must work even if \$libdir does not exist.
  7488. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7489. -
  7490. -# If ld is used when linking, flag to hardcode \$libdir into
  7491. -# a binary during linking. This must work even if \$libdir does
  7492. -# not exist.
  7493. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7494. + else
  7495. + case $host_os in
  7496. + aix[[4-9]]*)
  7497. + # All AIX code is PIC.
  7498. + if test "$host_cpu" = ia64; then
  7499. + # AIX 5 now supports IA64 processor
  7500. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7501. + else
  7502. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7503. + fi
  7504. + ;;
  7505. + chorus*)
  7506. + case $cc_basename in
  7507. + cxch68*)
  7508. + # Green Hills C++ Compiler
  7509. + # _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"
  7510. + ;;
  7511. + esac
  7512. + ;;
  7513. + dgux*)
  7514. + case $cc_basename in
  7515. + ec++*)
  7516. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7517. + ;;
  7518. + ghcx*)
  7519. + # Green Hills C++ Compiler
  7520. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7521. + ;;
  7522. + *)
  7523. + ;;
  7524. + esac
  7525. + ;;
  7526. + freebsd* | dragonfly*)
  7527. + # FreeBSD uses GNU C++
  7528. + ;;
  7529. + hpux9* | hpux10* | hpux11*)
  7530. + case $cc_basename in
  7531. + CC*)
  7532. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7533. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7534. + if test "$host_cpu" != ia64; then
  7535. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7536. + fi
  7537. + ;;
  7538. + aCC*)
  7539. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7540. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7541. + case $host_cpu in
  7542. + hppa*64*|ia64*)
  7543. + # +Z the default
  7544. + ;;
  7545. + *)
  7546. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7547. + ;;
  7548. + esac
  7549. + ;;
  7550. + *)
  7551. + ;;
  7552. + esac
  7553. + ;;
  7554. + interix*)
  7555. + # This is c89, which is MS Visual C++ (no shared libs)
  7556. + # Anyone wants to do a port?
  7557. + ;;
  7558. + irix5* | irix6* | nonstopux*)
  7559. + case $cc_basename in
  7560. + CC*)
  7561. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7562. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7563. + # CC pic flag -KPIC is the default.
  7564. + ;;
  7565. + *)
  7566. + ;;
  7567. + esac
  7568. + ;;
  7569. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7570. + case $cc_basename in
  7571. + KCC*)
  7572. + # KAI C++ Compiler
  7573. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7574. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7575. + ;;
  7576. + ecpc* )
  7577. + # old Intel C++ for x86_64 which still supported -KPIC.
  7578. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7579. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7580. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7581. + ;;
  7582. + icpc* )
  7583. + # Intel C++, used to be incompatible with GCC.
  7584. + # ICC 10 doesn't accept -KPIC any more.
  7585. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7586. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7587. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7588. + ;;
  7589. + pgCC* | pgcpp*)
  7590. + # Portland Group C++ compiler
  7591. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7592. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7593. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7594. + ;;
  7595. + cxx*)
  7596. + # Compaq C++
  7597. + # Make sure the PIC flag is empty. It appears that all Alpha
  7598. + # Linux and Compaq Tru64 Unix objects are PIC.
  7599. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7600. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7601. + ;;
  7602. + xlc* | xlC*)
  7603. + # IBM XL 8.0 on PPC
  7604. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7605. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7606. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7607. + ;;
  7608. + *)
  7609. + case `$CC -V 2>&1 | sed 5q` in
  7610. + *Sun\ C*)
  7611. + # Sun C++ 5.9
  7612. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7613. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7614. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7615. + ;;
  7616. + esac
  7617. + ;;
  7618. + esac
  7619. + ;;
  7620. + lynxos*)
  7621. + ;;
  7622. + m88k*)
  7623. + ;;
  7624. + mvs*)
  7625. + case $cc_basename in
  7626. + cxx*)
  7627. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7628. + ;;
  7629. + *)
  7630. + ;;
  7631. + esac
  7632. + ;;
  7633. + netbsd* | netbsdelf*-gnu)
  7634. + ;;
  7635. + *qnx* | *nto*)
  7636. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7637. + # it will coredump.
  7638. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7639. + ;;
  7640. + osf3* | osf4* | osf5*)
  7641. + case $cc_basename in
  7642. + KCC*)
  7643. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7644. + ;;
  7645. + RCC*)
  7646. + # Rational C++ 2.4.1
  7647. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7648. + ;;
  7649. + cxx*)
  7650. + # Digital/Compaq C++
  7651. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7652. + # Make sure the PIC flag is empty. It appears that all Alpha
  7653. + # Linux and Compaq Tru64 Unix objects are PIC.
  7654. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7655. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7656. + ;;
  7657. + *)
  7658. + ;;
  7659. + esac
  7660. + ;;
  7661. + psos*)
  7662. + ;;
  7663. + solaris*)
  7664. + case $cc_basename in
  7665. + CC*)
  7666. + # Sun C++ 4.2, 5.x and Centerline C++
  7667. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7668. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7669. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7670. + ;;
  7671. + gcx*)
  7672. + # Green Hills C++ Compiler
  7673. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7674. + ;;
  7675. + *)
  7676. + ;;
  7677. + esac
  7678. + ;;
  7679. + sunos4*)
  7680. + case $cc_basename in
  7681. + CC*)
  7682. + # Sun C++ 4.x
  7683. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7684. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7685. + ;;
  7686. + lcc*)
  7687. + # Lucid
  7688. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7689. + ;;
  7690. + *)
  7691. + ;;
  7692. + esac
  7693. + ;;
  7694. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7695. + case $cc_basename in
  7696. + CC*)
  7697. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7698. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7699. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7700. + ;;
  7701. + esac
  7702. + ;;
  7703. + tandem*)
  7704. + case $cc_basename in
  7705. + NCC*)
  7706. + # NonStop-UX NCC 3.20
  7707. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7708. + ;;
  7709. + *)
  7710. + ;;
  7711. + esac
  7712. + ;;
  7713. + vxworks*)
  7714. + ;;
  7715. + *)
  7716. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7717. + ;;
  7718. + esac
  7719. + fi
  7720. +],
  7721. +[
  7722. + if test "$GCC" = yes; then
  7723. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7724. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7725. -# Whether we need a single -rpath flag with a separated argument.
  7726. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7727. + case $host_os in
  7728. + aix*)
  7729. + # All AIX code is PIC.
  7730. + if test "$host_cpu" = ia64; then
  7731. + # AIX 5 now supports IA64 processor
  7732. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7733. + fi
  7734. + ;;
  7735. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7736. -# resulting binary.
  7737. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7738. + amigaos*)
  7739. + case $host_cpu in
  7740. + powerpc)
  7741. + # see comment about AmigaOS4 .so support
  7742. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7743. + ;;
  7744. + m68k)
  7745. + # FIXME: we need at least 68020 code to build shared libraries, but
  7746. + # adding the `-m68020' flag to GCC prevents building anything better,
  7747. + # like `-m68040'.
  7748. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7749. + ;;
  7750. + esac
  7751. + ;;
  7752. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7753. -# resulting binary.
  7754. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7755. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7756. + # PIC is the default for these OSes.
  7757. + ;;
  7758. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7759. -# the resulting binary.
  7760. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7761. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7762. + # This hack is so that the source file can tell whether it is being
  7763. + # built for inclusion in a dll (and should export symbols for example).
  7764. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7765. + # (--disable-auto-import) libraries
  7766. + m4_if([$1], [GCJ], [],
  7767. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7768. + ;;
  7769. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7770. -# and all subsequent libraries and executables linked against it.
  7771. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7772. + darwin* | rhapsody*)
  7773. + # PIC is the default on this platform
  7774. + # Common symbols not allowed in MH_DYLIB files
  7775. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7776. + ;;
  7777. -# Variables whose values should be saved in libtool wrapper scripts and
  7778. -# restored at relink time.
  7779. -variables_saved_for_relink="$variables_saved_for_relink"
  7780. + hpux*)
  7781. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7782. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7783. + # sets the default TLS model and affects inlining.
  7784. + case $host_cpu in
  7785. + hppa*64*)
  7786. + # +Z the default
  7787. + ;;
  7788. + *)
  7789. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7790. + ;;
  7791. + esac
  7792. + ;;
  7793. -# Whether libtool must link a program against all its dependency libraries.
  7794. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7795. + interix[[3-9]]*)
  7796. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7797. + # Instead, we relocate shared libraries at runtime.
  7798. + ;;
  7799. -# Compile-time system search path for libraries
  7800. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7801. + msdosdjgpp*)
  7802. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7803. + # on systems that don't support them.
  7804. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7805. + enable_shared=no
  7806. + ;;
  7807. -# Run-time system search path for libraries
  7808. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7809. + *nto* | *qnx*)
  7810. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7811. + # it will coredump.
  7812. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7813. + ;;
  7814. -# Fix the shell variable \$srcfile for the compiler.
  7815. -fix_srcfile_path=$lt_fix_srcfile_path
  7816. + sysv4*MP*)
  7817. + if test -d /usr/nec; then
  7818. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7819. + fi
  7820. + ;;
  7821. -# Set to yes if exported symbols are required.
  7822. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7823. + *)
  7824. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7825. + ;;
  7826. + esac
  7827. + else
  7828. + # PORTME Check for flag to pass linker flags through the system compiler.
  7829. + case $host_os in
  7830. + aix*)
  7831. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7832. + if test "$host_cpu" = ia64; then
  7833. + # AIX 5 now supports IA64 processor
  7834. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7835. + else
  7836. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7837. + fi
  7838. + ;;
  7839. -# The commands to list exported symbols.
  7840. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7841. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7842. + # This hack is so that the source file can tell whether it is being
  7843. + # built for inclusion in a dll (and should export symbols for example).
  7844. + m4_if([$1], [GCJ], [],
  7845. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7846. + ;;
  7847. -# The commands to extract the exported symbol list from a shared archive.
  7848. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7849. + hpux9* | hpux10* | hpux11*)
  7850. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7851. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7852. + # not for PA HP-UX.
  7853. + case $host_cpu in
  7854. + hppa*64*|ia64*)
  7855. + # +Z the default
  7856. + ;;
  7857. + *)
  7858. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7859. + ;;
  7860. + esac
  7861. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7862. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7863. + ;;
  7864. -# Symbols that should not be listed in the preloaded symbols.
  7865. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7866. + irix5* | irix6* | nonstopux*)
  7867. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7868. + # PIC (with -KPIC) is the default.
  7869. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7870. + ;;
  7871. -# Symbols that must always be exported.
  7872. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7873. -
  7874. -ifelse([$1],[],
  7875. -[# ### END LIBTOOL CONFIG],
  7876. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7877. -
  7878. -__EOF__
  7879. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7880. + case $cc_basename in
  7881. + # old Intel for x86_64 which still supported -KPIC.
  7882. + ecc*)
  7883. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7884. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7885. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7886. + ;;
  7887. + # icc used to be incompatible with GCC.
  7888. + # ICC 10 doesn't accept -KPIC any more.
  7889. + icc* | ifort*)
  7890. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7891. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7892. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7893. + ;;
  7894. + # Lahey Fortran 8.1.
  7895. + lf95*)
  7896. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7897. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  7898. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  7899. + ;;
  7900. + pgcc* | pgf77* | pgf90* | pgf95*)
  7901. + # Portland Group compilers (*not* the Pentium gcc compiler,
  7902. + # which looks to be a dead project)
  7903. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7904. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7905. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7906. + ;;
  7907. + ccc*)
  7908. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7909. + # All Alpha code is PIC.
  7910. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7911. + ;;
  7912. + xl*)
  7913. + # IBM XL C 8.0/Fortran 10.1 on PPC
  7914. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7915. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7916. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7917. + ;;
  7918. + *)
  7919. + case `$CC -V 2>&1 | sed 5q` in
  7920. + *Sun\ C*)
  7921. + # Sun C 5.9
  7922. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7923. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7924. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7925. + ;;
  7926. + *Sun\ F*)
  7927. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7928. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7929. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7930. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7931. + ;;
  7932. + esac
  7933. + ;;
  7934. + esac
  7935. + ;;
  7936. -ifelse([$1],[], [
  7937. - case $host_os in
  7938. - aix3*)
  7939. - cat <<\EOF >> "$cfgfile"
  7940. + newsos6)
  7941. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7942. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7943. + ;;
  7944. -# AIX sometimes has problems with the GCC collect2 program. For some
  7945. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7946. -# vanish in a puff of smoke.
  7947. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7948. - COLLECT_NAMES=
  7949. - export COLLECT_NAMES
  7950. -fi
  7951. -EOF
  7952. - ;;
  7953. - esac
  7954. + *nto* | *qnx*)
  7955. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7956. + # it will coredump.
  7957. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7958. + ;;
  7959. - # We use sed instead of cat because bash on DJGPP gets confused if
  7960. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7961. - # text mode, it properly converts lines to CR/LF. This bash problem
  7962. - # is reportedly fixed, but why not run on old versions too?
  7963. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7964. + osf3* | osf4* | osf5*)
  7965. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7966. + # All OSF/1 code is PIC.
  7967. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7968. + ;;
  7969. - mv -f "$cfgfile" "$ofile" || \
  7970. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7971. - chmod +x "$ofile"
  7972. -])
  7973. -else
  7974. - # If there is no Makefile yet, we rely on a make rule to execute
  7975. - # `config.status --recheck' to rerun these tests and create the
  7976. - # libtool script then.
  7977. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7978. - if test -f "$ltmain_in"; then
  7979. - test -f Makefile && make "$ltmain"
  7980. - fi
  7981. -fi
  7982. -])# AC_LIBTOOL_CONFIG
  7983. + rdos*)
  7984. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7985. + ;;
  7986. + solaris*)
  7987. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7988. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7989. + case $cc_basename in
  7990. + f77* | f90* | f95*)
  7991. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7992. + *)
  7993. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7994. + esac
  7995. + ;;
  7996. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7997. -# -------------------------------------------
  7998. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7999. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  8000. + sunos4*)
  8001. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8002. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8003. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8004. + ;;
  8005. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8006. + sysv4 | sysv4.2uw2* | sysv4.3*)
  8007. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8008. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8009. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8010. + ;;
  8011. -if test "$GCC" = yes; then
  8012. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8013. + sysv4*MP*)
  8014. + if test -d /usr/nec ;then
  8015. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  8016. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8017. + fi
  8018. + ;;
  8019. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  8020. - lt_cv_prog_compiler_rtti_exceptions,
  8021. - [-fno-rtti -fno-exceptions], [],
  8022. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  8023. -fi
  8024. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  8025. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8026. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8027. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8028. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8029. + ;;
  8030. + unicos*)
  8031. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8032. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8033. + ;;
  8034. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8035. -# ---------------------------------
  8036. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  8037. -[AC_REQUIRE([AC_CANONICAL_HOST])
  8038. -AC_REQUIRE([LT_AC_PROG_SED])
  8039. -AC_REQUIRE([AC_PROG_NM])
  8040. -AC_REQUIRE([AC_OBJEXT])
  8041. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  8042. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  8043. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  8044. -[
  8045. -# These are sane defaults that work on at least a few old systems.
  8046. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8047. + uts4*)
  8048. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8049. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8050. + ;;
  8051. -# Character class describing NM global symbol codes.
  8052. -symcode='[[BCDEGRST]]'
  8053. + *)
  8054. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8055. + ;;
  8056. + esac
  8057. + fi
  8058. +])
  8059. +case $host_os in
  8060. + # For platforms which do not support PIC, -DPIC is meaningless:
  8061. + *djgpp*)
  8062. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  8063. + ;;
  8064. + *)
  8065. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  8066. + ;;
  8067. +esac
  8068. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  8069. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  8070. + [How to pass a linker flag through the compiler])
  8071. -# Regexp to match symbols that can be accessed directly from C.
  8072. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  8073. +#
  8074. +# Check to make sure the PIC flag actually works.
  8075. +#
  8076. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  8077. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  8078. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  8079. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  8080. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  8081. + "" | " "*) ;;
  8082. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  8083. + esac],
  8084. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  8085. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  8086. +fi
  8087. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  8088. + [Additional compiler flags for building library objects])
  8089. -# Transform an extracted symbol line into a proper C declaration
  8090. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8091. +#
  8092. +# Check to make sure the static flag actually works.
  8093. +#
  8094. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  8095. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  8096. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  8097. + $lt_tmp_static_flag,
  8098. + [],
  8099. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  8100. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  8101. + [Compiler flag to prevent dynamic linking])
  8102. +])# _LT_COMPILER_PIC
  8103. -# Transform an extracted symbol line into symbol name and symbol address
  8104. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8105. -# Define system-specific variables.
  8106. -case $host_os in
  8107. -aix*)
  8108. - symcode='[[BCDT]]'
  8109. - ;;
  8110. -cygwin* | mingw* | pw32*)
  8111. - symcode='[[ABCDGISTW]]'
  8112. - ;;
  8113. -hpux*) # Its linker distinguishes data from code symbols
  8114. - if test "$host_cpu" = ia64; then
  8115. - symcode='[[ABCDEGRST]]'
  8116. - fi
  8117. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8118. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8119. - ;;
  8120. -linux* | k*bsd*-gnu)
  8121. - if test "$host_cpu" = ia64; then
  8122. - symcode='[[ABCDGIRSTW]]'
  8123. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8124. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8125. - fi
  8126. - ;;
  8127. -irix* | nonstopux*)
  8128. - symcode='[[BCDEGRST]]'
  8129. - ;;
  8130. -osf*)
  8131. - symcode='[[BCDEGQRST]]'
  8132. - ;;
  8133. -solaris*)
  8134. - symcode='[[BDRT]]'
  8135. - ;;
  8136. -sco3.2v5*)
  8137. - symcode='[[DT]]'
  8138. +# _LT_LINKER_SHLIBS([TAGNAME])
  8139. +# ----------------------------
  8140. +# See if the linker supports building shared libraries.
  8141. +m4_defun([_LT_LINKER_SHLIBS],
  8142. +[AC_REQUIRE([LT_PATH_LD])dnl
  8143. +AC_REQUIRE([LT_PATH_NM])dnl
  8144. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8145. +m4_require([_LT_DECL_EGREP])dnl
  8146. +m4_require([_LT_DECL_SED])dnl
  8147. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  8148. +m4_require([_LT_TAG_COMPILER])dnl
  8149. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  8150. +m4_if([$1], [CXX], [
  8151. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8152. + case $host_os in
  8153. + aix[[4-9]]*)
  8154. + # If we're using GNU nm, then we don't want the "-C" option.
  8155. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8156. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8157. + _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'
  8158. + else
  8159. + _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'
  8160. + fi
  8161. + ;;
  8162. + pw32*)
  8163. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  8164. ;;
  8165. -sysv4.2uw2*)
  8166. - symcode='[[DT]]'
  8167. + cygwin* | mingw* | cegcc*)
  8168. + _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'
  8169. ;;
  8170. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8171. - symcode='[[ABDT]]'
  8172. + linux* | k*bsd*-gnu)
  8173. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8174. ;;
  8175. -sysv4)
  8176. - symcode='[[DFNSTU]]'
  8177. + *)
  8178. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8179. ;;
  8180. -esac
  8181. + esac
  8182. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  8183. +], [
  8184. + runpath_var=
  8185. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8186. + _LT_TAGVAR(always_export_symbols, $1)=no
  8187. + _LT_TAGVAR(archive_cmds, $1)=
  8188. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  8189. + _LT_TAGVAR(compiler_needs_object, $1)=no
  8190. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8191. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8192. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8193. + _LT_TAGVAR(hardcode_automatic, $1)=no
  8194. + _LT_TAGVAR(hardcode_direct, $1)=no
  8195. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8196. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8197. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8198. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8199. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  8200. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8201. + _LT_TAGVAR(inherit_rpath, $1)=no
  8202. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  8203. + _LT_TAGVAR(module_cmds, $1)=
  8204. + _LT_TAGVAR(module_expsym_cmds, $1)=
  8205. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  8206. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  8207. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  8208. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8209. + # include_expsyms should be a list of space-separated symbols to be *always*
  8210. + # included in the symbol list
  8211. + _LT_TAGVAR(include_expsyms, $1)=
  8212. + # exclude_expsyms can be an extended regexp of symbols to exclude
  8213. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8214. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8215. + # as well as any symbol that contains `d'.
  8216. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  8217. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8218. + # platforms (ab)use it in PIC code, but their linkers get confused if
  8219. + # the symbol is explicitly referenced. Since portable code cannot
  8220. + # rely on this symbol name, it's probably fine to never include it in
  8221. + # preloaded symbol tables.
  8222. + # Exclude shared library initialization/finalization symbols.
  8223. +dnl Note also adjust exclude_expsyms for C++ above.
  8224. + extract_expsyms_cmds=
  8225. -# Handle CRLF in mingw tool chain
  8226. -opt_cr=
  8227. -case $build_os in
  8228. -mingw*)
  8229. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8230. - ;;
  8231. -esac
  8232. + case $host_os in
  8233. + cygwin* | mingw* | pw32* | cegcc*)
  8234. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8235. + # When not using gcc, we currently assume that we are using
  8236. + # Microsoft Visual C++.
  8237. + if test "$GCC" != yes; then
  8238. + with_gnu_ld=no
  8239. + fi
  8240. + ;;
  8241. + interix*)
  8242. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  8243. + with_gnu_ld=yes
  8244. + ;;
  8245. + openbsd*)
  8246. + with_gnu_ld=no
  8247. + ;;
  8248. + linux* | k*bsd*-gnu)
  8249. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8250. + ;;
  8251. + esac
  8252. -# If we're using GNU nm, then use its standard symbol codes.
  8253. -case `$NM -V 2>&1` in
  8254. -*GNU* | *'with BFD'*)
  8255. - symcode='[[ABCDGIRSTW]]' ;;
  8256. -esac
  8257. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8258. + if test "$with_gnu_ld" = yes; then
  8259. + # If archive_cmds runs LD, not CC, wlarc should be empty
  8260. + wlarc='${wl}'
  8261. -# Try without a prefix undercore, then with it.
  8262. -for ac_symprfx in "" "_"; do
  8263. + # Set some defaults for GNU ld with shared library support. These
  8264. + # are reset later if shared libraries are not supported. Putting them
  8265. + # here allows them to be overridden if necessary.
  8266. + runpath_var=LD_RUN_PATH
  8267. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8268. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8269. + # ancient GNU ld didn't support --whole-archive et. al.
  8270. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8271. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8272. + else
  8273. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8274. + fi
  8275. + supports_anon_versioning=no
  8276. + case `$LD -v 2>&1` in
  8277. + *GNU\ gold*) supports_anon_versioning=yes ;;
  8278. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  8279. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8280. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8281. + *\ 2.11.*) ;; # other 2.11 versions
  8282. + *) supports_anon_versioning=yes ;;
  8283. + esac
  8284. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8285. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  8286. + # See if GNU ld supports shared libraries.
  8287. + case $host_os in
  8288. + aix[[3-9]]*)
  8289. + # On AIX/PPC, the GNU linker is very broken
  8290. + if test "$host_cpu" != ia64; then
  8291. + _LT_TAGVAR(ld_shlibs, $1)=no
  8292. + cat <<_LT_EOF 1>&2
  8293. - # Write the raw and C identifiers.
  8294. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8295. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8296. +*** to be unable to reliably create shared libraries on AIX.
  8297. +*** Therefore, libtool is disabling shared libraries support. If you
  8298. +*** really care for shared libraries, you may want to modify your PATH
  8299. +*** so that a non-GNU linker is found, and then restart.
  8300. - # Check to see that the pipe works correctly.
  8301. - pipe_works=no
  8302. +_LT_EOF
  8303. + fi
  8304. + ;;
  8305. - rm -f conftest*
  8306. - cat > conftest.$ac_ext <<EOF
  8307. -#ifdef __cplusplus
  8308. -extern "C" {
  8309. -#endif
  8310. -char nm_test_var;
  8311. -void nm_test_func(){}
  8312. -#ifdef __cplusplus
  8313. -}
  8314. -#endif
  8315. -int main(){nm_test_var='a';nm_test_func();return(0);}
  8316. -EOF
  8317. + amigaos*)
  8318. + case $host_cpu in
  8319. + powerpc)
  8320. + # see comment about AmigaOS4 .so support
  8321. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8322. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8323. + ;;
  8324. + m68k)
  8325. + _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)'
  8326. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8327. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8328. + ;;
  8329. + esac
  8330. + ;;
  8331. - if AC_TRY_EVAL(ac_compile); then
  8332. - # Now try to grab the symbols.
  8333. - nlist=conftest.nm
  8334. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  8335. - # Try sorting and uniquifying the output.
  8336. - if sort "$nlist" | uniq > "$nlist"T; then
  8337. - mv -f "$nlist"T "$nlist"
  8338. + beos*)
  8339. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8340. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8341. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8342. + # support --undefined. This deserves some investigation. FIXME
  8343. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8344. else
  8345. - rm -f "$nlist"T
  8346. + _LT_TAGVAR(ld_shlibs, $1)=no
  8347. fi
  8348. + ;;
  8349. - # Make sure that we snagged all the symbols we need.
  8350. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8351. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8352. - cat <<EOF > conftest.$ac_ext
  8353. -#ifdef __cplusplus
  8354. -extern "C" {
  8355. -#endif
  8356. -
  8357. -EOF
  8358. - # Now generate the symbol file.
  8359. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8360. -
  8361. - cat <<EOF >> conftest.$ac_ext
  8362. -#if defined (__STDC__) && __STDC__
  8363. -# define lt_ptr_t void *
  8364. -#else
  8365. -# define lt_ptr_t char *
  8366. -# define const
  8367. -#endif
  8368. -
  8369. -/* The mapping between symbol names and symbols. */
  8370. -const struct {
  8371. - const char *name;
  8372. - lt_ptr_t address;
  8373. -}
  8374. -lt_preloaded_symbols[[]] =
  8375. -{
  8376. -EOF
  8377. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8378. - cat <<\EOF >> conftest.$ac_ext
  8379. - {0, (lt_ptr_t) 0}
  8380. -};
  8381. + cygwin* | mingw* | pw32* | cegcc*)
  8382. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  8383. + # as there is no search path for DLLs.
  8384. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8385. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8386. + _LT_TAGVAR(always_export_symbols, $1)=no
  8387. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8388. + _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'
  8389. -#ifdef __cplusplus
  8390. -}
  8391. -#endif
  8392. -EOF
  8393. - # Now try linking the two files.
  8394. - mv conftest.$ac_objext conftstm.$ac_objext
  8395. - lt_save_LIBS="$LIBS"
  8396. - lt_save_CFLAGS="$CFLAGS"
  8397. - LIBS="conftstm.$ac_objext"
  8398. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8399. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8400. - pipe_works=yes
  8401. - fi
  8402. - LIBS="$lt_save_LIBS"
  8403. - CFLAGS="$lt_save_CFLAGS"
  8404. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8405. + _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'
  8406. + # If the export-symbols file already is a .def file (1st line
  8407. + # is EXPORTS), use it as is; otherwise, prepend...
  8408. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8409. + cp $export_symbols $output_objdir/$soname.def;
  8410. else
  8411. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8412. - fi
  8413. + echo EXPORTS > $output_objdir/$soname.def;
  8414. + cat $export_symbols >> $output_objdir/$soname.def;
  8415. + fi~
  8416. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8417. else
  8418. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8419. + _LT_TAGVAR(ld_shlibs, $1)=no
  8420. fi
  8421. - else
  8422. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8423. - fi
  8424. - else
  8425. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8426. - cat conftest.$ac_ext >&5
  8427. - fi
  8428. - rm -f conftest* conftst*
  8429. -
  8430. - # Do not use the global_symbol_pipe unless it works.
  8431. - if test "$pipe_works" = yes; then
  8432. - break
  8433. - else
  8434. - lt_cv_sys_global_symbol_pipe=
  8435. - fi
  8436. -done
  8437. -])
  8438. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8439. - lt_cv_sys_global_symbol_to_cdecl=
  8440. -fi
  8441. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8442. - AC_MSG_RESULT(failed)
  8443. -else
  8444. - AC_MSG_RESULT(ok)
  8445. -fi
  8446. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8447. + ;;
  8448. + interix[[3-9]]*)
  8449. + _LT_TAGVAR(hardcode_direct, $1)=no
  8450. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8451. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8452. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8453. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8454. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  8455. + # default) and relocated if they conflict, which is a slow very memory
  8456. + # consuming and fragmenting process. To avoid this, we pick a random,
  8457. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8458. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8459. + _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'
  8460. + _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'
  8461. + ;;
  8462. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8463. -# ---------------------------------------
  8464. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8465. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8466. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8467. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8468. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8469. + tmp_diet=no
  8470. + if test "$host_os" = linux-dietlibc; then
  8471. + case $cc_basename in
  8472. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8473. + esac
  8474. + fi
  8475. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8476. + && test "$tmp_diet" = no
  8477. + then
  8478. + tmp_addflag=
  8479. + tmp_sharedflag='-shared'
  8480. + case $cc_basename,$host_cpu in
  8481. + pgcc*) # Portland Group C compiler
  8482. + _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'
  8483. + tmp_addflag=' $pic_flag'
  8484. + ;;
  8485. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8486. + _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'
  8487. + tmp_addflag=' $pic_flag -Mnomain' ;;
  8488. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8489. + tmp_addflag=' -i_dynamic' ;;
  8490. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8491. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  8492. + ifc* | ifort*) # Intel Fortran compiler
  8493. + tmp_addflag=' -nofor_main' ;;
  8494. + lf95*) # Lahey Fortran 8.1
  8495. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8496. + tmp_sharedflag='--shared' ;;
  8497. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8498. + tmp_sharedflag='-qmkshrobj'
  8499. + tmp_addflag= ;;
  8500. + esac
  8501. + case `$CC -V 2>&1 | sed 5q` in
  8502. + *Sun\ C*) # Sun C 5.9
  8503. + _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'
  8504. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  8505. + tmp_sharedflag='-G' ;;
  8506. + *Sun\ F*) # Sun Fortran 8.3
  8507. + tmp_sharedflag='-G' ;;
  8508. + esac
  8509. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8510. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8511. - ifelse([$1],[CXX],[
  8512. - # C++ specific cases for pic, static, wl, etc.
  8513. - if test "$GXX" = yes; then
  8514. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8515. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8516. + if test "x$supports_anon_versioning" = xyes; then
  8517. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8518. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8519. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8520. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8521. + fi
  8522. - case $host_os in
  8523. - aix*)
  8524. - # All AIX code is PIC.
  8525. - if test "$host_cpu" = ia64; then
  8526. - # AIX 5 now supports IA64 processor
  8527. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8528. + case $cc_basename in
  8529. + xlf*)
  8530. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8531. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  8532. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8533. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8534. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8535. + if test "x$supports_anon_versioning" = xyes; then
  8536. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8537. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8538. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8539. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8540. + fi
  8541. + ;;
  8542. + esac
  8543. + else
  8544. + _LT_TAGVAR(ld_shlibs, $1)=no
  8545. fi
  8546. ;;
  8547. - amigaos*)
  8548. - # FIXME: we need at least 68020 code to build shared libraries, but
  8549. - # adding the `-m68020' flag to GCC prevents building anything better,
  8550. - # like `-m68040'.
  8551. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8552. - ;;
  8553. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8554. - # PIC is the default for these OSes.
  8555. - ;;
  8556. - mingw* | cygwin* | os2* | pw32*)
  8557. - # This hack is so that the source file can tell whether it is being
  8558. - # built for inclusion in a dll (and should export symbols for example).
  8559. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8560. - # (--disable-auto-import) libraries
  8561. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  8562. - ;;
  8563. - darwin* | rhapsody*)
  8564. - # PIC is the default on this platform
  8565. - # Common symbols not allowed in MH_DYLIB files
  8566. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8567. - ;;
  8568. - *djgpp*)
  8569. - # DJGPP does not support shared libraries at all
  8570. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8571. - ;;
  8572. - interix[[3-9]]*)
  8573. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8574. - # Instead, we relocate shared libraries at runtime.
  8575. +
  8576. + netbsd* | netbsdelf*-gnu)
  8577. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8578. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8579. + wlarc=
  8580. + else
  8581. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8582. + _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'
  8583. + fi
  8584. ;;
  8585. - sysv4*MP*)
  8586. - if test -d /usr/nec; then
  8587. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8588. +
  8589. + solaris*)
  8590. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8591. + _LT_TAGVAR(ld_shlibs, $1)=no
  8592. + cat <<_LT_EOF 1>&2
  8593. +
  8594. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8595. +*** create shared libraries on Solaris systems. Therefore, libtool
  8596. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8597. +*** binutils to release 2.9.1 or newer. Another option is to modify
  8598. +*** your PATH or compiler configuration so that the native linker is
  8599. +*** used, and then restart.
  8600. +
  8601. +_LT_EOF
  8602. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8603. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8604. + _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'
  8605. + else
  8606. + _LT_TAGVAR(ld_shlibs, $1)=no
  8607. fi
  8608. ;;
  8609. - hpux*)
  8610. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8611. - # not for PA HP-UX.
  8612. - case $host_cpu in
  8613. - hppa*64*|ia64*)
  8614. +
  8615. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8616. + case `$LD -v 2>&1` in
  8617. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8618. + _LT_TAGVAR(ld_shlibs, $1)=no
  8619. + cat <<_LT_EOF 1>&2
  8620. +
  8621. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8622. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  8623. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8624. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8625. +*** your PATH or compiler configuration so that the native linker is
  8626. +*** used, and then restart.
  8627. +
  8628. +_LT_EOF
  8629. ;;
  8630. - *)
  8631. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8632. + *)
  8633. + # For security reasons, it is highly recommended that you always
  8634. + # use absolute paths for naming shared libraries, and exclude the
  8635. + # DT_RUNPATH tag from executables and libraries. But doing so
  8636. + # requires that you compile everything twice, which is a pain.
  8637. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8638. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8639. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8640. + _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'
  8641. + else
  8642. + _LT_TAGVAR(ld_shlibs, $1)=no
  8643. + fi
  8644. ;;
  8645. esac
  8646. ;;
  8647. +
  8648. + sunos4*)
  8649. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8650. + wlarc=
  8651. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8652. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8653. + ;;
  8654. +
  8655. *)
  8656. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8657. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8658. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8659. + _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'
  8660. + else
  8661. + _LT_TAGVAR(ld_shlibs, $1)=no
  8662. + fi
  8663. ;;
  8664. esac
  8665. +
  8666. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8667. + runpath_var=
  8668. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8669. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8670. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8671. + fi
  8672. else
  8673. + # PORTME fill in a description of your system's linker (not GNU ld)
  8674. case $host_os in
  8675. - aix4* | aix5*)
  8676. - # All AIX code is PIC.
  8677. - if test "$host_cpu" = ia64; then
  8678. - # AIX 5 now supports IA64 processor
  8679. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8680. + aix3*)
  8681. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8682. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8683. + _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'
  8684. + # Note: this linker hardcodes the directories in LIBPATH if there
  8685. + # are no directories specified by -L.
  8686. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8687. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8688. + # Neither direct hardcoding nor static linking is supported with a
  8689. + # broken collect2.
  8690. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8691. + fi
  8692. + ;;
  8693. +
  8694. + aix[[4-9]]*)
  8695. + if test "$host_cpu" = ia64; then
  8696. + # On IA64, the linker does run time linking by default, so we don't
  8697. + # have to do anything special.
  8698. + aix_use_runtimelinking=no
  8699. + exp_sym_flag='-Bexport'
  8700. + no_entry_flag=""
  8701. + else
  8702. + # If we're using GNU nm, then we don't want the "-C" option.
  8703. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8704. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8705. + _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'
  8706. else
  8707. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  8708. + _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'
  8709. fi
  8710. - ;;
  8711. - chorus*)
  8712. - case $cc_basename in
  8713. - cxch68*)
  8714. - # Green Hills C++ Compiler
  8715. - # _LT_AC_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"
  8716. + aix_use_runtimelinking=no
  8717. +
  8718. + # Test if we are trying to use run time linking or normal
  8719. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8720. + # need to do runtime linking.
  8721. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8722. + for ld_flag in $LDFLAGS; do
  8723. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8724. + aix_use_runtimelinking=yes
  8725. + break
  8726. + fi
  8727. + done
  8728. ;;
  8729. esac
  8730. - ;;
  8731. - darwin*)
  8732. - # PIC is the default on this platform
  8733. - # Common symbols not allowed in MH_DYLIB files
  8734. - case $cc_basename in
  8735. - xlc*)
  8736. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  8737. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8738. - ;;
  8739. - esac
  8740. - ;;
  8741. - dgux*)
  8742. - case $cc_basename in
  8743. - ec++*)
  8744. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8745. - ;;
  8746. - ghcx*)
  8747. - # Green Hills C++ Compiler
  8748. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8749. - ;;
  8750. - *)
  8751. - ;;
  8752. - esac
  8753. - ;;
  8754. - freebsd* | dragonfly*)
  8755. - # FreeBSD uses GNU C++
  8756. - ;;
  8757. - hpux9* | hpux10* | hpux11*)
  8758. - case $cc_basename in
  8759. - CC*)
  8760. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8761. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8762. - if test "$host_cpu" != ia64; then
  8763. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8764. - fi
  8765. - ;;
  8766. - aCC*)
  8767. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8768. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8769. - case $host_cpu in
  8770. - hppa*64*|ia64*)
  8771. - # +Z the default
  8772. - ;;
  8773. - *)
  8774. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8775. - ;;
  8776. - esac
  8777. - ;;
  8778. - *)
  8779. - ;;
  8780. - esac
  8781. - ;;
  8782. - interix*)
  8783. - # This is c89, which is MS Visual C++ (no shared libs)
  8784. - # Anyone wants to do a port?
  8785. - ;;
  8786. - irix5* | irix6* | nonstopux*)
  8787. - case $cc_basename in
  8788. - CC*)
  8789. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8790. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8791. - # CC pic flag -KPIC is the default.
  8792. - ;;
  8793. - *)
  8794. - ;;
  8795. - esac
  8796. - ;;
  8797. - linux* | k*bsd*-gnu)
  8798. - case $cc_basename in
  8799. - KCC*)
  8800. - # KAI C++ Compiler
  8801. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8802. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8803. - ;;
  8804. - icpc* | ecpc*)
  8805. - # Intel C++
  8806. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8807. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8808. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8809. - ;;
  8810. - pgCC*)
  8811. - # Portland Group C++ compiler.
  8812. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8813. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8814. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8815. - ;;
  8816. - cxx*)
  8817. - # Compaq C++
  8818. - # Make sure the PIC flag is empty. It appears that all Alpha
  8819. - # Linux and Compaq Tru64 Unix objects are PIC.
  8820. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8821. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8822. - ;;
  8823. - *)
  8824. - case `$CC -V 2>&1 | sed 5q` in
  8825. - *Sun\ C*)
  8826. - # Sun C++ 5.9
  8827. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8828. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8829. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8830. - ;;
  8831. - esac
  8832. - ;;
  8833. - esac
  8834. - ;;
  8835. - lynxos*)
  8836. - ;;
  8837. - m88k*)
  8838. - ;;
  8839. - mvs*)
  8840. - case $cc_basename in
  8841. - cxx*)
  8842. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  8843. - ;;
  8844. - *)
  8845. - ;;
  8846. - esac
  8847. - ;;
  8848. - netbsd* | netbsdelf*-gnu)
  8849. - ;;
  8850. - osf3* | osf4* | osf5*)
  8851. - case $cc_basename in
  8852. - KCC*)
  8853. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8854. - ;;
  8855. - RCC*)
  8856. - # Rational C++ 2.4.1
  8857. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8858. - ;;
  8859. - cxx*)
  8860. - # Digital/Compaq C++
  8861. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8862. - # Make sure the PIC flag is empty. It appears that all Alpha
  8863. - # Linux and Compaq Tru64 Unix objects are PIC.
  8864. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8865. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8866. - ;;
  8867. - *)
  8868. - ;;
  8869. +
  8870. + exp_sym_flag='-bexport'
  8871. + no_entry_flag='-bnoentry'
  8872. + fi
  8873. +
  8874. + # When large executables or shared objects are built, AIX ld can
  8875. + # have problems creating the table of contents. If linking a library
  8876. + # or program results in "error TOC overflow" add -mminimal-toc to
  8877. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8878. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8879. +
  8880. + _LT_TAGVAR(archive_cmds, $1)=''
  8881. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8882. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8883. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8884. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8885. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8886. +
  8887. + if test "$GCC" = yes; then
  8888. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8889. + # We only want to do this on AIX 4.2 and lower, the check
  8890. + # below for broken collect2 doesn't work under 4.3+
  8891. + collect2name=`${CC} -print-prog-name=collect2`
  8892. + if test -f "$collect2name" &&
  8893. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8894. + then
  8895. + # We have reworked collect2
  8896. + :
  8897. + else
  8898. + # We have old collect2
  8899. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8900. + # It fails to find uninstalled libraries when the uninstalled
  8901. + # path is not listed in the libpath. Setting hardcode_minus_L
  8902. + # to unsupported forces relinking
  8903. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8904. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8905. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8906. + fi
  8907. + ;;
  8908. esac
  8909. - ;;
  8910. - psos*)
  8911. - ;;
  8912. - solaris*)
  8913. - case $cc_basename in
  8914. - CC*)
  8915. - # Sun C++ 4.2, 5.x and Centerline C++
  8916. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8917. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8918. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8919. - ;;
  8920. - gcx*)
  8921. - # Green Hills C++ Compiler
  8922. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8923. - ;;
  8924. - *)
  8925. - ;;
  8926. + shared_flag='-shared'
  8927. + if test "$aix_use_runtimelinking" = yes; then
  8928. + shared_flag="$shared_flag "'${wl}-G'
  8929. + fi
  8930. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8931. + else
  8932. + # not using gcc
  8933. + if test "$host_cpu" = ia64; then
  8934. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8935. + # chokes on -Wl,-G. The following line is correct:
  8936. + shared_flag='-G'
  8937. + else
  8938. + if test "$aix_use_runtimelinking" = yes; then
  8939. + shared_flag='${wl}-G'
  8940. + else
  8941. + shared_flag='${wl}-bM:SRE'
  8942. + fi
  8943. + fi
  8944. + fi
  8945. +
  8946. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8947. + # It seems that -bexpall does not export symbols beginning with
  8948. + # underscore (_), so it is better to generate a list of symbols to export.
  8949. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8950. + if test "$aix_use_runtimelinking" = yes; then
  8951. + # Warning - without using the other runtime loading flags (-brtl),
  8952. + # -berok will link without error, but may produce a broken library.
  8953. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8954. + # Determine the default libpath from the value encoded in an
  8955. + # empty executable.
  8956. + _LT_SYS_MODULE_PATH_AIX
  8957. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8958. + _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"
  8959. + else
  8960. + if test "$host_cpu" = ia64; then
  8961. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8962. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8963. + _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"
  8964. + else
  8965. + # Determine the default libpath from the value encoded in an
  8966. + # empty executable.
  8967. + _LT_SYS_MODULE_PATH_AIX
  8968. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8969. + # Warning - without using the other run time loading flags,
  8970. + # -berok will link without error, but may produce a broken library.
  8971. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8972. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8973. + # Exported symbols can be pulled into shared objects from archives
  8974. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8975. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8976. + # This is similar to how AIX traditionally builds its shared libraries.
  8977. + _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'
  8978. + fi
  8979. + fi
  8980. + ;;
  8981. +
  8982. + amigaos*)
  8983. + case $host_cpu in
  8984. + powerpc)
  8985. + # see comment about AmigaOS4 .so support
  8986. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8987. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8988. + ;;
  8989. + m68k)
  8990. + _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)'
  8991. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8992. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8993. + ;;
  8994. + esac
  8995. + ;;
  8996. +
  8997. + bsdi[[45]]*)
  8998. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8999. + ;;
  9000. +
  9001. + cygwin* | mingw* | pw32* | cegcc*)
  9002. + # When not using gcc, we currently assume that we are using
  9003. + # Microsoft Visual C++.
  9004. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  9005. + # no search path for DLLs.
  9006. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  9007. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9008. + # Tell ltmain to make .lib files, not .a files.
  9009. + libext=lib
  9010. + # Tell ltmain to make .dll files, not .so files.
  9011. + shrext_cmds=".dll"
  9012. + # FIXME: Setting linknames here is a bad hack.
  9013. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9014. + # The linker will automatically build a .lib file if we build a DLL.
  9015. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  9016. + # FIXME: Should let the user specify the lib program.
  9017. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9018. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  9019. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9020. + ;;
  9021. +
  9022. + darwin* | rhapsody*)
  9023. + _LT_DARWIN_LINKER_FEATURES($1)
  9024. + ;;
  9025. +
  9026. + dgux*)
  9027. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9028. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9029. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9030. + ;;
  9031. +
  9032. + freebsd1*)
  9033. + _LT_TAGVAR(ld_shlibs, $1)=no
  9034. + ;;
  9035. +
  9036. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9037. + # support. Future versions do this automatically, but an explicit c++rt0.o
  9038. + # does not break anything, and helps significantly (at the cost of a little
  9039. + # extra space).
  9040. + freebsd2.2*)
  9041. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9042. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9043. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9044. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9045. + ;;
  9046. +
  9047. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9048. + freebsd2*)
  9049. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9050. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9051. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9052. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9053. + ;;
  9054. +
  9055. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9056. + freebsd* | dragonfly*)
  9057. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9058. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9059. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9060. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9061. + ;;
  9062. +
  9063. + hpux9*)
  9064. + if test "$GCC" = yes; then
  9065. + _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'
  9066. + else
  9067. + _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'
  9068. + fi
  9069. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9070. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9071. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9072. +
  9073. + # hardcode_minus_L: Not really in the search PATH,
  9074. + # but as the default location of the library.
  9075. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9076. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9077. + ;;
  9078. +
  9079. + hpux10*)
  9080. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9081. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9082. + else
  9083. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9084. + fi
  9085. + if test "$with_gnu_ld" = no; then
  9086. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9087. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  9088. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9089. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9090. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9091. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9092. + # hardcode_minus_L: Not really in the search PATH,
  9093. + # but as the default location of the library.
  9094. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9095. + fi
  9096. + ;;
  9097. +
  9098. + hpux11*)
  9099. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9100. + case $host_cpu in
  9101. + hppa*64*)
  9102. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9103. + ;;
  9104. + ia64*)
  9105. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9106. + ;;
  9107. + *)
  9108. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9109. + ;;
  9110. esac
  9111. - ;;
  9112. - sunos4*)
  9113. - case $cc_basename in
  9114. - CC*)
  9115. - # Sun C++ 4.x
  9116. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9117. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9118. - ;;
  9119. - lcc*)
  9120. - # Lucid
  9121. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9122. - ;;
  9123. - *)
  9124. - ;;
  9125. + else
  9126. + case $host_cpu in
  9127. + hppa*64*)
  9128. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9129. + ;;
  9130. + ia64*)
  9131. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9132. + ;;
  9133. + *)
  9134. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9135. + ;;
  9136. esac
  9137. - ;;
  9138. - tandem*)
  9139. - case $cc_basename in
  9140. - NCC*)
  9141. - # NonStop-UX NCC 3.20
  9142. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9143. - ;;
  9144. - *)
  9145. - ;;
  9146. + fi
  9147. + if test "$with_gnu_ld" = no; then
  9148. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9149. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9150. +
  9151. + case $host_cpu in
  9152. + hppa*64*|ia64*)
  9153. + _LT_TAGVAR(hardcode_direct, $1)=no
  9154. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9155. + ;;
  9156. + *)
  9157. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9158. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9159. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9160. +
  9161. + # hardcode_minus_L: Not really in the search PATH,
  9162. + # but as the default location of the library.
  9163. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9164. + ;;
  9165. esac
  9166. - ;;
  9167. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9168. - case $cc_basename in
  9169. - CC*)
  9170. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9171. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9172. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9173. - ;;
  9174. + fi
  9175. + ;;
  9176. +
  9177. + irix5* | irix6* | nonstopux*)
  9178. + if test "$GCC" = yes; then
  9179. + _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'
  9180. + # Try to use the -exported_symbol ld option, if it does not
  9181. + # work, assume that -exports_file does not work either and
  9182. + # implicitly export all symbols.
  9183. + save_LDFLAGS="$LDFLAGS"
  9184. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9185. + AC_LINK_IFELSE(int foo(void) {},
  9186. + _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'
  9187. + )
  9188. + LDFLAGS="$save_LDFLAGS"
  9189. + else
  9190. + _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'
  9191. + _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'
  9192. + fi
  9193. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  9194. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9195. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9196. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9197. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9198. + ;;
  9199. +
  9200. + netbsd* | netbsdelf*-gnu)
  9201. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9202. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9203. + else
  9204. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9205. + fi
  9206. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9207. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9208. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9209. + ;;
  9210. +
  9211. + newsos6)
  9212. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9213. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9214. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9215. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9216. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9217. + ;;
  9218. +
  9219. + *nto* | *qnx*)
  9220. + ;;
  9221. +
  9222. + openbsd*)
  9223. + if test -f /usr/libexec/ld.so; then
  9224. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9225. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9226. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9227. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9228. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9229. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9230. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9231. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9232. + else
  9233. + case $host_os in
  9234. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  9235. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9236. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9237. + ;;
  9238. + *)
  9239. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9240. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9241. + ;;
  9242. + esac
  9243. + fi
  9244. + else
  9245. + _LT_TAGVAR(ld_shlibs, $1)=no
  9246. + fi
  9247. + ;;
  9248. +
  9249. + os2*)
  9250. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9251. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9252. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9253. + _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'
  9254. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9255. + ;;
  9256. +
  9257. + osf3*)
  9258. + if test "$GCC" = yes; then
  9259. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  9260. + _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'
  9261. + else
  9262. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  9263. + _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'
  9264. + fi
  9265. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  9266. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9267. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9268. + ;;
  9269. +
  9270. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  9271. + if test "$GCC" = yes; then
  9272. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  9273. + _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'
  9274. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9275. + else
  9276. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  9277. + _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'
  9278. + _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~
  9279. + $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'
  9280. +
  9281. + # Both c and cxx compiler support -rpath directly
  9282. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9283. + fi
  9284. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  9285. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9286. + ;;
  9287. +
  9288. + solaris*)
  9289. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  9290. + if test "$GCC" = yes; then
  9291. + wlarc='${wl}'
  9292. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9293. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9294. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9295. + else
  9296. + case `$CC -V 2>&1` in
  9297. + *"Compilers 5.0"*)
  9298. + wlarc=''
  9299. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9300. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9301. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9302. + ;;
  9303. + *)
  9304. + wlarc='${wl}'
  9305. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9306. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9307. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9308. + ;;
  9309. esac
  9310. + fi
  9311. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9312. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9313. + case $host_os in
  9314. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  9315. + *)
  9316. + # The compiler driver will combine and reorder linker options,
  9317. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  9318. + # but is careful enough not to reorder.
  9319. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  9320. + if test "$GCC" = yes; then
  9321. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9322. + else
  9323. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  9324. + fi
  9325. ;;
  9326. - vxworks*)
  9327. + esac
  9328. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9329. + ;;
  9330. +
  9331. + sunos4*)
  9332. + if test "x$host_vendor" = xsequent; then
  9333. + # Use $CC to link under sequent, because it throws in some extra .o
  9334. + # files that make .init and .fini sections work.
  9335. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9336. + else
  9337. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9338. + fi
  9339. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9340. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9341. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9342. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9343. + ;;
  9344. +
  9345. + sysv4)
  9346. + case $host_vendor in
  9347. + sni)
  9348. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9349. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  9350. ;;
  9351. - *)
  9352. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9353. + siemens)
  9354. + ## LD is ld it makes a PLAMLIB
  9355. + ## CC just makes a GrossModule.
  9356. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9357. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  9358. + _LT_TAGVAR(hardcode_direct, $1)=no
  9359. + ;;
  9360. + motorola)
  9361. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9362. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  9363. + ;;
  9364. + esac
  9365. + runpath_var='LD_RUN_PATH'
  9366. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9367. + ;;
  9368. +
  9369. + sysv4.3*)
  9370. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9371. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9372. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  9373. + ;;
  9374. +
  9375. + sysv4*MP*)
  9376. + if test -d /usr/nec; then
  9377. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9378. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9379. + runpath_var=LD_RUN_PATH
  9380. + hardcode_runpath_var=yes
  9381. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9382. + fi
  9383. + ;;
  9384. +
  9385. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  9386. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9387. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9388. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9389. + runpath_var='LD_RUN_PATH'
  9390. +
  9391. + if test "$GCC" = yes; then
  9392. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9393. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9394. + else
  9395. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9396. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9397. + fi
  9398. + ;;
  9399. +
  9400. + sysv5* | sco3.2v5* | sco5v6*)
  9401. + # Note: We can NOT use -z defs as we might desire, because we do not
  9402. + # link with -lc, and that would cause any symbols used from libc to
  9403. + # always be unresolved, which means just about no library would
  9404. + # ever link correctly. If we're not using GNU ld we use -z text
  9405. + # though, which does catch some bad symbols but isn't as heavy-handed
  9406. + # as -z defs.
  9407. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9408. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  9409. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9410. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9411. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  9412. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9413. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9414. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  9415. + runpath_var='LD_RUN_PATH'
  9416. +
  9417. + if test "$GCC" = yes; then
  9418. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9419. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9420. + else
  9421. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9422. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9423. + fi
  9424. + ;;
  9425. +
  9426. + uts4*)
  9427. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9428. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9429. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9430. + ;;
  9431. +
  9432. + *)
  9433. + _LT_TAGVAR(ld_shlibs, $1)=no
  9434. + ;;
  9435. + esac
  9436. +
  9437. + if test x$host_vendor = xsni; then
  9438. + case $host in
  9439. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9440. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  9441. ;;
  9442. + esac
  9443. + fi
  9444. + fi
  9445. +])
  9446. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  9447. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  9448. +
  9449. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  9450. +
  9451. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  9452. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  9453. +_LT_DECL([], [extract_expsyms_cmds], [2],
  9454. + [The commands to extract the exported symbol list from a shared archive])
  9455. +
  9456. +#
  9457. +# Do we need to explicitly link libc?
  9458. +#
  9459. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  9460. +x|xyes)
  9461. + # Assume -lc should be added
  9462. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9463. +
  9464. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  9465. + case $_LT_TAGVAR(archive_cmds, $1) in
  9466. + *'~'*)
  9467. + # FIXME: we may have to deal with multi-command sequences.
  9468. + ;;
  9469. + '$CC '*)
  9470. + # Test whether the compiler implicitly links with -lc since on some
  9471. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9472. + # to ld, don't add -lc before -lgcc.
  9473. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  9474. + $RM conftest*
  9475. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9476. +
  9477. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  9478. + soname=conftest
  9479. + lib=conftest
  9480. + libobjs=conftest.$ac_objext
  9481. + deplibs=
  9482. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  9483. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  9484. + compiler_flags=-v
  9485. + linker_flags=-v
  9486. + verstring=
  9487. + output_objdir=.
  9488. + libname=conftest
  9489. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  9490. + _LT_TAGVAR(allow_undefined_flag, $1)=
  9491. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  9492. + then
  9493. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9494. + else
  9495. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9496. + fi
  9497. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  9498. + else
  9499. + cat conftest.err 1>&5
  9500. + fi
  9501. + $RM conftest*
  9502. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  9503. + ;;
  9504. esac
  9505. fi
  9506. -],
  9507. + ;;
  9508. +esac
  9509. +
  9510. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  9511. + [Whether or not to add -lc for building shared libraries])
  9512. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  9513. + [enable_shared_with_static_runtimes], [0],
  9514. + [Whether or not to disallow shared libs when runtime libs are static])
  9515. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  9516. + [Compiler flag to allow reflexive dlopens])
  9517. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  9518. + [Compiler flag to generate shared objects directly from archives])
  9519. +_LT_TAGDECL([], [compiler_needs_object], [1],
  9520. + [Whether the compiler copes with passing no objects directly])
  9521. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  9522. + [Create an old-style archive from a shared archive])
  9523. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  9524. + [Create a temporary old-style archive to link instead of a shared archive])
  9525. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  9526. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  9527. +_LT_TAGDECL([], [module_cmds], [2],
  9528. + [Commands used to build a loadable module if different from building
  9529. + a shared archive.])
  9530. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  9531. +_LT_TAGDECL([], [with_gnu_ld], [1],
  9532. + [Whether we are building with GNU ld or not])
  9533. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  9534. + [Flag that allows shared libraries with undefined symbols to be built])
  9535. +_LT_TAGDECL([], [no_undefined_flag], [1],
  9536. + [Flag that enforces no undefined symbols])
  9537. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  9538. + [Flag to hardcode $libdir into a binary during linking.
  9539. + This must work even if $libdir does not exist])
  9540. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  9541. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  9542. + during linking. This must work even if $libdir does not exist]])
  9543. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  9544. + [Whether we need a single "-rpath" flag with a separated argument])
  9545. +_LT_TAGDECL([], [hardcode_direct], [0],
  9546. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9547. + DIR into the resulting binary])
  9548. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  9549. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9550. + DIR into the resulting binary and the resulting library dependency is
  9551. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  9552. + library is relocated])
  9553. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  9554. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  9555. + into the resulting binary])
  9556. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  9557. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  9558. + into the resulting binary])
  9559. +_LT_TAGDECL([], [hardcode_automatic], [0],
  9560. + [Set to "yes" if building a shared library automatically hardcodes DIR
  9561. + into the library and all subsequent libraries and executables linked
  9562. + against it])
  9563. +_LT_TAGDECL([], [inherit_rpath], [0],
  9564. + [Set to yes if linker adds runtime paths of dependent libraries
  9565. + to runtime path list])
  9566. +_LT_TAGDECL([], [link_all_deplibs], [0],
  9567. + [Whether libtool must link a program against all its dependency libraries])
  9568. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  9569. + [Fix the shell variable $srcfile for the compiler])
  9570. +_LT_TAGDECL([], [always_export_symbols], [0],
  9571. + [Set to "yes" if exported symbols are required])
  9572. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  9573. + [The commands to list exported symbols])
  9574. +_LT_TAGDECL([], [exclude_expsyms], [1],
  9575. + [Symbols that should not be listed in the preloaded symbols])
  9576. +_LT_TAGDECL([], [include_expsyms], [1],
  9577. + [Symbols that must always be exported])
  9578. +_LT_TAGDECL([], [prelink_cmds], [2],
  9579. + [Commands necessary for linking programs (against libraries) with templates])
  9580. +_LT_TAGDECL([], [file_list_spec], [1],
  9581. + [Specify filename containing input files])
  9582. +dnl FIXME: Not yet implemented
  9583. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  9584. +dnl [Compiler flag to generate thread safe objects])
  9585. +])# _LT_LINKER_SHLIBS
  9586. +
  9587. +
  9588. +# _LT_LANG_C_CONFIG([TAG])
  9589. +# ------------------------
  9590. +# Ensure that the configuration variables for a C compiler are suitably
  9591. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9592. +# the compiler configuration to `libtool'.
  9593. +m4_defun([_LT_LANG_C_CONFIG],
  9594. +[m4_require([_LT_DECL_EGREP])dnl
  9595. +lt_save_CC="$CC"
  9596. +AC_LANG_PUSH(C)
  9597. +
  9598. +# Source file extension for C test sources.
  9599. +ac_ext=c
  9600. +
  9601. +# Object file extension for compiled C test sources.
  9602. +objext=o
  9603. +_LT_TAGVAR(objext, $1)=$objext
  9604. +
  9605. +# Code to be used in simple compile tests
  9606. +lt_simple_compile_test_code="int some_variable = 0;"
  9607. +
  9608. +# Code to be used in simple link tests
  9609. +lt_simple_link_test_code='int main(){return(0);}'
  9610. +
  9611. +_LT_TAG_COMPILER
  9612. +# Save the default compiler, since it gets overwritten when the other
  9613. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9614. +compiler_DEFAULT=$CC
  9615. +
  9616. +# save warnings/boilerplate of simple test code
  9617. +_LT_COMPILER_BOILERPLATE
  9618. +_LT_LINKER_BOILERPLATE
  9619. +
  9620. +if test -n "$compiler"; then
  9621. + _LT_COMPILER_NO_RTTI($1)
  9622. + _LT_COMPILER_PIC($1)
  9623. + _LT_COMPILER_C_O($1)
  9624. + _LT_COMPILER_FILE_LOCKS($1)
  9625. + _LT_LINKER_SHLIBS($1)
  9626. + _LT_SYS_DYNAMIC_LINKER($1)
  9627. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9628. + LT_SYS_DLOPEN_SELF
  9629. + _LT_CMD_STRIPLIB
  9630. +
  9631. + # Report which library types will actually be built
  9632. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9633. + AC_MSG_RESULT([$can_build_shared])
  9634. +
  9635. + AC_MSG_CHECKING([whether to build shared libraries])
  9636. + test "$can_build_shared" = "no" && enable_shared=no
  9637. +
  9638. + # On AIX, shared libraries and static libraries use the same namespace, and
  9639. + # are all built from PIC.
  9640. + case $host_os in
  9641. + aix3*)
  9642. + test "$enable_shared" = yes && enable_static=no
  9643. + if test -n "$RANLIB"; then
  9644. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9645. + postinstall_cmds='$RANLIB $lib'
  9646. + fi
  9647. + ;;
  9648. +
  9649. + aix[[4-9]]*)
  9650. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9651. + test "$enable_shared" = yes && enable_static=no
  9652. + fi
  9653. + ;;
  9654. + esac
  9655. + AC_MSG_RESULT([$enable_shared])
  9656. +
  9657. + AC_MSG_CHECKING([whether to build static libraries])
  9658. + # Make sure either enable_shared or enable_static is yes.
  9659. + test "$enable_shared" = yes || enable_static=yes
  9660. + AC_MSG_RESULT([$enable_static])
  9661. +
  9662. + _LT_CONFIG($1)
  9663. +fi
  9664. +AC_LANG_POP
  9665. +CC="$lt_save_CC"
  9666. +])# _LT_LANG_C_CONFIG
  9667. +
  9668. +
  9669. +# _LT_PROG_CXX
  9670. +# ------------
  9671. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9672. +# compiler, we have our own version here.
  9673. +m4_defun([_LT_PROG_CXX],
  9674. [
  9675. - if test "$GCC" = yes; then
  9676. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9677. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9678. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9679. +AC_PROG_CXX
  9680. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9681. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9682. + (test "X$CXX" != "Xg++"))) ; then
  9683. + AC_PROG_CXXCPP
  9684. +else
  9685. + _lt_caught_CXX_error=yes
  9686. +fi
  9687. +popdef([AC_MSG_ERROR])
  9688. +])# _LT_PROG_CXX
  9689. +
  9690. +dnl aclocal-1.4 backwards compatibility:
  9691. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  9692. +
  9693. +
  9694. +# _LT_LANG_CXX_CONFIG([TAG])
  9695. +# --------------------------
  9696. +# Ensure that the configuration variables for a C++ compiler are suitably
  9697. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9698. +# the compiler configuration to `libtool'.
  9699. +m4_defun([_LT_LANG_CXX_CONFIG],
  9700. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  9701. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9702. +m4_require([_LT_DECL_EGREP])dnl
  9703. +
  9704. +AC_LANG_PUSH(C++)
  9705. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9706. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9707. +_LT_TAGVAR(always_export_symbols, $1)=no
  9708. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9709. +_LT_TAGVAR(compiler_needs_object, $1)=no
  9710. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9711. +_LT_TAGVAR(hardcode_direct, $1)=no
  9712. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9713. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9714. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9715. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9716. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9717. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9718. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9719. +_LT_TAGVAR(inherit_rpath, $1)=no
  9720. +_LT_TAGVAR(module_cmds, $1)=
  9721. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9722. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9723. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9724. +_LT_TAGVAR(no_undefined_flag, $1)=
  9725. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9726. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9727. +
  9728. +# Source file extension for C++ test sources.
  9729. +ac_ext=cpp
  9730. +
  9731. +# Object file extension for compiled C++ test sources.
  9732. +objext=o
  9733. +_LT_TAGVAR(objext, $1)=$objext
  9734. +
  9735. +# No sense in running all these tests if we already determined that
  9736. +# the CXX compiler isn't working. Some variables (like enable_shared)
  9737. +# are currently assumed to apply to all compilers on this platform,
  9738. +# and will be corrupted by setting them based on a non-working compiler.
  9739. +if test "$_lt_caught_CXX_error" != yes; then
  9740. + # Code to be used in simple compile tests
  9741. + lt_simple_compile_test_code="int some_variable = 0;"
  9742. +
  9743. + # Code to be used in simple link tests
  9744. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9745. +
  9746. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9747. + _LT_TAG_COMPILER
  9748. +
  9749. + # save warnings/boilerplate of simple test code
  9750. + _LT_COMPILER_BOILERPLATE
  9751. + _LT_LINKER_BOILERPLATE
  9752. +
  9753. + # Allow CC to be a program name with arguments.
  9754. + lt_save_CC=$CC
  9755. + lt_save_LD=$LD
  9756. + lt_save_GCC=$GCC
  9757. + GCC=$GXX
  9758. + lt_save_with_gnu_ld=$with_gnu_ld
  9759. + lt_save_path_LD=$lt_cv_path_LD
  9760. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9761. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9762. + else
  9763. + $as_unset lt_cv_prog_gnu_ld
  9764. + fi
  9765. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9766. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9767. + else
  9768. + $as_unset lt_cv_path_LD
  9769. + fi
  9770. + test -z "${LDCXX+set}" || LD=$LDCXX
  9771. + CC=${CXX-"c++"}
  9772. + compiler=$CC
  9773. + _LT_TAGVAR(compiler, $1)=$CC
  9774. + _LT_CC_BASENAME([$compiler])
  9775. +
  9776. + if test -n "$compiler"; then
  9777. + # We don't want -fno-exception when compiling C++ code, so set the
  9778. + # no_builtin_flag separately
  9779. + if test "$GXX" = yes; then
  9780. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9781. + else
  9782. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9783. + fi
  9784. +
  9785. + if test "$GXX" = yes; then
  9786. + # Set up default GNU C++ configuration
  9787. +
  9788. + LT_PATH_LD
  9789. +
  9790. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9791. + # archiving commands below assume that GNU ld is being used.
  9792. + if test "$with_gnu_ld" = yes; then
  9793. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9794. + _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'
  9795. +
  9796. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9797. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9798. +
  9799. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9800. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9801. + # investigate it a little bit more. (MM)
  9802. + wlarc='${wl}'
  9803. +
  9804. + # ancient GNU ld didn't support --whole-archive et. al.
  9805. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9806. + $GREP 'no-whole-archive' > /dev/null; then
  9807. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9808. + else
  9809. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9810. + fi
  9811. + else
  9812. + with_gnu_ld=no
  9813. + wlarc=
  9814. +
  9815. + # A generic and very simple default shared library creation
  9816. + # command for GNU C++ for the case where it uses the native
  9817. + # linker, instead of GNU ld. If possible, this setting should
  9818. + # overridden to take advantage of the native linker features on
  9819. + # the platform it is being used on.
  9820. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9821. + fi
  9822. +
  9823. + # Commands to make compiler produce verbose output that lists
  9824. + # what "hidden" libraries, object files and flags are used when
  9825. + # linking a shared library.
  9826. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9827. +
  9828. + else
  9829. + GXX=no
  9830. + with_gnu_ld=no
  9831. + wlarc=
  9832. + fi
  9833. +
  9834. + # PORTME: fill in a description of your system's C++ link characteristics
  9835. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9836. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9837. + case $host_os in
  9838. + aix3*)
  9839. + # FIXME: insert proper C++ library support
  9840. + _LT_TAGVAR(ld_shlibs, $1)=no
  9841. + ;;
  9842. + aix[[4-9]]*)
  9843. + if test "$host_cpu" = ia64; then
  9844. + # On IA64, the linker does run time linking by default, so we don't
  9845. + # have to do anything special.
  9846. + aix_use_runtimelinking=no
  9847. + exp_sym_flag='-Bexport'
  9848. + no_entry_flag=""
  9849. + else
  9850. + aix_use_runtimelinking=no
  9851. +
  9852. + # Test if we are trying to use run time linking or normal
  9853. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9854. + # need to do runtime linking.
  9855. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9856. + for ld_flag in $LDFLAGS; do
  9857. + case $ld_flag in
  9858. + *-brtl*)
  9859. + aix_use_runtimelinking=yes
  9860. + break
  9861. + ;;
  9862. + esac
  9863. + done
  9864. + ;;
  9865. + esac
  9866. +
  9867. + exp_sym_flag='-bexport'
  9868. + no_entry_flag='-bnoentry'
  9869. + fi
  9870. +
  9871. + # When large executables or shared objects are built, AIX ld can
  9872. + # have problems creating the table of contents. If linking a library
  9873. + # or program results in "error TOC overflow" add -mminimal-toc to
  9874. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9875. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9876. +
  9877. + _LT_TAGVAR(archive_cmds, $1)=''
  9878. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9879. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9880. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9881. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9882. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9883. +
  9884. + if test "$GXX" = yes; then
  9885. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9886. + # We only want to do this on AIX 4.2 and lower, the check
  9887. + # below for broken collect2 doesn't work under 4.3+
  9888. + collect2name=`${CC} -print-prog-name=collect2`
  9889. + if test -f "$collect2name" &&
  9890. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9891. + then
  9892. + # We have reworked collect2
  9893. + :
  9894. + else
  9895. + # We have old collect2
  9896. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9897. + # It fails to find uninstalled libraries when the uninstalled
  9898. + # path is not listed in the libpath. Setting hardcode_minus_L
  9899. + # to unsupported forces relinking
  9900. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9901. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9902. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9903. + fi
  9904. + esac
  9905. + shared_flag='-shared'
  9906. + if test "$aix_use_runtimelinking" = yes; then
  9907. + shared_flag="$shared_flag "'${wl}-G'
  9908. + fi
  9909. + else
  9910. + # not using gcc
  9911. + if test "$host_cpu" = ia64; then
  9912. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9913. + # chokes on -Wl,-G. The following line is correct:
  9914. + shared_flag='-G'
  9915. + else
  9916. + if test "$aix_use_runtimelinking" = yes; then
  9917. + shared_flag='${wl}-G'
  9918. + else
  9919. + shared_flag='${wl}-bM:SRE'
  9920. + fi
  9921. + fi
  9922. + fi
  9923. +
  9924. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9925. + # It seems that -bexpall does not export symbols beginning with
  9926. + # underscore (_), so it is better to generate a list of symbols to
  9927. + # export.
  9928. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9929. + if test "$aix_use_runtimelinking" = yes; then
  9930. + # Warning - without using the other runtime loading flags (-brtl),
  9931. + # -berok will link without error, but may produce a broken library.
  9932. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9933. + # Determine the default libpath from the value encoded in an empty
  9934. + # executable.
  9935. + _LT_SYS_MODULE_PATH_AIX
  9936. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9937. +
  9938. + _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"
  9939. + else
  9940. + if test "$host_cpu" = ia64; then
  9941. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9942. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9943. + _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"
  9944. + else
  9945. + # Determine the default libpath from the value encoded in an
  9946. + # empty executable.
  9947. + _LT_SYS_MODULE_PATH_AIX
  9948. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9949. + # Warning - without using the other run time loading flags,
  9950. + # -berok will link without error, but may produce a broken library.
  9951. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9952. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9953. + # Exported symbols can be pulled into shared objects from archives
  9954. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9955. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9956. + # This is similar to how AIX traditionally builds its shared
  9957. + # libraries.
  9958. + _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'
  9959. + fi
  9960. + fi
  9961. + ;;
  9962. +
  9963. + beos*)
  9964. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9965. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9966. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9967. + # support --undefined. This deserves some investigation. FIXME
  9968. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9969. + else
  9970. + _LT_TAGVAR(ld_shlibs, $1)=no
  9971. + fi
  9972. + ;;
  9973. +
  9974. + chorus*)
  9975. + case $cc_basename in
  9976. + *)
  9977. + # FIXME: insert proper C++ library support
  9978. + _LT_TAGVAR(ld_shlibs, $1)=no
  9979. + ;;
  9980. + esac
  9981. + ;;
  9982. +
  9983. + cygwin* | mingw* | pw32* | cegcc*)
  9984. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9985. + # as there is no search path for DLLs.
  9986. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9987. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9988. + _LT_TAGVAR(always_export_symbols, $1)=no
  9989. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9990. +
  9991. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9992. + _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'
  9993. + # If the export-symbols file already is a .def file (1st line
  9994. + # is EXPORTS), use it as is; otherwise, prepend...
  9995. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9996. + cp $export_symbols $output_objdir/$soname.def;
  9997. + else
  9998. + echo EXPORTS > $output_objdir/$soname.def;
  9999. + cat $export_symbols >> $output_objdir/$soname.def;
  10000. + fi~
  10001. + $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'
  10002. + else
  10003. + _LT_TAGVAR(ld_shlibs, $1)=no
  10004. + fi
  10005. + ;;
  10006. + darwin* | rhapsody*)
  10007. + _LT_DARWIN_LINKER_FEATURES($1)
  10008. + ;;
  10009. +
  10010. + dgux*)
  10011. + case $cc_basename in
  10012. + ec++*)
  10013. + # FIXME: insert proper C++ library support
  10014. + _LT_TAGVAR(ld_shlibs, $1)=no
  10015. + ;;
  10016. + ghcx*)
  10017. + # Green Hills C++ Compiler
  10018. + # FIXME: insert proper C++ library support
  10019. + _LT_TAGVAR(ld_shlibs, $1)=no
  10020. + ;;
  10021. + *)
  10022. + # FIXME: insert proper C++ library support
  10023. + _LT_TAGVAR(ld_shlibs, $1)=no
  10024. + ;;
  10025. + esac
  10026. + ;;
  10027. +
  10028. + freebsd[[12]]*)
  10029. + # C++ shared libraries reported to be fairly broken before
  10030. + # switch to ELF
  10031. + _LT_TAGVAR(ld_shlibs, $1)=no
  10032. + ;;
  10033. +
  10034. + freebsd-elf*)
  10035. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10036. + ;;
  10037. +
  10038. + freebsd* | dragonfly*)
  10039. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10040. + # conventions
  10041. + _LT_TAGVAR(ld_shlibs, $1)=yes
  10042. + ;;
  10043. +
  10044. + gnu*)
  10045. + ;;
  10046. +
  10047. + hpux9*)
  10048. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10049. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10050. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10051. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10052. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  10053. + # but as the default
  10054. + # location of the library.
  10055. +
  10056. + case $cc_basename in
  10057. + CC*)
  10058. + # FIXME: insert proper C++ library support
  10059. + _LT_TAGVAR(ld_shlibs, $1)=no
  10060. + ;;
  10061. + aCC*)
  10062. + _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'
  10063. + # Commands to make compiler produce verbose output that lists
  10064. + # what "hidden" libraries, object files and flags are used when
  10065. + # linking a shared library.
  10066. + #
  10067. + # There doesn't appear to be a way to prevent this compiler from
  10068. + # explicitly linking system object files so we need to strip them
  10069. + # from the output so that they don't get included in the library
  10070. + # dependencies.
  10071. + 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'
  10072. + ;;
  10073. + *)
  10074. + if test "$GXX" = yes; then
  10075. + _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'
  10076. + else
  10077. + # FIXME: insert proper C++ library support
  10078. + _LT_TAGVAR(ld_shlibs, $1)=no
  10079. + fi
  10080. + ;;
  10081. + esac
  10082. + ;;
  10083. +
  10084. + hpux10*|hpux11*)
  10085. + if test $with_gnu_ld = no; then
  10086. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10087. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10088. +
  10089. + case $host_cpu in
  10090. + hppa*64*|ia64*)
  10091. + ;;
  10092. + *)
  10093. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10094. + ;;
  10095. + esac
  10096. + fi
  10097. + case $host_cpu in
  10098. + hppa*64*|ia64*)
  10099. + _LT_TAGVAR(hardcode_direct, $1)=no
  10100. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10101. + ;;
  10102. + *)
  10103. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10104. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10105. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  10106. + # but as the default
  10107. + # location of the library.
  10108. + ;;
  10109. + esac
  10110. +
  10111. + case $cc_basename in
  10112. + CC*)
  10113. + # FIXME: insert proper C++ library support
  10114. + _LT_TAGVAR(ld_shlibs, $1)=no
  10115. + ;;
  10116. + aCC*)
  10117. + case $host_cpu in
  10118. + hppa*64*)
  10119. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10120. + ;;
  10121. + ia64*)
  10122. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10123. + ;;
  10124. + *)
  10125. + _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'
  10126. + ;;
  10127. + esac
  10128. + # Commands to make compiler produce verbose output that lists
  10129. + # what "hidden" libraries, object files and flags are used when
  10130. + # linking a shared library.
  10131. + #
  10132. + # There doesn't appear to be a way to prevent this compiler from
  10133. + # explicitly linking system object files so we need to strip them
  10134. + # from the output so that they don't get included in the library
  10135. + # dependencies.
  10136. + 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'
  10137. + ;;
  10138. + *)
  10139. + if test "$GXX" = yes; then
  10140. + if test $with_gnu_ld = no; then
  10141. + case $host_cpu in
  10142. + hppa*64*)
  10143. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10144. + ;;
  10145. + ia64*)
  10146. + _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'
  10147. + ;;
  10148. + *)
  10149. + _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'
  10150. + ;;
  10151. + esac
  10152. + fi
  10153. + else
  10154. + # FIXME: insert proper C++ library support
  10155. + _LT_TAGVAR(ld_shlibs, $1)=no
  10156. + fi
  10157. + ;;
  10158. + esac
  10159. + ;;
  10160. +
  10161. + interix[[3-9]]*)
  10162. + _LT_TAGVAR(hardcode_direct, $1)=no
  10163. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10164. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10165. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10166. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10167. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  10168. + # default) and relocated if they conflict, which is a slow very memory
  10169. + # consuming and fragmenting process. To avoid this, we pick a random,
  10170. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10171. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10172. + _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'
  10173. + _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'
  10174. + ;;
  10175. + irix5* | irix6*)
  10176. + case $cc_basename in
  10177. + CC*)
  10178. + # SGI C++
  10179. + _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'
  10180. +
  10181. + # Archives containing C++ object files must be created using
  10182. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10183. + # necessary to make sure instantiated templates are included
  10184. + # in the archive.
  10185. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10186. + ;;
  10187. + *)
  10188. + if test "$GXX" = yes; then
  10189. + if test "$with_gnu_ld" = no; then
  10190. + _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'
  10191. + else
  10192. + _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'
  10193. + fi
  10194. + fi
  10195. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10196. + ;;
  10197. + esac
  10198. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10199. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10200. + _LT_TAGVAR(inherit_rpath, $1)=yes
  10201. + ;;
  10202. +
  10203. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10204. + case $cc_basename in
  10205. + KCC*)
  10206. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  10207. +
  10208. + # KCC will only create a shared library if the output file
  10209. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10210. + # to its proper name (with version) after linking.
  10211. + _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'
  10212. + _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'
  10213. + # Commands to make compiler produce verbose output that lists
  10214. + # what "hidden" libraries, object files and flags are used when
  10215. + # linking a shared library.
  10216. + #
  10217. + # There doesn't appear to be a way to prevent this compiler from
  10218. + # explicitly linking system object files so we need to strip them
  10219. + # from the output so that they don't get included in the library
  10220. + # dependencies.
  10221. + 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'
  10222. +
  10223. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10224. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10225. +
  10226. + # Archives containing C++ object files must be created using
  10227. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10228. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  10229. + ;;
  10230. + icpc* | ecpc* )
  10231. + # Intel C++
  10232. + with_gnu_ld=yes
  10233. + # version 8.0 and above of icpc choke on multiply defined symbols
  10234. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  10235. + # earlier do not add the objects themselves.
  10236. + case `$CC -V 2>&1` in
  10237. + *"Version 7."*)
  10238. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10239. + _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'
  10240. + ;;
  10241. + *) # Version 8.0 or newer
  10242. + tmp_idyn=
  10243. + case $host_cpu in
  10244. + ia64*) tmp_idyn=' -i_dynamic';;
  10245. + esac
  10246. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10247. + _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'
  10248. + ;;
  10249. + esac
  10250. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10251. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10252. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10253. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10254. + ;;
  10255. + pgCC* | pgcpp*)
  10256. + # Portland Group C++ compiler
  10257. + case `$CC -V` in
  10258. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  10259. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  10260. + rm -rf $tpldir~
  10261. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10262. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10263. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  10264. + rm -rf $tpldir~
  10265. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10266. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10267. + $RANLIB $oldlib'
  10268. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  10269. + rm -rf $tpldir~
  10270. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10271. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10272. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  10273. + rm -rf $tpldir~
  10274. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10275. + $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'
  10276. + ;;
  10277. + *) # Version 6 will use weak symbols
  10278. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10279. + _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'
  10280. + ;;
  10281. + esac
  10282. +
  10283. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  10284. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10285. + _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'
  10286. + ;;
  10287. + cxx*)
  10288. + # Compaq C++
  10289. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10290. + _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'
  10291. +
  10292. + runpath_var=LD_RUN_PATH
  10293. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10294. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10295. +
  10296. + # Commands to make compiler produce verbose output that lists
  10297. + # what "hidden" libraries, object files and flags are used when
  10298. + # linking a shared library.
  10299. + #
  10300. + # There doesn't appear to be a way to prevent this compiler from
  10301. + # explicitly linking system object files so we need to strip them
  10302. + # from the output so that they don't get included in the library
  10303. + # dependencies.
  10304. + 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'
  10305. + ;;
  10306. + xl*)
  10307. + # IBM XL 8.0 on PPC, with GNU ld
  10308. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10309. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10310. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10311. + if test "x$supports_anon_versioning" = xyes; then
  10312. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  10313. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10314. + echo "local: *; };" >> $output_objdir/$libname.ver~
  10315. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10316. + fi
  10317. + ;;
  10318. + *)
  10319. + case `$CC -V 2>&1 | sed 5q` in
  10320. + *Sun\ C*)
  10321. + # Sun C++ 5.9
  10322. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10323. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10324. + _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'
  10325. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10326. + _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'
  10327. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  10328. +
  10329. + # Not sure whether something based on
  10330. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10331. + # would be better.
  10332. + output_verbose_link_cmd='echo'
  10333. +
  10334. + # Archives containing C++ object files must be created using
  10335. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10336. + # necessary to make sure instantiated templates are included
  10337. + # in the archive.
  10338. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10339. + ;;
  10340. + esac
  10341. + ;;
  10342. + esac
  10343. + ;;
  10344. +
  10345. + lynxos*)
  10346. + # FIXME: insert proper C++ library support
  10347. + _LT_TAGVAR(ld_shlibs, $1)=no
  10348. + ;;
  10349. +
  10350. + m88k*)
  10351. + # FIXME: insert proper C++ library support
  10352. + _LT_TAGVAR(ld_shlibs, $1)=no
  10353. + ;;
  10354. +
  10355. + mvs*)
  10356. + case $cc_basename in
  10357. + cxx*)
  10358. + # FIXME: insert proper C++ library support
  10359. + _LT_TAGVAR(ld_shlibs, $1)=no
  10360. + ;;
  10361. + *)
  10362. + # FIXME: insert proper C++ library support
  10363. + _LT_TAGVAR(ld_shlibs, $1)=no
  10364. + ;;
  10365. + esac
  10366. + ;;
  10367. +
  10368. + netbsd*)
  10369. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10370. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10371. + wlarc=
  10372. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10373. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10374. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10375. + fi
  10376. + # Workaround some broken pre-1.5 toolchains
  10377. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10378. + ;;
  10379. +
  10380. + *nto* | *qnx*)
  10381. + _LT_TAGVAR(ld_shlibs, $1)=yes
  10382. + ;;
  10383. +
  10384. + openbsd2*)
  10385. + # C++ shared libraries are fairly broken
  10386. + _LT_TAGVAR(ld_shlibs, $1)=no
  10387. + ;;
  10388. +
  10389. + openbsd*)
  10390. + if test -f /usr/libexec/ld.so; then
  10391. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10392. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10393. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10394. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10395. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10396. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10397. + _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'
  10398. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10399. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10400. + fi
  10401. + output_verbose_link_cmd=echo
  10402. + else
  10403. + _LT_TAGVAR(ld_shlibs, $1)=no
  10404. + fi
  10405. + ;;
  10406. +
  10407. + osf3* | osf4* | osf5*)
  10408. + case $cc_basename in
  10409. + KCC*)
  10410. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  10411. +
  10412. + # KCC will only create a shared library if the output file
  10413. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10414. + # to its proper name (with version) after linking.
  10415. + _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'
  10416. +
  10417. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10418. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10419. +
  10420. + # Archives containing C++ object files must be created using
  10421. + # the KAI C++ compiler.
  10422. + case $host in
  10423. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10424. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10425. + esac
  10426. + ;;
  10427. + RCC*)
  10428. + # Rational C++ 2.4.1
  10429. + # FIXME: insert proper C++ library support
  10430. + _LT_TAGVAR(ld_shlibs, $1)=no
  10431. + ;;
  10432. + cxx*)
  10433. + case $host in
  10434. + osf3*)
  10435. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10436. + _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'
  10437. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10438. + ;;
  10439. + *)
  10440. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10441. + _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'
  10442. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10443. + echo "-hidden">> $lib.exp~
  10444. + $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~
  10445. + $RM $lib.exp'
  10446. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10447. + ;;
  10448. + esac
  10449. +
  10450. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10451. +
  10452. + # Commands to make compiler produce verbose output that lists
  10453. + # what "hidden" libraries, object files and flags are used when
  10454. + # linking a shared library.
  10455. + #
  10456. + # There doesn't appear to be a way to prevent this compiler from
  10457. + # explicitly linking system object files so we need to strip them
  10458. + # from the output so that they don't get included in the library
  10459. + # dependencies.
  10460. + 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'
  10461. + ;;
  10462. + *)
  10463. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10464. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10465. + case $host in
  10466. + osf3*)
  10467. + _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'
  10468. + ;;
  10469. + *)
  10470. + _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'
  10471. + ;;
  10472. + esac
  10473. +
  10474. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10475. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10476. +
  10477. + # Commands to make compiler produce verbose output that lists
  10478. + # what "hidden" libraries, object files and flags are used when
  10479. + # linking a shared library.
  10480. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10481. +
  10482. + else
  10483. + # FIXME: insert proper C++ library support
  10484. + _LT_TAGVAR(ld_shlibs, $1)=no
  10485. + fi
  10486. + ;;
  10487. + esac
  10488. + ;;
  10489. +
  10490. + psos*)
  10491. + # FIXME: insert proper C++ library support
  10492. + _LT_TAGVAR(ld_shlibs, $1)=no
  10493. + ;;
  10494. +
  10495. + sunos4*)
  10496. + case $cc_basename in
  10497. + CC*)
  10498. + # Sun C++ 4.x
  10499. + # FIXME: insert proper C++ library support
  10500. + _LT_TAGVAR(ld_shlibs, $1)=no
  10501. + ;;
  10502. + lcc*)
  10503. + # Lucid
  10504. + # FIXME: insert proper C++ library support
  10505. + _LT_TAGVAR(ld_shlibs, $1)=no
  10506. + ;;
  10507. + *)
  10508. + # FIXME: insert proper C++ library support
  10509. + _LT_TAGVAR(ld_shlibs, $1)=no
  10510. + ;;
  10511. + esac
  10512. + ;;
  10513. +
  10514. + solaris*)
  10515. + case $cc_basename in
  10516. + CC*)
  10517. + # Sun C++ 4.2, 5.x and Centerline C++
  10518. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10519. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10520. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10521. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10522. + $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'
  10523. +
  10524. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10525. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10526. + case $host_os in
  10527. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10528. + *)
  10529. + # The compiler driver will combine and reorder linker options,
  10530. + # but understands `-z linker_flag'.
  10531. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  10532. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10533. + ;;
  10534. + esac
  10535. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10536. +
  10537. + output_verbose_link_cmd='echo'
  10538. +
  10539. + # Archives containing C++ object files must be created using
  10540. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10541. + # necessary to make sure instantiated templates are included
  10542. + # in the archive.
  10543. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10544. + ;;
  10545. + gcx*)
  10546. + # Green Hills C++ Compiler
  10547. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10548. +
  10549. + # The C++ compiler must be used to create the archive.
  10550. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10551. + ;;
  10552. + *)
  10553. + # GNU C++ compiler with Solaris linker
  10554. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10555. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10556. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10557. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10558. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10559. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10560. +
  10561. + # Commands to make compiler produce verbose output that lists
  10562. + # what "hidden" libraries, object files and flags are used when
  10563. + # linking a shared library.
  10564. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10565. + else
  10566. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10567. + # platform.
  10568. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10569. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10570. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10571. +
  10572. + # Commands to make compiler produce verbose output that lists
  10573. + # what "hidden" libraries, object files and flags are used when
  10574. + # linking a shared library.
  10575. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10576. + fi
  10577. +
  10578. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10579. + case $host_os in
  10580. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10581. + *)
  10582. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10583. + ;;
  10584. + esac
  10585. + fi
  10586. + ;;
  10587. + esac
  10588. + ;;
  10589. +
  10590. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10591. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10592. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10593. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10594. + runpath_var='LD_RUN_PATH'
  10595. +
  10596. + case $cc_basename in
  10597. + CC*)
  10598. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10599. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10600. + ;;
  10601. + *)
  10602. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10603. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10604. + ;;
  10605. + esac
  10606. + ;;
  10607. +
  10608. + sysv5* | sco3.2v5* | sco5v6*)
  10609. + # Note: We can NOT use -z defs as we might desire, because we do not
  10610. + # link with -lc, and that would cause any symbols used from libc to
  10611. + # always be unresolved, which means just about no library would
  10612. + # ever link correctly. If we're not using GNU ld we use -z text
  10613. + # though, which does catch some bad symbols but isn't as heavy-handed
  10614. + # as -z defs.
  10615. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10616. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10617. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10618. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10619. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10620. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10621. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10622. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10623. + runpath_var='LD_RUN_PATH'
  10624. +
  10625. + case $cc_basename in
  10626. + CC*)
  10627. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10628. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10629. + ;;
  10630. + *)
  10631. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10632. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10633. + ;;
  10634. + esac
  10635. + ;;
  10636. +
  10637. + tandem*)
  10638. + case $cc_basename in
  10639. + NCC*)
  10640. + # NonStop-UX NCC 3.20
  10641. + # FIXME: insert proper C++ library support
  10642. + _LT_TAGVAR(ld_shlibs, $1)=no
  10643. + ;;
  10644. + *)
  10645. + # FIXME: insert proper C++ library support
  10646. + _LT_TAGVAR(ld_shlibs, $1)=no
  10647. + ;;
  10648. + esac
  10649. + ;;
  10650. +
  10651. + vxworks*)
  10652. + # FIXME: insert proper C++ library support
  10653. + _LT_TAGVAR(ld_shlibs, $1)=no
  10654. + ;;
  10655. +
  10656. + *)
  10657. + # FIXME: insert proper C++ library support
  10658. + _LT_TAGVAR(ld_shlibs, $1)=no
  10659. + ;;
  10660. + esac
  10661. +
  10662. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10663. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10664. +
  10665. + _LT_TAGVAR(GCC, $1)="$GXX"
  10666. + _LT_TAGVAR(LD, $1)="$LD"
  10667. +
  10668. + ## CAVEAT EMPTOR:
  10669. + ## There is no encapsulation within the following macros, do not change
  10670. + ## the running order or otherwise move them around unless you know exactly
  10671. + ## what you are doing...
  10672. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10673. + _LT_COMPILER_PIC($1)
  10674. + _LT_COMPILER_C_O($1)
  10675. + _LT_COMPILER_FILE_LOCKS($1)
  10676. + _LT_LINKER_SHLIBS($1)
  10677. + _LT_SYS_DYNAMIC_LINKER($1)
  10678. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10679. +
  10680. + _LT_CONFIG($1)
  10681. + fi # test -n "$compiler"
  10682. +
  10683. + CC=$lt_save_CC
  10684. + LDCXX=$LD
  10685. + LD=$lt_save_LD
  10686. + GCC=$lt_save_GCC
  10687. + with_gnu_ld=$lt_save_with_gnu_ld
  10688. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10689. + lt_cv_path_LD=$lt_save_path_LD
  10690. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10691. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10692. +fi # test "$_lt_caught_CXX_error" != yes
  10693. +
  10694. +AC_LANG_POP
  10695. +])# _LT_LANG_CXX_CONFIG
  10696. +
  10697. +
  10698. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10699. +# ---------------------------------
  10700. +# Figure out "hidden" library dependencies from verbose
  10701. +# compiler output when linking a shared library.
  10702. +# Parse the compiler output and extract the necessary
  10703. +# objects, libraries and library flags.
  10704. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10705. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10706. +# Dependencies to place before and after the object being linked:
  10707. +_LT_TAGVAR(predep_objects, $1)=
  10708. +_LT_TAGVAR(postdep_objects, $1)=
  10709. +_LT_TAGVAR(predeps, $1)=
  10710. +_LT_TAGVAR(postdeps, $1)=
  10711. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10712. +
  10713. +dnl we can't use the lt_simple_compile_test_code here,
  10714. +dnl because it contains code intended for an executable,
  10715. +dnl not a library. It's possible we should let each
  10716. +dnl tag define a new lt_????_link_test_code variable,
  10717. +dnl but it's only used here...
  10718. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10719. +int a;
  10720. +void foo (void) { a = 0; }
  10721. +_LT_EOF
  10722. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10723. +class Foo
  10724. +{
  10725. +public:
  10726. + Foo (void) { a = 0; }
  10727. +private:
  10728. + int a;
  10729. +};
  10730. +_LT_EOF
  10731. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10732. + subroutine foo
  10733. + implicit none
  10734. + integer*4 a
  10735. + a=0
  10736. + return
  10737. + end
  10738. +_LT_EOF
  10739. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10740. + subroutine foo
  10741. + implicit none
  10742. + integer a
  10743. + a=0
  10744. + return
  10745. + end
  10746. +_LT_EOF
  10747. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10748. +public class foo {
  10749. + private int a;
  10750. + public void bar (void) {
  10751. + a = 0;
  10752. + }
  10753. +};
  10754. +_LT_EOF
  10755. +])
  10756. +dnl Parse the compiler output and extract the necessary
  10757. +dnl objects, libraries and library flags.
  10758. +if AC_TRY_EVAL(ac_compile); then
  10759. + # Parse the compiler output and extract the necessary
  10760. + # objects, libraries and library flags.
  10761. +
  10762. + # Sentinel used to keep track of whether or not we are before
  10763. + # the conftest object file.
  10764. + pre_test_object_deps_done=no
  10765. +
  10766. + for p in `eval "$output_verbose_link_cmd"`; do
  10767. + case $p in
  10768. +
  10769. + -L* | -R* | -l*)
  10770. + # Some compilers place space between "-{L,R}" and the path.
  10771. + # Remove the space.
  10772. + if test $p = "-L" ||
  10773. + test $p = "-R"; then
  10774. + prev=$p
  10775. + continue
  10776. + else
  10777. + prev=
  10778. + fi
  10779. +
  10780. + if test "$pre_test_object_deps_done" = no; then
  10781. + case $p in
  10782. + -L* | -R*)
  10783. + # Internal compiler library paths should come after those
  10784. + # provided the user. The postdeps already come after the
  10785. + # user supplied libs so there is no need to process them.
  10786. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10787. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10788. + else
  10789. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10790. + fi
  10791. + ;;
  10792. + # The "-l" case would never come before the object being
  10793. + # linked, so don't bother handling this case.
  10794. + esac
  10795. + else
  10796. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10797. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10798. + else
  10799. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10800. + fi
  10801. + fi
  10802. + ;;
  10803. +
  10804. + *.$objext)
  10805. + # This assumes that the test object file only shows up
  10806. + # once in the compiler output.
  10807. + if test "$p" = "conftest.$objext"; then
  10808. + pre_test_object_deps_done=yes
  10809. + continue
  10810. + fi
  10811. +
  10812. + if test "$pre_test_object_deps_done" = no; then
  10813. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10814. + _LT_TAGVAR(predep_objects, $1)="$p"
  10815. + else
  10816. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10817. + fi
  10818. + else
  10819. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10820. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10821. + else
  10822. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10823. + fi
  10824. + fi
  10825. + ;;
  10826. +
  10827. + *) ;; # Ignore the rest.
  10828. +
  10829. + esac
  10830. + done
  10831. +
  10832. + # Clean up.
  10833. + rm -f a.out a.exe
  10834. +else
  10835. + echo "libtool.m4: error: problem compiling $1 test program"
  10836. +fi
  10837. +
  10838. +$RM -f confest.$objext
  10839. +
  10840. +# PORTME: override above test on systems where it is broken
  10841. +m4_if([$1], [CXX],
  10842. +[case $host_os in
  10843. +interix[[3-9]]*)
  10844. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10845. + # hack all around it, let's just trust "g++" to DTRT.
  10846. + _LT_TAGVAR(predep_objects,$1)=
  10847. + _LT_TAGVAR(postdep_objects,$1)=
  10848. + _LT_TAGVAR(postdeps,$1)=
  10849. + ;;
  10850. +
  10851. +linux*)
  10852. + case `$CC -V 2>&1 | sed 5q` in
  10853. + *Sun\ C*)
  10854. + # Sun C++ 5.9
  10855. +
  10856. + # The more standards-conforming stlport4 library is
  10857. + # incompatible with the Cstd library. Avoid specifying
  10858. + # it if it's in CXXFLAGS. Ignore libCrun as
  10859. + # -library=stlport4 depends on it.
  10860. + case " $CXX $CXXFLAGS " in
  10861. + *" -library=stlport4 "*)
  10862. + solaris_use_stlport4=yes
  10863. + ;;
  10864. + esac
  10865. +
  10866. + if test "$solaris_use_stlport4" != yes; then
  10867. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10868. + fi
  10869. + ;;
  10870. + esac
  10871. + ;;
  10872. +
  10873. +solaris*)
  10874. + case $cc_basename in
  10875. + CC*)
  10876. + # The more standards-conforming stlport4 library is
  10877. + # incompatible with the Cstd library. Avoid specifying
  10878. + # it if it's in CXXFLAGS. Ignore libCrun as
  10879. + # -library=stlport4 depends on it.
  10880. + case " $CXX $CXXFLAGS " in
  10881. + *" -library=stlport4 "*)
  10882. + solaris_use_stlport4=yes
  10883. + ;;
  10884. + esac
  10885. +
  10886. + # Adding this requires a known-good setup of shared libraries for
  10887. + # Sun compiler versions before 5.6, else PIC objects from an old
  10888. + # archive will be linked into the output, leading to subtle bugs.
  10889. + if test "$solaris_use_stlport4" != yes; then
  10890. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10891. + fi
  10892. + ;;
  10893. + esac
  10894. + ;;
  10895. +esac
  10896. +])
  10897. +
  10898. +case " $_LT_TAGVAR(postdeps, $1) " in
  10899. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  10900. +esac
  10901. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  10902. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  10903. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10904. +fi
  10905. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  10906. + [The directories searched by this compiler when creating a shared library])
  10907. +_LT_TAGDECL([], [predep_objects], [1],
  10908. + [Dependencies to place before and after the objects being linked to
  10909. + create a shared library])
  10910. +_LT_TAGDECL([], [postdep_objects], [1])
  10911. +_LT_TAGDECL([], [predeps], [1])
  10912. +_LT_TAGDECL([], [postdeps], [1])
  10913. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  10914. + [The library search path used internally by the compiler when linking
  10915. + a shared library])
  10916. +])# _LT_SYS_HIDDEN_LIBDEPS
  10917. +
  10918. +
  10919. +# _LT_PROG_F77
  10920. +# ------------
  10921. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  10922. +# if there is no fortran compiler, we have our own version here.
  10923. +m4_defun([_LT_PROG_F77],
  10924. +[
  10925. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  10926. +AC_PROG_F77
  10927. +if test -z "$F77" || test "X$F77" = "Xno"; then
  10928. + _lt_disable_F77=yes
  10929. +fi
  10930. +popdef([AC_MSG_ERROR])
  10931. +])# _LT_PROG_F77
  10932. +
  10933. +dnl aclocal-1.4 backwards compatibility:
  10934. +dnl AC_DEFUN([_LT_PROG_F77], [])
  10935. +
  10936. +
  10937. +# _LT_LANG_F77_CONFIG([TAG])
  10938. +# --------------------------
  10939. +# Ensure that the configuration variables for a Fortran 77 compiler are
  10940. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10941. +# to write the compiler configuration to `libtool'.
  10942. +m4_defun([_LT_LANG_F77_CONFIG],
  10943. +[AC_REQUIRE([_LT_PROG_F77])dnl
  10944. +AC_LANG_PUSH(Fortran 77)
  10945. +
  10946. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10947. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10948. +_LT_TAGVAR(always_export_symbols, $1)=no
  10949. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10950. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10951. +_LT_TAGVAR(hardcode_direct, $1)=no
  10952. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10953. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10954. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10955. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10956. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10957. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10958. +_LT_TAGVAR(inherit_rpath, $1)=no
  10959. +_LT_TAGVAR(module_cmds, $1)=
  10960. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10961. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10962. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10963. +_LT_TAGVAR(no_undefined_flag, $1)=
  10964. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10965. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10966. +
  10967. +# Source file extension for f77 test sources.
  10968. +ac_ext=f
  10969. +
  10970. +# Object file extension for compiled f77 test sources.
  10971. +objext=o
  10972. +_LT_TAGVAR(objext, $1)=$objext
  10973. +
  10974. +# No sense in running all these tests if we already determined that
  10975. +# the F77 compiler isn't working. Some variables (like enable_shared)
  10976. +# are currently assumed to apply to all compilers on this platform,
  10977. +# and will be corrupted by setting them based on a non-working compiler.
  10978. +if test "$_lt_disable_F77" != yes; then
  10979. + # Code to be used in simple compile tests
  10980. + lt_simple_compile_test_code="\
  10981. + subroutine t
  10982. + return
  10983. + end
  10984. +"
  10985. +
  10986. + # Code to be used in simple link tests
  10987. + lt_simple_link_test_code="\
  10988. + program t
  10989. + end
  10990. +"
  10991. +
  10992. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10993. + _LT_TAG_COMPILER
  10994. +
  10995. + # save warnings/boilerplate of simple test code
  10996. + _LT_COMPILER_BOILERPLATE
  10997. + _LT_LINKER_BOILERPLATE
  10998. +
  10999. + # Allow CC to be a program name with arguments.
  11000. + lt_save_CC="$CC"
  11001. + lt_save_GCC=$GCC
  11002. + CC=${F77-"f77"}
  11003. + compiler=$CC
  11004. + _LT_TAGVAR(compiler, $1)=$CC
  11005. + _LT_CC_BASENAME([$compiler])
  11006. + GCC=$G77
  11007. + if test -n "$compiler"; then
  11008. + AC_MSG_CHECKING([if libtool supports shared libraries])
  11009. + AC_MSG_RESULT([$can_build_shared])
  11010. +
  11011. + AC_MSG_CHECKING([whether to build shared libraries])
  11012. + test "$can_build_shared" = "no" && enable_shared=no
  11013. +
  11014. + # On AIX, shared libraries and static libraries use the same namespace, and
  11015. + # are all built from PIC.
  11016. + case $host_os in
  11017. + aix3*)
  11018. + test "$enable_shared" = yes && enable_static=no
  11019. + if test -n "$RANLIB"; then
  11020. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11021. + postinstall_cmds='$RANLIB $lib'
  11022. + fi
  11023. + ;;
  11024. + aix[[4-9]]*)
  11025. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11026. + test "$enable_shared" = yes && enable_static=no
  11027. + fi
  11028. + ;;
  11029. + esac
  11030. + AC_MSG_RESULT([$enable_shared])
  11031. +
  11032. + AC_MSG_CHECKING([whether to build static libraries])
  11033. + # Make sure either enable_shared or enable_static is yes.
  11034. + test "$enable_shared" = yes || enable_static=yes
  11035. + AC_MSG_RESULT([$enable_static])
  11036. +
  11037. + _LT_TAGVAR(GCC, $1)="$G77"
  11038. + _LT_TAGVAR(LD, $1)="$LD"
  11039. +
  11040. + ## CAVEAT EMPTOR:
  11041. + ## There is no encapsulation within the following macros, do not change
  11042. + ## the running order or otherwise move them around unless you know exactly
  11043. + ## what you are doing...
  11044. + _LT_COMPILER_PIC($1)
  11045. + _LT_COMPILER_C_O($1)
  11046. + _LT_COMPILER_FILE_LOCKS($1)
  11047. + _LT_LINKER_SHLIBS($1)
  11048. + _LT_SYS_DYNAMIC_LINKER($1)
  11049. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11050. +
  11051. + _LT_CONFIG($1)
  11052. + fi # test -n "$compiler"
  11053. +
  11054. + GCC=$lt_save_GCC
  11055. + CC="$lt_save_CC"
  11056. +fi # test "$_lt_disable_F77" != yes
  11057. +
  11058. +AC_LANG_POP
  11059. +])# _LT_LANG_F77_CONFIG
  11060. +
  11061. +
  11062. +# _LT_PROG_FC
  11063. +# -----------
  11064. +# Since AC_PROG_FC is broken, in that it returns the empty string
  11065. +# if there is no fortran compiler, we have our own version here.
  11066. +m4_defun([_LT_PROG_FC],
  11067. +[
  11068. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  11069. +AC_PROG_FC
  11070. +if test -z "$FC" || test "X$FC" = "Xno"; then
  11071. + _lt_disable_FC=yes
  11072. +fi
  11073. +popdef([AC_MSG_ERROR])
  11074. +])# _LT_PROG_FC
  11075. +
  11076. +dnl aclocal-1.4 backwards compatibility:
  11077. +dnl AC_DEFUN([_LT_PROG_FC], [])
  11078. +
  11079. +
  11080. +# _LT_LANG_FC_CONFIG([TAG])
  11081. +# -------------------------
  11082. +# Ensure that the configuration variables for a Fortran compiler are
  11083. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  11084. +# to write the compiler configuration to `libtool'.
  11085. +m4_defun([_LT_LANG_FC_CONFIG],
  11086. +[AC_REQUIRE([_LT_PROG_FC])dnl
  11087. +AC_LANG_PUSH(Fortran)
  11088. +
  11089. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11090. +_LT_TAGVAR(allow_undefined_flag, $1)=
  11091. +_LT_TAGVAR(always_export_symbols, $1)=no
  11092. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  11093. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  11094. +_LT_TAGVAR(hardcode_direct, $1)=no
  11095. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  11096. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11097. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11098. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  11099. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  11100. +_LT_TAGVAR(hardcode_automatic, $1)=no
  11101. +_LT_TAGVAR(inherit_rpath, $1)=no
  11102. +_LT_TAGVAR(module_cmds, $1)=
  11103. +_LT_TAGVAR(module_expsym_cmds, $1)=
  11104. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  11105. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11106. +_LT_TAGVAR(no_undefined_flag, $1)=
  11107. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  11108. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11109. +
  11110. +# Source file extension for fc test sources.
  11111. +ac_ext=${ac_fc_srcext-f}
  11112. +
  11113. +# Object file extension for compiled fc test sources.
  11114. +objext=o
  11115. +_LT_TAGVAR(objext, $1)=$objext
  11116. +
  11117. +# No sense in running all these tests if we already determined that
  11118. +# the FC compiler isn't working. Some variables (like enable_shared)
  11119. +# are currently assumed to apply to all compilers on this platform,
  11120. +# and will be corrupted by setting them based on a non-working compiler.
  11121. +if test "$_lt_disable_FC" != yes; then
  11122. + # Code to be used in simple compile tests
  11123. + lt_simple_compile_test_code="\
  11124. + subroutine t
  11125. + return
  11126. + end
  11127. +"
  11128. +
  11129. + # Code to be used in simple link tests
  11130. + lt_simple_link_test_code="\
  11131. + program t
  11132. + end
  11133. +"
  11134. +
  11135. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11136. + _LT_TAG_COMPILER
  11137. +
  11138. + # save warnings/boilerplate of simple test code
  11139. + _LT_COMPILER_BOILERPLATE
  11140. + _LT_LINKER_BOILERPLATE
  11141. +
  11142. + # Allow CC to be a program name with arguments.
  11143. + lt_save_CC="$CC"
  11144. + lt_save_GCC=$GCC
  11145. + CC=${FC-"f95"}
  11146. + compiler=$CC
  11147. + GCC=$ac_cv_fc_compiler_gnu
  11148. +
  11149. + _LT_TAGVAR(compiler, $1)=$CC
  11150. + _LT_CC_BASENAME([$compiler])
  11151. +
  11152. + if test -n "$compiler"; then
  11153. + AC_MSG_CHECKING([if libtool supports shared libraries])
  11154. + AC_MSG_RESULT([$can_build_shared])
  11155. +
  11156. + AC_MSG_CHECKING([whether to build shared libraries])
  11157. + test "$can_build_shared" = "no" && enable_shared=no
  11158. +
  11159. + # On AIX, shared libraries and static libraries use the same namespace, and
  11160. + # are all built from PIC.
  11161. + case $host_os in
  11162. + aix3*)
  11163. + test "$enable_shared" = yes && enable_static=no
  11164. + if test -n "$RANLIB"; then
  11165. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11166. + postinstall_cmds='$RANLIB $lib'
  11167. + fi
  11168. + ;;
  11169. + aix[[4-9]]*)
  11170. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11171. + test "$enable_shared" = yes && enable_static=no
  11172. + fi
  11173. + ;;
  11174. + esac
  11175. + AC_MSG_RESULT([$enable_shared])
  11176. +
  11177. + AC_MSG_CHECKING([whether to build static libraries])
  11178. + # Make sure either enable_shared or enable_static is yes.
  11179. + test "$enable_shared" = yes || enable_static=yes
  11180. + AC_MSG_RESULT([$enable_static])
  11181. +
  11182. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  11183. + _LT_TAGVAR(LD, $1)="$LD"
  11184. +
  11185. + ## CAVEAT EMPTOR:
  11186. + ## There is no encapsulation within the following macros, do not change
  11187. + ## the running order or otherwise move them around unless you know exactly
  11188. + ## what you are doing...
  11189. + _LT_SYS_HIDDEN_LIBDEPS($1)
  11190. + _LT_COMPILER_PIC($1)
  11191. + _LT_COMPILER_C_O($1)
  11192. + _LT_COMPILER_FILE_LOCKS($1)
  11193. + _LT_LINKER_SHLIBS($1)
  11194. + _LT_SYS_DYNAMIC_LINKER($1)
  11195. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11196. +
  11197. + _LT_CONFIG($1)
  11198. + fi # test -n "$compiler"
  11199. +
  11200. + GCC=$lt_save_GCC
  11201. + CC="$lt_save_CC"
  11202. +fi # test "$_lt_disable_FC" != yes
  11203. +
  11204. +AC_LANG_POP
  11205. +])# _LT_LANG_FC_CONFIG
  11206. +
  11207. +
  11208. +# _LT_LANG_GCJ_CONFIG([TAG])
  11209. +# --------------------------
  11210. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  11211. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11212. +# to write the compiler configuration to `libtool'.
  11213. +m4_defun([_LT_LANG_GCJ_CONFIG],
  11214. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  11215. +AC_LANG_SAVE
  11216. +
  11217. +# Source file extension for Java test sources.
  11218. +ac_ext=java
  11219. +
  11220. +# Object file extension for compiled Java test sources.
  11221. +objext=o
  11222. +_LT_TAGVAR(objext, $1)=$objext
  11223. +
  11224. +# Code to be used in simple compile tests
  11225. +lt_simple_compile_test_code="class foo {}"
  11226. +
  11227. +# Code to be used in simple link tests
  11228. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  11229. +
  11230. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11231. +_LT_TAG_COMPILER
  11232. +
  11233. +# save warnings/boilerplate of simple test code
  11234. +_LT_COMPILER_BOILERPLATE
  11235. +_LT_LINKER_BOILERPLATE
  11236. +
  11237. +# Allow CC to be a program name with arguments.
  11238. +lt_save_CC="$CC"
  11239. +lt_save_GCC=$GCC
  11240. +GCC=yes
  11241. +CC=${GCJ-"gcj"}
  11242. +compiler=$CC
  11243. +_LT_TAGVAR(compiler, $1)=$CC
  11244. +_LT_TAGVAR(LD, $1)="$LD"
  11245. +_LT_CC_BASENAME([$compiler])
  11246. +
  11247. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  11248. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11249. +
  11250. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11251. +
  11252. +if test -n "$compiler"; then
  11253. + _LT_COMPILER_NO_RTTI($1)
  11254. + _LT_COMPILER_PIC($1)
  11255. + _LT_COMPILER_C_O($1)
  11256. + _LT_COMPILER_FILE_LOCKS($1)
  11257. + _LT_LINKER_SHLIBS($1)
  11258. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11259. +
  11260. + _LT_CONFIG($1)
  11261. +fi
  11262. - case $host_os in
  11263. - aix*)
  11264. - # All AIX code is PIC.
  11265. - if test "$host_cpu" = ia64; then
  11266. - # AIX 5 now supports IA64 processor
  11267. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11268. - fi
  11269. - ;;
  11270. +AC_LANG_RESTORE
  11271. - amigaos*)
  11272. - # FIXME: we need at least 68020 code to build shared libraries, but
  11273. - # adding the `-m68020' flag to GCC prevents building anything better,
  11274. - # like `-m68040'.
  11275. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  11276. - ;;
  11277. +GCC=$lt_save_GCC
  11278. +CC="$lt_save_CC"
  11279. +])# _LT_LANG_GCJ_CONFIG
  11280. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11281. - # PIC is the default for these OSes.
  11282. - ;;
  11283. - mingw* | cygwin* | pw32* | os2*)
  11284. - # This hack is so that the source file can tell whether it is being
  11285. - # built for inclusion in a dll (and should export symbols for example).
  11286. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11287. - # (--disable-auto-import) libraries
  11288. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  11289. - ;;
  11290. +# _LT_LANG_RC_CONFIG([TAG])
  11291. +# -------------------------
  11292. +# Ensure that the configuration variables for the Windows resource compiler
  11293. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11294. +# to write the compiler configuration to `libtool'.
  11295. +m4_defun([_LT_LANG_RC_CONFIG],
  11296. +[AC_REQUIRE([LT_PROG_RC])dnl
  11297. +AC_LANG_SAVE
  11298. - darwin* | rhapsody*)
  11299. - # PIC is the default on this platform
  11300. - # Common symbols not allowed in MH_DYLIB files
  11301. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  11302. - ;;
  11303. +# Source file extension for RC test sources.
  11304. +ac_ext=rc
  11305. - interix[[3-9]]*)
  11306. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11307. - # Instead, we relocate shared libraries at runtime.
  11308. - ;;
  11309. +# Object file extension for compiled RC test sources.
  11310. +objext=o
  11311. +_LT_TAGVAR(objext, $1)=$objext
  11312. - msdosdjgpp*)
  11313. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  11314. - # on systems that don't support them.
  11315. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11316. - enable_shared=no
  11317. - ;;
  11318. +# Code to be used in simple compile tests
  11319. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11320. - sysv4*MP*)
  11321. - if test -d /usr/nec; then
  11322. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  11323. - fi
  11324. - ;;
  11325. +# Code to be used in simple link tests
  11326. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  11327. - hpux*)
  11328. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11329. - # not for PA HP-UX.
  11330. - case $host_cpu in
  11331. - hppa*64*|ia64*)
  11332. - # +Z the default
  11333. - ;;
  11334. - *)
  11335. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  11336. - ;;
  11337. - esac
  11338. - ;;
  11339. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11340. +_LT_TAG_COMPILER
  11341. - *)
  11342. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  11343. - ;;
  11344. - esac
  11345. - else
  11346. - # PORTME Check for flag to pass linker flags through the system compiler.
  11347. - case $host_os in
  11348. - aix*)
  11349. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11350. - if test "$host_cpu" = ia64; then
  11351. - # AIX 5 now supports IA64 processor
  11352. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11353. - else
  11354. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  11355. - fi
  11356. - ;;
  11357. - darwin*)
  11358. - # PIC is the default on this platform
  11359. - # Common symbols not allowed in MH_DYLIB files
  11360. - case $cc_basename in
  11361. - xlc*)
  11362. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  11363. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11364. - ;;
  11365. - esac
  11366. - ;;
  11367. +# save warnings/boilerplate of simple test code
  11368. +_LT_COMPILER_BOILERPLATE
  11369. +_LT_LINKER_BOILERPLATE
  11370. - mingw* | cygwin* | pw32* | os2*)
  11371. - # This hack is so that the source file can tell whether it is being
  11372. - # built for inclusion in a dll (and should export symbols for example).
  11373. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  11374. - ;;
  11375. +# Allow CC to be a program name with arguments.
  11376. +lt_save_CC="$CC"
  11377. +lt_save_GCC=$GCC
  11378. +GCC=
  11379. +CC=${RC-"windres"}
  11380. +compiler=$CC
  11381. +_LT_TAGVAR(compiler, $1)=$CC
  11382. +_LT_CC_BASENAME([$compiler])
  11383. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  11384. - hpux9* | hpux10* | hpux11*)
  11385. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11386. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11387. - # not for PA HP-UX.
  11388. - case $host_cpu in
  11389. - hppa*64*|ia64*)
  11390. - # +Z the default
  11391. - ;;
  11392. - *)
  11393. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  11394. - ;;
  11395. - esac
  11396. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11397. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  11398. - ;;
  11399. +if test -n "$compiler"; then
  11400. + :
  11401. + _LT_CONFIG($1)
  11402. +fi
  11403. - irix5* | irix6* | nonstopux*)
  11404. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11405. - # PIC (with -KPIC) is the default.
  11406. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11407. - ;;
  11408. +GCC=$lt_save_GCC
  11409. +AC_LANG_RESTORE
  11410. +CC="$lt_save_CC"
  11411. +])# _LT_LANG_RC_CONFIG
  11412. - newsos6)
  11413. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11414. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11415. - ;;
  11416. - linux* | k*bsd*-gnu)
  11417. - case $cc_basename in
  11418. - icc* | ecc*)
  11419. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11420. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11421. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11422. - ;;
  11423. - pgcc* | pgf77* | pgf90* | pgf95*)
  11424. - # Portland Group compilers (*not* the Pentium gcc compiler,
  11425. - # which looks to be a dead project)
  11426. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11427. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  11428. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11429. - ;;
  11430. - ccc*)
  11431. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11432. - # All Alpha code is PIC.
  11433. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11434. - ;;
  11435. - *)
  11436. - case `$CC -V 2>&1 | sed 5q` in
  11437. - *Sun\ C*)
  11438. - # Sun C 5.9
  11439. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11440. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11441. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11442. - ;;
  11443. - *Sun\ F*)
  11444. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  11445. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11446. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11447. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  11448. - ;;
  11449. - esac
  11450. - ;;
  11451. - esac
  11452. - ;;
  11453. +# LT_PROG_GCJ
  11454. +# -----------
  11455. +AC_DEFUN([LT_PROG_GCJ],
  11456. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  11457. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  11458. + [AC_CHECK_TOOL(GCJ, gcj,)
  11459. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  11460. + AC_SUBST(GCJFLAGS)])])[]dnl
  11461. +])
  11462. - osf3* | osf4* | osf5*)
  11463. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11464. - # All OSF/1 code is PIC.
  11465. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11466. - ;;
  11467. +# Old name:
  11468. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  11469. +dnl aclocal-1.4 backwards compatibility:
  11470. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  11471. - rdos*)
  11472. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11473. - ;;
  11474. - solaris*)
  11475. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11476. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11477. - case $cc_basename in
  11478. - f77* | f90* | f95*)
  11479. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  11480. - *)
  11481. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  11482. - esac
  11483. - ;;
  11484. +# LT_PROG_RC
  11485. +# ----------
  11486. +AC_DEFUN([LT_PROG_RC],
  11487. +[AC_CHECK_TOOL(RC, windres,)
  11488. +])
  11489. - sunos4*)
  11490. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11491. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11492. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11493. - ;;
  11494. +# Old name:
  11495. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  11496. +dnl aclocal-1.4 backwards compatibility:
  11497. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  11498. - sysv4 | sysv4.2uw2* | sysv4.3*)
  11499. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11500. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11501. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11502. - ;;
  11503. - sysv4*MP*)
  11504. - if test -d /usr/nec ;then
  11505. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11506. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11507. +# _LT_DECL_EGREP
  11508. +# --------------
  11509. +# If we don't have a new enough Autoconf to choose the best grep
  11510. +# available, choose the one first in the user's PATH.
  11511. +m4_defun([_LT_DECL_EGREP],
  11512. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  11513. +AC_REQUIRE([AC_PROG_FGREP])dnl
  11514. +test -z "$GREP" && GREP=grep
  11515. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  11516. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  11517. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  11518. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  11519. +AC_SUBST([GREP])
  11520. +])
  11521. +
  11522. +
  11523. +# _LT_DECL_OBJDUMP
  11524. +# --------------
  11525. +# If we don't have a new enough Autoconf to choose the best objdump
  11526. +# available, choose the one first in the user's PATH.
  11527. +m4_defun([_LT_DECL_OBJDUMP],
  11528. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11529. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11530. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  11531. +AC_SUBST([OBJDUMP])
  11532. +])
  11533. +
  11534. +
  11535. +# _LT_DECL_SED
  11536. +# ------------
  11537. +# Check for a fully-functional sed program, that truncates
  11538. +# as few characters as possible. Prefer GNU sed if found.
  11539. +m4_defun([_LT_DECL_SED],
  11540. +[AC_PROG_SED
  11541. +test -z "$SED" && SED=sed
  11542. +Xsed="$SED -e 1s/^X//"
  11543. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  11544. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  11545. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  11546. +])# _LT_DECL_SED
  11547. +
  11548. +m4_ifndef([AC_PROG_SED], [
  11549. +# NOTE: This macro has been submitted for inclusion into #
  11550. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  11551. +# a released version of Autoconf we should remove this #
  11552. +# macro and use it instead. #
  11553. +
  11554. +m4_defun([AC_PROG_SED],
  11555. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  11556. +AC_CACHE_VAL(lt_cv_path_SED,
  11557. +[# Loop through the user's path and test for sed and gsed.
  11558. +# Then use that list of sed's as ones to test for truncation.
  11559. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11560. +for as_dir in $PATH
  11561. +do
  11562. + IFS=$as_save_IFS
  11563. + test -z "$as_dir" && as_dir=.
  11564. + for lt_ac_prog in sed gsed; do
  11565. + for ac_exec_ext in '' $ac_executable_extensions; do
  11566. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11567. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11568. fi
  11569. - ;;
  11570. + done
  11571. + done
  11572. +done
  11573. +IFS=$as_save_IFS
  11574. +lt_ac_max=0
  11575. +lt_ac_count=0
  11576. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11577. +# along with /bin/sed that truncates output.
  11578. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11579. + test ! -f $lt_ac_sed && continue
  11580. + cat /dev/null > conftest.in
  11581. + lt_ac_count=0
  11582. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11583. + # Check for GNU sed and select it if it is found.
  11584. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11585. + lt_cv_path_SED=$lt_ac_sed
  11586. + break
  11587. + fi
  11588. + while true; do
  11589. + cat conftest.in conftest.in >conftest.tmp
  11590. + mv conftest.tmp conftest.in
  11591. + cp conftest.in conftest.nl
  11592. + echo >>conftest.nl
  11593. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11594. + cmp -s conftest.out conftest.nl || break
  11595. + # 10000 chars as input seems more than enough
  11596. + test $lt_ac_count -gt 10 && break
  11597. + lt_ac_count=`expr $lt_ac_count + 1`
  11598. + if test $lt_ac_count -gt $lt_ac_max; then
  11599. + lt_ac_max=$lt_ac_count
  11600. + lt_cv_path_SED=$lt_ac_sed
  11601. + fi
  11602. + done
  11603. +done
  11604. +])
  11605. +SED=$lt_cv_path_SED
  11606. +AC_SUBST([SED])
  11607. +AC_MSG_RESULT([$SED])
  11608. +])#AC_PROG_SED
  11609. +])#m4_ifndef
  11610. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11611. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11612. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11613. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11614. - ;;
  11615. +# Old name:
  11616. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  11617. +dnl aclocal-1.4 backwards compatibility:
  11618. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  11619. - unicos*)
  11620. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11621. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11622. - ;;
  11623. - uts4*)
  11624. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11625. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11626. - ;;
  11627. +# _LT_CHECK_SHELL_FEATURES
  11628. +# ------------------------
  11629. +# Find out whether the shell is Bourne or XSI compatible,
  11630. +# or has some other useful features.
  11631. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  11632. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  11633. +# Try some XSI features
  11634. +xsi_shell=no
  11635. +( _lt_dummy="a/b/c"
  11636. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11637. + = c,a/b,, \
  11638. + && eval 'test $(( 1 + 1 )) -eq 2 \
  11639. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11640. + && xsi_shell=yes
  11641. +AC_MSG_RESULT([$xsi_shell])
  11642. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  11643. +
  11644. +AC_MSG_CHECKING([whether the shell understands "+="])
  11645. +lt_shell_append=no
  11646. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  11647. + >/dev/null 2>&1 \
  11648. + && lt_shell_append=yes
  11649. +AC_MSG_RESULT([$lt_shell_append])
  11650. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  11651. +
  11652. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11653. + lt_unset=unset
  11654. +else
  11655. + lt_unset=false
  11656. +fi
  11657. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  11658. +
  11659. +# test EBCDIC or ASCII
  11660. +case `echo X|tr X '\101'` in
  11661. + A) # ASCII based system
  11662. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11663. + lt_SP2NL='tr \040 \012'
  11664. + lt_NL2SP='tr \015\012 \040\040'
  11665. + ;;
  11666. + *) # EBCDIC based system
  11667. + lt_SP2NL='tr \100 \n'
  11668. + lt_NL2SP='tr \r\n \100\100'
  11669. + ;;
  11670. +esac
  11671. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11672. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11673. +])# _LT_CHECK_SHELL_FEATURES
  11674. +
  11675. +
  11676. +# _LT_PROG_XSI_SHELLFNS
  11677. +# ---------------------
  11678. +# Bourne and XSI compatible variants of some useful shell functions.
  11679. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  11680. +[case $xsi_shell in
  11681. + yes)
  11682. + cat << \_LT_EOF >> "$cfgfile"
  11683. +
  11684. +# func_dirname file append nondir_replacement
  11685. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11686. +# otherwise set result to NONDIR_REPLACEMENT.
  11687. +func_dirname ()
  11688. +{
  11689. + case ${1} in
  11690. + */*) func_dirname_result="${1%/*}${2}" ;;
  11691. + * ) func_dirname_result="${3}" ;;
  11692. + esac
  11693. +}
  11694. +
  11695. +# func_basename file
  11696. +func_basename ()
  11697. +{
  11698. + func_basename_result="${1##*/}"
  11699. +}
  11700. +
  11701. +# func_dirname_and_basename file append nondir_replacement
  11702. +# perform func_basename and func_dirname in a single function
  11703. +# call:
  11704. +# dirname: Compute the dirname of FILE. If nonempty,
  11705. +# add APPEND to the result, otherwise set result
  11706. +# to NONDIR_REPLACEMENT.
  11707. +# value returned in "$func_dirname_result"
  11708. +# basename: Compute filename of FILE.
  11709. +# value retuned in "$func_basename_result"
  11710. +# Implementation must be kept synchronized with func_dirname
  11711. +# and func_basename. For efficiency, we do not delegate to
  11712. +# those functions but instead duplicate the functionality here.
  11713. +func_dirname_and_basename ()
  11714. +{
  11715. + case ${1} in
  11716. + */*) func_dirname_result="${1%/*}${2}" ;;
  11717. + * ) func_dirname_result="${3}" ;;
  11718. + esac
  11719. + func_basename_result="${1##*/}"
  11720. +}
  11721. +
  11722. +# func_stripname prefix suffix name
  11723. +# strip PREFIX and SUFFIX off of NAME.
  11724. +# PREFIX and SUFFIX must not contain globbing or regex special
  11725. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11726. +# dot (in which case that matches only a dot).
  11727. +func_stripname ()
  11728. +{
  11729. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11730. + # positional parameters, so assign one to ordinary parameter first.
  11731. + func_stripname_result=${3}
  11732. + func_stripname_result=${func_stripname_result#"${1}"}
  11733. + func_stripname_result=${func_stripname_result%"${2}"}
  11734. +}
  11735. +
  11736. +# func_opt_split
  11737. +func_opt_split ()
  11738. +{
  11739. + func_opt_split_opt=${1%%=*}
  11740. + func_opt_split_arg=${1#*=}
  11741. +}
  11742. +
  11743. +# func_lo2o object
  11744. +func_lo2o ()
  11745. +{
  11746. + case ${1} in
  11747. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11748. + *) func_lo2o_result=${1} ;;
  11749. + esac
  11750. +}
  11751. +
  11752. +# func_xform libobj-or-source
  11753. +func_xform ()
  11754. +{
  11755. + func_xform_result=${1%.*}.lo
  11756. +}
  11757. +
  11758. +# func_arith arithmetic-term...
  11759. +func_arith ()
  11760. +{
  11761. + func_arith_result=$(( $[*] ))
  11762. +}
  11763. - *)
  11764. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11765. - ;;
  11766. - esac
  11767. - fi
  11768. -])
  11769. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11770. +# func_len string
  11771. +# STRING may not start with a hyphen.
  11772. +func_len ()
  11773. +{
  11774. + func_len_result=${#1}
  11775. +}
  11776. -#
  11777. -# Check to make sure the PIC flag actually works.
  11778. -#
  11779. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11780. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11781. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11782. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11783. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11784. - "" | " "*) ;;
  11785. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11786. - esac],
  11787. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11788. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11789. -fi
  11790. -case $host_os in
  11791. - # For platforms which do not support PIC, -DPIC is meaningless:
  11792. - *djgpp*)
  11793. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11794. - ;;
  11795. - *)
  11796. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11797. +_LT_EOF
  11798. ;;
  11799. -esac
  11800. + *) # Bourne compatible functions.
  11801. + cat << \_LT_EOF >> "$cfgfile"
  11802. -#
  11803. -# Check to make sure the static flag actually works.
  11804. -#
  11805. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  11806. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  11807. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  11808. - $lt_tmp_static_flag,
  11809. - [],
  11810. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  11811. -])
  11812. +# func_dirname file append nondir_replacement
  11813. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11814. +# otherwise set result to NONDIR_REPLACEMENT.
  11815. +func_dirname ()
  11816. +{
  11817. + # Extract subdirectory from the argument.
  11818. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11819. + if test "X$func_dirname_result" = "X${1}"; then
  11820. + func_dirname_result="${3}"
  11821. + else
  11822. + func_dirname_result="$func_dirname_result${2}"
  11823. + fi
  11824. +}
  11825. +# func_basename file
  11826. +func_basename ()
  11827. +{
  11828. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11829. +}
  11830. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11831. -# ------------------------------------
  11832. -# See if the linker supports building shared libraries.
  11833. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11834. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  11835. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11836. -ifelse([$1],[CXX],[
  11837. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11838. - case $host_os in
  11839. - aix4* | aix5*)
  11840. - # If we're using GNU nm, then we don't want the "-C" option.
  11841. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11842. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11843. - _LT_AC_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'
  11844. - else
  11845. - _LT_AC_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'
  11846. - fi
  11847. - ;;
  11848. - pw32*)
  11849. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11850. - ;;
  11851. - cygwin* | mingw*)
  11852. - _LT_AC_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'
  11853. - ;;
  11854. - linux* | k*bsd*-gnu)
  11855. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  11856. - ;;
  11857. - *)
  11858. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11859. - ;;
  11860. - esac
  11861. -],[
  11862. - runpath_var=
  11863. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11864. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11865. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11866. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11867. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11868. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11869. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11870. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11871. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11872. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11873. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11874. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11875. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11876. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11877. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11878. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11879. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11880. - _LT_AC_TAGVAR(module_cmds, $1)=
  11881. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11882. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11883. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11884. - # include_expsyms should be a list of space-separated symbols to be *always*
  11885. - # included in the symbol list
  11886. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11887. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11888. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11889. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11890. - # as well as any symbol that contains `d'.
  11891. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11892. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11893. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11894. - # the symbol is explicitly referenced. Since portable code cannot
  11895. - # rely on this symbol name, it's probably fine to never include it in
  11896. - # preloaded symbol tables.
  11897. - extract_expsyms_cmds=
  11898. - # Just being paranoid about ensuring that cc_basename is set.
  11899. - _LT_CC_BASENAME([$compiler])
  11900. - case $host_os in
  11901. - cygwin* | mingw* | pw32*)
  11902. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11903. - # When not using gcc, we currently assume that we are using
  11904. - # Microsoft Visual C++.
  11905. - if test "$GCC" != yes; then
  11906. - with_gnu_ld=no
  11907. - fi
  11908. - ;;
  11909. - interix*)
  11910. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  11911. - with_gnu_ld=yes
  11912. - ;;
  11913. - openbsd*)
  11914. - with_gnu_ld=no
  11915. - ;;
  11916. +dnl func_dirname_and_basename
  11917. +dnl A portable version of this function is already defined in general.m4sh
  11918. +dnl so there is no need for it here.
  11919. +
  11920. +# func_stripname prefix suffix name
  11921. +# strip PREFIX and SUFFIX off of NAME.
  11922. +# PREFIX and SUFFIX must not contain globbing or regex special
  11923. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11924. +# dot (in which case that matches only a dot).
  11925. +# func_strip_suffix prefix name
  11926. +func_stripname ()
  11927. +{
  11928. + case ${2} in
  11929. + .*) func_stripname_result=`$ECHO "X${3}" \
  11930. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11931. + *) func_stripname_result=`$ECHO "X${3}" \
  11932. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11933. esac
  11934. +}
  11935. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11936. - if test "$with_gnu_ld" = yes; then
  11937. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11938. - wlarc='${wl}'
  11939. +# sed scripts:
  11940. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11941. +my_sed_long_arg='1s/^-[[^=]]*=//'
  11942. - # Set some defaults for GNU ld with shared library support. These
  11943. - # are reset later if shared libraries are not supported. Putting them
  11944. - # here allows them to be overridden if necessary.
  11945. - runpath_var=LD_RUN_PATH
  11946. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11947. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11948. - # ancient GNU ld didn't support --whole-archive et. al.
  11949. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11950. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11951. - else
  11952. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11953. - fi
  11954. - supports_anon_versioning=no
  11955. - case `$LD -v 2>/dev/null` in
  11956. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11957. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11958. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11959. - *\ 2.11.*) ;; # other 2.11 versions
  11960. - *) supports_anon_versioning=yes ;;
  11961. - esac
  11962. +# func_opt_split
  11963. +func_opt_split ()
  11964. +{
  11965. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11966. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11967. +}
  11968. - # See if GNU ld supports shared libraries.
  11969. - case $host_os in
  11970. - aix3* | aix4* | aix5*)
  11971. - # On AIX/PPC, the GNU linker is very broken
  11972. - if test "$host_cpu" != ia64; then
  11973. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11974. - cat <<EOF 1>&2
  11975. +# func_lo2o object
  11976. +func_lo2o ()
  11977. +{
  11978. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11979. +}
  11980. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11981. -*** to be unable to reliably create shared libraries on AIX.
  11982. -*** Therefore, libtool is disabling shared libraries support. If you
  11983. -*** really care for shared libraries, you may want to modify your PATH
  11984. -*** so that a non-GNU linker is found, and then restart.
  11985. +# func_xform libobj-or-source
  11986. +func_xform ()
  11987. +{
  11988. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11989. +}
  11990. -EOF
  11991. - fi
  11992. - ;;
  11993. +# func_arith arithmetic-term...
  11994. +func_arith ()
  11995. +{
  11996. + func_arith_result=`expr "$[@]"`
  11997. +}
  11998. - amigaos*)
  11999. - _LT_AC_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)'
  12000. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12001. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12002. -
  12003. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12004. - # that the semantics of dynamic libraries on AmigaOS, at least up
  12005. - # to version 4, is to share data among multiple programs linked
  12006. - # with the same dynamic library. Since this doesn't match the
  12007. - # behavior of shared libraries on other platforms, we can't use
  12008. - # them.
  12009. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12010. - ;;
  12011. +# func_len string
  12012. +# STRING may not start with a hyphen.
  12013. +func_len ()
  12014. +{
  12015. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  12016. +}
  12017. - beos*)
  12018. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12019. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12020. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12021. - # support --undefined. This deserves some investigation. FIXME
  12022. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12023. - else
  12024. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12025. - fi
  12026. - ;;
  12027. +_LT_EOF
  12028. +esac
  12029. - cygwin* | mingw* | pw32*)
  12030. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  12031. - # as there is no search path for DLLs.
  12032. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12033. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12034. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  12035. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  12036. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  12037. +case $lt_shell_append in
  12038. + yes)
  12039. + cat << \_LT_EOF >> "$cfgfile"
  12040. +
  12041. +# func_append var value
  12042. +# Append VALUE to the end of shell variable VAR.
  12043. +func_append ()
  12044. +{
  12045. + eval "$[1]+=\$[2]"
  12046. +}
  12047. +_LT_EOF
  12048. + ;;
  12049. + *)
  12050. + cat << \_LT_EOF >> "$cfgfile"
  12051. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12052. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12053. - # If the export-symbols file already is a .def file (1st line
  12054. - # is EXPORTS), use it as is; otherwise, prepend...
  12055. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12056. - cp $export_symbols $output_objdir/$soname.def;
  12057. - else
  12058. - echo EXPORTS > $output_objdir/$soname.def;
  12059. - cat $export_symbols >> $output_objdir/$soname.def;
  12060. - fi~
  12061. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12062. - else
  12063. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12064. - fi
  12065. - ;;
  12066. +# func_append var value
  12067. +# Append VALUE to the end of shell variable VAR.
  12068. +func_append ()
  12069. +{
  12070. + eval "$[1]=\$$[1]\$[2]"
  12071. +}
  12072. - interix[[3-9]]*)
  12073. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12074. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12075. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12076. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12077. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12078. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  12079. - # default) and relocated if they conflict, which is a slow very memory
  12080. - # consuming and fragmenting process. To avoid this, we pick a random,
  12081. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12082. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12083. - _LT_AC_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'
  12084. - _LT_AC_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'
  12085. - ;;
  12086. +_LT_EOF
  12087. + ;;
  12088. + esac
  12089. +])
  12090. - gnu* | linux* | k*bsd*-gnu)
  12091. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12092. - tmp_addflag=
  12093. - case $cc_basename,$host_cpu in
  12094. - pgcc*) # Portland Group C compiler
  12095. - _LT_AC_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'
  12096. - tmp_addflag=' $pic_flag'
  12097. - ;;
  12098. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12099. - _LT_AC_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'
  12100. - tmp_addflag=' $pic_flag -Mnomain' ;;
  12101. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12102. - tmp_addflag=' -i_dynamic' ;;
  12103. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12104. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  12105. - ifc* | ifort*) # Intel Fortran compiler
  12106. - tmp_addflag=' -nofor_main' ;;
  12107. - esac
  12108. - case `$CC -V 2>&1 | sed 5q` in
  12109. - *Sun\ C*) # Sun C 5.9
  12110. - _LT_AC_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'
  12111. - tmp_sharedflag='-G' ;;
  12112. - *Sun\ F*) # Sun Fortran 8.3
  12113. - tmp_sharedflag='-G' ;;
  12114. - *)
  12115. - tmp_sharedflag='-shared' ;;
  12116. - esac
  12117. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12118. +# Helper functions for option handling. -*- Autoconf -*-
  12119. +#
  12120. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12121. +# Written by Gary V. Vaughan, 2004
  12122. +#
  12123. +# This file is free software; the Free Software Foundation gives
  12124. +# unlimited permission to copy and/or distribute it, with or without
  12125. +# modifications, as long as this notice is preserved.
  12126. - if test $supports_anon_versioning = yes; then
  12127. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  12128. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12129. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  12130. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12131. - fi
  12132. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  12133. - else
  12134. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12135. - fi
  12136. - ;;
  12137. +# serial 6 ltoptions.m4
  12138. - netbsd* | netbsdelf*-gnu)
  12139. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12140. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12141. - wlarc=
  12142. - else
  12143. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12144. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12145. - fi
  12146. - ;;
  12147. +# This is to help aclocal find these macros, as it can't see m4_define.
  12148. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  12149. - solaris*)
  12150. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12151. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12152. - cat <<EOF 1>&2
  12153. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12154. -*** create shared libraries on Solaris systems. Therefore, libtool
  12155. -*** is disabling shared libraries support. We urge you to upgrade GNU
  12156. -*** binutils to release 2.9.1 or newer. Another option is to modify
  12157. -*** your PATH or compiler configuration so that the native linker is
  12158. -*** used, and then restart.
  12159. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  12160. +# ------------------------------------------
  12161. +m4_define([_LT_MANGLE_OPTION],
  12162. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  12163. -EOF
  12164. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12165. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12166. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12167. - else
  12168. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12169. - fi
  12170. - ;;
  12171. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12172. - case `$LD -v 2>&1` in
  12173. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  12174. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12175. - cat <<_LT_EOF 1>&2
  12176. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  12177. +# ---------------------------------------
  12178. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  12179. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  12180. +# saved as a flag.
  12181. +m4_define([_LT_SET_OPTION],
  12182. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  12183. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  12184. + _LT_MANGLE_DEFUN([$1], [$2]),
  12185. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  12186. +])
  12187. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12188. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  12189. -*** is disabling shared libraries support. We urge you to upgrade GNU
  12190. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12191. -*** your PATH or compiler configuration so that the native linker is
  12192. -*** used, and then restart.
  12193. -_LT_EOF
  12194. - ;;
  12195. - *)
  12196. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12197. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12198. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12199. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12200. - else
  12201. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12202. - fi
  12203. - ;;
  12204. - esac
  12205. - ;;
  12206. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  12207. +# ------------------------------------------------------------
  12208. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  12209. +m4_define([_LT_IF_OPTION],
  12210. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  12211. - sunos4*)
  12212. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12213. - wlarc=
  12214. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12215. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12216. - ;;
  12217. - *)
  12218. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12219. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12220. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12221. - else
  12222. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12223. - fi
  12224. - ;;
  12225. - esac
  12226. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  12227. +# -------------------------------------------------------
  12228. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  12229. +# are set.
  12230. +m4_define([_LT_UNLESS_OPTIONS],
  12231. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  12232. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  12233. + [m4_define([$0_found])])])[]dnl
  12234. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  12235. +])[]dnl
  12236. +])
  12237. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  12238. - runpath_var=
  12239. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  12240. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  12241. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  12242. - fi
  12243. - else
  12244. - # PORTME fill in a description of your system's linker (not GNU ld)
  12245. - case $host_os in
  12246. - aix3*)
  12247. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12248. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  12249. - _LT_AC_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'
  12250. - # Note: this linker hardcodes the directories in LIBPATH if there
  12251. - # are no directories specified by -L.
  12252. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12253. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12254. - # Neither direct hardcoding nor static linking is supported with a
  12255. - # broken collect2.
  12256. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  12257. - fi
  12258. - ;;
  12259. - aix4* | aix5*)
  12260. - if test "$host_cpu" = ia64; then
  12261. - # On IA64, the linker does run time linking by default, so we don't
  12262. - # have to do anything special.
  12263. - aix_use_runtimelinking=no
  12264. - exp_sym_flag='-Bexport'
  12265. - no_entry_flag=""
  12266. - else
  12267. - # If we're using GNU nm, then we don't want the "-C" option.
  12268. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12269. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12270. - _LT_AC_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'
  12271. - else
  12272. - _LT_AC_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'
  12273. - fi
  12274. - aix_use_runtimelinking=no
  12275. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  12276. +# ----------------------------------------
  12277. +# OPTION-LIST is a space-separated list of Libtool options associated
  12278. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  12279. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  12280. +# the unknown option and exit.
  12281. +m4_defun([_LT_SET_OPTIONS],
  12282. +[# Set options
  12283. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  12284. + [_LT_SET_OPTION([$1], _LT_Option)])
  12285. +
  12286. +m4_if([$1],[LT_INIT],[
  12287. + dnl
  12288. + dnl Simply set some default values (i.e off) if boolean options were not
  12289. + dnl specified:
  12290. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  12291. + ])
  12292. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  12293. + ])
  12294. + dnl
  12295. + dnl If no reference was made to various pairs of opposing options, then
  12296. + dnl we run the default mode handler for the pair. For example, if neither
  12297. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  12298. + dnl archives by default:
  12299. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  12300. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  12301. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  12302. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  12303. + [_LT_ENABLE_FAST_INSTALL])
  12304. + ])
  12305. +])# _LT_SET_OPTIONS
  12306. +
  12307. +
  12308. +
  12309. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  12310. +# -----------------------------------------
  12311. +m4_define([_LT_MANGLE_DEFUN],
  12312. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  12313. +
  12314. - # Test if we are trying to use run time linking or normal
  12315. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12316. - # need to do runtime linking.
  12317. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  12318. - for ld_flag in $LDFLAGS; do
  12319. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12320. - aix_use_runtimelinking=yes
  12321. - break
  12322. - fi
  12323. - done
  12324. - ;;
  12325. - esac
  12326. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  12327. +# -----------------------------------------------
  12328. +m4_define([LT_OPTION_DEFINE],
  12329. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  12330. +])# LT_OPTION_DEFINE
  12331. - exp_sym_flag='-bexport'
  12332. - no_entry_flag='-bnoentry'
  12333. - fi
  12334. - # When large executables or shared objects are built, AIX ld can
  12335. - # have problems creating the table of contents. If linking a library
  12336. - # or program results in "error TOC overflow" add -mminimal-toc to
  12337. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12338. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12339. +# dlopen
  12340. +# ------
  12341. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  12342. +])
  12343. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  12344. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12345. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12346. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12347. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  12348. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  12349. +AC_DIAGNOSE([obsolete],
  12350. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12351. +put the `dlopen' option into LT_INIT's first parameter.])
  12352. +])
  12353. - if test "$GCC" = yes; then
  12354. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  12355. - # We only want to do this on AIX 4.2 and lower, the check
  12356. - # below for broken collect2 doesn't work under 4.3+
  12357. - collect2name=`${CC} -print-prog-name=collect2`
  12358. - if test -f "$collect2name" && \
  12359. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  12360. - then
  12361. - # We have reworked collect2
  12362. - :
  12363. - else
  12364. - # We have old collect2
  12365. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  12366. - # It fails to find uninstalled libraries when the uninstalled
  12367. - # path is not listed in the libpath. Setting hardcode_minus_L
  12368. - # to unsupported forces relinking
  12369. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12370. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12371. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  12372. - fi
  12373. - ;;
  12374. - esac
  12375. - shared_flag='-shared'
  12376. - if test "$aix_use_runtimelinking" = yes; then
  12377. - shared_flag="$shared_flag "'${wl}-G'
  12378. - fi
  12379. - else
  12380. - # not using gcc
  12381. - if test "$host_cpu" = ia64; then
  12382. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12383. - # chokes on -Wl,-G. The following line is correct:
  12384. - shared_flag='-G'
  12385. - else
  12386. - if test "$aix_use_runtimelinking" = yes; then
  12387. - shared_flag='${wl}-G'
  12388. - else
  12389. - shared_flag='${wl}-bM:SRE'
  12390. - fi
  12391. - fi
  12392. - fi
  12393. +dnl aclocal-1.4 backwards compatibility:
  12394. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  12395. - # It seems that -bexpall does not export symbols beginning with
  12396. - # underscore (_), so it is better to generate a list of symbols to export.
  12397. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  12398. - if test "$aix_use_runtimelinking" = yes; then
  12399. - # Warning - without using the other runtime loading flags (-brtl),
  12400. - # -berok will link without error, but may produce a broken library.
  12401. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  12402. - # Determine the default libpath from the value encoded in an empty executable.
  12403. - _LT_AC_SYS_LIBPATH_AIX
  12404. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  12405. - _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12406. - else
  12407. - if test "$host_cpu" = ia64; then
  12408. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  12409. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  12410. - _LT_AC_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"
  12411. - else
  12412. - # Determine the default libpath from the value encoded in an empty executable.
  12413. - _LT_AC_SYS_LIBPATH_AIX
  12414. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  12415. - # Warning - without using the other run time loading flags,
  12416. - # -berok will link without error, but may produce a broken library.
  12417. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  12418. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  12419. - # Exported symbols can be pulled into shared objects from archives
  12420. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  12421. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12422. - # This is similar to how AIX traditionally builds its shared libraries.
  12423. - _LT_AC_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'
  12424. - fi
  12425. - fi
  12426. - ;;
  12427. - amigaos*)
  12428. - _LT_AC_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)'
  12429. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12430. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12431. - # see comment about different semantics on the GNU ld section
  12432. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12433. - ;;
  12434. +# win32-dll
  12435. +# ---------
  12436. +# Declare package support for building win32 dll's.
  12437. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  12438. +[enable_win32_dll=yes
  12439. - bsdi[[45]]*)
  12440. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  12441. - ;;
  12442. +case $host in
  12443. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  12444. + AC_CHECK_TOOL(AS, as, false)
  12445. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  12446. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  12447. + ;;
  12448. +esac
  12449. - cygwin* | mingw* | pw32*)
  12450. - # When not using gcc, we currently assume that we are using
  12451. - # Microsoft Visual C++.
  12452. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  12453. - # no search path for DLLs.
  12454. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  12455. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12456. - # Tell ltmain to make .lib files, not .a files.
  12457. - libext=lib
  12458. - # Tell ltmain to make .dll files, not .so files.
  12459. - shrext_cmds=".dll"
  12460. - # FIXME: Setting linknames here is a bad hack.
  12461. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12462. - # The linker will automatically build a .lib file if we build a DLL.
  12463. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  12464. - # FIXME: Should let the user specify the lib program.
  12465. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  12466. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  12467. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  12468. - ;;
  12469. +test -z "$AS" && AS=as
  12470. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  12471. - darwin* | rhapsody*)
  12472. - case $host_os in
  12473. - rhapsody* | darwin1.[[012]])
  12474. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  12475. - ;;
  12476. - *) # Darwin 1.3 on
  12477. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12478. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12479. - else
  12480. - case ${MACOSX_DEPLOYMENT_TARGET} in
  12481. - 10.[[012]])
  12482. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12483. - ;;
  12484. - 10.*)
  12485. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  12486. - ;;
  12487. - esac
  12488. - fi
  12489. - ;;
  12490. - esac
  12491. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12492. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12493. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  12494. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  12495. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  12496. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12497. - if test "$GCC" = yes ; then
  12498. - output_verbose_link_cmd='echo'
  12499. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12500. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12501. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12502. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12503. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12504. - else
  12505. - case $cc_basename in
  12506. - xlc*)
  12507. - output_verbose_link_cmd='echo'
  12508. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  12509. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12510. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12511. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12512. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12513. - ;;
  12514. - *)
  12515. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12516. - ;;
  12517. - esac
  12518. - fi
  12519. - ;;
  12520. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  12521. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  12522. - dgux*)
  12523. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12524. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12525. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12526. - ;;
  12527. +test -z "$OBJDUMP" && OBJDUMP=objdump
  12528. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  12529. +])# win32-dll
  12530. - freebsd1*)
  12531. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12532. - ;;
  12533. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  12534. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12535. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  12536. +AC_DIAGNOSE([obsolete],
  12537. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12538. +put the `win32-dll' option into LT_INIT's first parameter.])
  12539. +])
  12540. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12541. - # support. Future versions do this automatically, but an explicit c++rt0.o
  12542. - # does not break anything, and helps significantly (at the cost of a little
  12543. - # extra space).
  12544. - freebsd2.2*)
  12545. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12546. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12547. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12548. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12549. - ;;
  12550. +dnl aclocal-1.4 backwards compatibility:
  12551. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12552. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12553. - freebsd2*)
  12554. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12555. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12556. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12557. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12558. - ;;
  12559. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12560. - freebsd* | dragonfly*)
  12561. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12562. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12563. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12564. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12565. +# _LT_ENABLE_SHARED([DEFAULT])
  12566. +# ----------------------------
  12567. +# implement the --enable-shared flag, and supports the `shared' and
  12568. +# `disable-shared' LT_INIT options.
  12569. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12570. +m4_define([_LT_ENABLE_SHARED],
  12571. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12572. +AC_ARG_ENABLE([shared],
  12573. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12574. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12575. + [p=${PACKAGE-default}
  12576. + case $enableval in
  12577. + yes) enable_shared=yes ;;
  12578. + no) enable_shared=no ;;
  12579. + *)
  12580. + enable_shared=no
  12581. + # Look at the argument we got. We use all the common list separators.
  12582. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12583. + for pkg in $enableval; do
  12584. + IFS="$lt_save_ifs"
  12585. + if test "X$pkg" = "X$p"; then
  12586. + enable_shared=yes
  12587. + fi
  12588. + done
  12589. + IFS="$lt_save_ifs"
  12590. ;;
  12591. + esac],
  12592. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12593. - hpux9*)
  12594. - if test "$GCC" = yes; then
  12595. - _LT_AC_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'
  12596. - else
  12597. - _LT_AC_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'
  12598. - fi
  12599. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12600. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12601. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12602. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12603. + [Whether or not to build shared libraries])
  12604. +])# _LT_ENABLE_SHARED
  12605. - # hardcode_minus_L: Not really in the search PATH,
  12606. - # but as the default location of the library.
  12607. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12608. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12609. - ;;
  12610. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  12611. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  12612. - hpux10*)
  12613. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12614. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12615. - else
  12616. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12617. - fi
  12618. - if test "$with_gnu_ld" = no; then
  12619. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12620. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12621. +# Old names:
  12622. +AC_DEFUN([AC_ENABLE_SHARED],
  12623. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  12624. +])
  12625. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12626. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12627. +AC_DEFUN([AC_DISABLE_SHARED],
  12628. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  12629. +])
  12630. - # hardcode_minus_L: Not really in the search PATH,
  12631. - # but as the default location of the library.
  12632. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12633. - fi
  12634. - ;;
  12635. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12636. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12637. - hpux11*)
  12638. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12639. - case $host_cpu in
  12640. - hppa*64*)
  12641. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12642. - ;;
  12643. - ia64*)
  12644. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12645. - ;;
  12646. - *)
  12647. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12648. - ;;
  12649. - esac
  12650. - else
  12651. - case $host_cpu in
  12652. - hppa*64*)
  12653. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12654. - ;;
  12655. - ia64*)
  12656. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12657. - ;;
  12658. - *)
  12659. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12660. - ;;
  12661. - esac
  12662. - fi
  12663. - if test "$with_gnu_ld" = no; then
  12664. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12665. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12666. +dnl aclocal-1.4 backwards compatibility:
  12667. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12668. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12669. - case $host_cpu in
  12670. - hppa*64*|ia64*)
  12671. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  12672. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12673. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12674. - ;;
  12675. - *)
  12676. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12677. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12678. - # hardcode_minus_L: Not really in the search PATH,
  12679. - # but as the default location of the library.
  12680. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12681. - ;;
  12682. - esac
  12683. - fi
  12684. - ;;
  12685. - irix5* | irix6* | nonstopux*)
  12686. - if test "$GCC" = yes; then
  12687. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12688. - else
  12689. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12690. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  12691. - fi
  12692. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12693. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12694. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12695. +# _LT_ENABLE_STATIC([DEFAULT])
  12696. +# ----------------------------
  12697. +# implement the --enable-static flag, and support the `static' and
  12698. +# `disable-static' LT_INIT options.
  12699. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12700. +m4_define([_LT_ENABLE_STATIC],
  12701. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12702. +AC_ARG_ENABLE([static],
  12703. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12704. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12705. + [p=${PACKAGE-default}
  12706. + case $enableval in
  12707. + yes) enable_static=yes ;;
  12708. + no) enable_static=no ;;
  12709. + *)
  12710. + enable_static=no
  12711. + # Look at the argument we got. We use all the common list separators.
  12712. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12713. + for pkg in $enableval; do
  12714. + IFS="$lt_save_ifs"
  12715. + if test "X$pkg" = "X$p"; then
  12716. + enable_static=yes
  12717. + fi
  12718. + done
  12719. + IFS="$lt_save_ifs"
  12720. ;;
  12721. + esac],
  12722. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12723. - netbsd* | netbsdelf*-gnu)
  12724. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12725. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12726. - else
  12727. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12728. - fi
  12729. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12730. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12731. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12732. - ;;
  12733. + _LT_DECL([build_old_libs], [enable_static], [0],
  12734. + [Whether or not to build static libraries])
  12735. +])# _LT_ENABLE_STATIC
  12736. - newsos6)
  12737. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12738. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12739. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12740. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12741. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12742. - ;;
  12743. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12744. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12745. - openbsd*)
  12746. - if test -f /usr/libexec/ld.so; then
  12747. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12748. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12749. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12750. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12751. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12752. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12753. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12754. - else
  12755. - case $host_os in
  12756. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12757. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12758. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12759. - ;;
  12760. - *)
  12761. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12762. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12763. - ;;
  12764. - esac
  12765. - fi
  12766. - else
  12767. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12768. - fi
  12769. - ;;
  12770. +# Old names:
  12771. +AC_DEFUN([AC_ENABLE_STATIC],
  12772. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12773. +])
  12774. - os2*)
  12775. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12776. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12777. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12778. - _LT_AC_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'
  12779. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12780. - ;;
  12781. +AC_DEFUN([AC_DISABLE_STATIC],
  12782. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12783. +])
  12784. - osf3*)
  12785. - if test "$GCC" = yes; then
  12786. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12787. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12788. - else
  12789. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12790. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12791. - fi
  12792. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12793. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12794. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12795. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12796. +
  12797. +dnl aclocal-1.4 backwards compatibility:
  12798. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12799. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12800. +
  12801. +
  12802. +
  12803. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12804. +# ----------------------------------
  12805. +# implement the --enable-fast-install flag, and support the `fast-install'
  12806. +# and `disable-fast-install' LT_INIT options.
  12807. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12808. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12809. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12810. +AC_ARG_ENABLE([fast-install],
  12811. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12812. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12813. + [p=${PACKAGE-default}
  12814. + case $enableval in
  12815. + yes) enable_fast_install=yes ;;
  12816. + no) enable_fast_install=no ;;
  12817. + *)
  12818. + enable_fast_install=no
  12819. + # Look at the argument we got. We use all the common list separators.
  12820. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12821. + for pkg in $enableval; do
  12822. + IFS="$lt_save_ifs"
  12823. + if test "X$pkg" = "X$p"; then
  12824. + enable_fast_install=yes
  12825. + fi
  12826. + done
  12827. + IFS="$lt_save_ifs"
  12828. ;;
  12829. + esac],
  12830. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12831. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12832. - if test "$GCC" = yes; then
  12833. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12834. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12835. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12836. - else
  12837. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12838. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12839. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  12840. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  12841. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12842. + [Whether or not to optimize for fast installation])dnl
  12843. +])# _LT_ENABLE_FAST_INSTALL
  12844. +
  12845. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12846. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12847. +
  12848. +# Old names:
  12849. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12850. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12851. +AC_DIAGNOSE([obsolete],
  12852. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12853. +the `fast-install' option into LT_INIT's first parameter.])
  12854. +])
  12855. - # Both c and cxx compiler support -rpath directly
  12856. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12857. - fi
  12858. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12859. - ;;
  12860. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12861. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12862. +AC_DIAGNOSE([obsolete],
  12863. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12864. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12865. +])
  12866. - solaris*)
  12867. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12868. - if test "$GCC" = yes; then
  12869. - wlarc='${wl}'
  12870. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12871. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12872. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12873. - else
  12874. - wlarc=''
  12875. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12876. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12877. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12878. - fi
  12879. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12880. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12881. - case $host_os in
  12882. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12883. - *)
  12884. - # The compiler driver will combine and reorder linker options,
  12885. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  12886. - # but is careful enough not to reorder.
  12887. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  12888. - if test "$GCC" = yes; then
  12889. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12890. - else
  12891. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  12892. - fi
  12893. - ;;
  12894. - esac
  12895. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12896. - ;;
  12897. +dnl aclocal-1.4 backwards compatibility:
  12898. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12899. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12900. - sunos4*)
  12901. - if test "x$host_vendor" = xsequent; then
  12902. - # Use $CC to link under sequent, because it throws in some extra .o
  12903. - # files that make .init and .fini sections work.
  12904. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12905. - else
  12906. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12907. - fi
  12908. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12909. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12910. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12911. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12912. - ;;
  12913. - sysv4)
  12914. - case $host_vendor in
  12915. - sni)
  12916. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12917. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12918. - ;;
  12919. - siemens)
  12920. - ## LD is ld it makes a PLAMLIB
  12921. - ## CC just makes a GrossModule.
  12922. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12923. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12924. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12925. - ;;
  12926. - motorola)
  12927. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12928. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12929. - ;;
  12930. - esac
  12931. - runpath_var='LD_RUN_PATH'
  12932. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12933. - ;;
  12934. +# _LT_WITH_PIC([MODE])
  12935. +# --------------------
  12936. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12937. +# LT_INIT options.
  12938. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12939. +m4_define([_LT_WITH_PIC],
  12940. +[AC_ARG_WITH([pic],
  12941. + [AS_HELP_STRING([--with-pic],
  12942. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12943. + [pic_mode="$withval"],
  12944. + [pic_mode=default])
  12945. - sysv4.3*)
  12946. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12947. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12948. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12949. - ;;
  12950. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12951. - sysv4*MP*)
  12952. - if test -d /usr/nec; then
  12953. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12954. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12955. - runpath_var=LD_RUN_PATH
  12956. - hardcode_runpath_var=yes
  12957. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12958. - fi
  12959. - ;;
  12960. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12961. +])# _LT_WITH_PIC
  12962. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  12963. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12964. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12965. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12966. - runpath_var='LD_RUN_PATH'
  12967. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12968. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12969. - if test "$GCC" = yes; then
  12970. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12971. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12972. - else
  12973. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12974. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12975. - fi
  12976. - ;;
  12977. +# Old name:
  12978. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12979. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12980. +AC_DIAGNOSE([obsolete],
  12981. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12982. +put the `pic-only' option into LT_INIT's first parameter.])
  12983. +])
  12984. - sysv5* | sco3.2v5* | sco5v6*)
  12985. - # Note: We can NOT use -z defs as we might desire, because we do not
  12986. - # link with -lc, and that would cause any symbols used from libc to
  12987. - # always be unresolved, which means just about no library would
  12988. - # ever link correctly. If we're not using GNU ld we use -z text
  12989. - # though, which does catch some bad symbols but isn't as heavy-handed
  12990. - # as -z defs.
  12991. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12992. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  12993. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12994. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12995. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12996. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12997. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12998. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12999. - runpath_var='LD_RUN_PATH'
  13000. +dnl aclocal-1.4 backwards compatibility:
  13001. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  13002. - if test "$GCC" = yes; then
  13003. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13004. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13005. - else
  13006. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13007. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13008. - fi
  13009. - ;;
  13010. - uts4*)
  13011. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13012. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  13013. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  13014. - ;;
  13015. +m4_define([_LTDL_MODE], [])
  13016. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  13017. + [m4_define([_LTDL_MODE], [nonrecursive])])
  13018. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  13019. + [m4_define([_LTDL_MODE], [recursive])])
  13020. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  13021. + [m4_define([_LTDL_MODE], [subproject])])
  13022. - *)
  13023. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  13024. - ;;
  13025. - esac
  13026. - fi
  13027. -])
  13028. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  13029. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  13030. +m4_define([_LTDL_TYPE], [])
  13031. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  13032. + [m4_define([_LTDL_TYPE], [installable])])
  13033. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  13034. + [m4_define([_LTDL_TYPE], [convenience])])
  13035. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  13036. #
  13037. -# Do we need to explicitly link libc?
  13038. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  13039. +# Written by Gary V. Vaughan, 2004
  13040. #
  13041. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  13042. -x|xyes)
  13043. - # Assume -lc should be added
  13044. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  13045. +# This file is free software; the Free Software Foundation gives
  13046. +# unlimited permission to copy and/or distribute it, with or without
  13047. +# modifications, as long as this notice is preserved.
  13048. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  13049. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  13050. - *'~'*)
  13051. - # FIXME: we may have to deal with multi-command sequences.
  13052. - ;;
  13053. - '$CC '*)
  13054. - # Test whether the compiler implicitly links with -lc since on some
  13055. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13056. - # to ld, don't add -lc before -lgcc.
  13057. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  13058. - $rm conftest*
  13059. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13060. +# serial 6 ltsugar.m4
  13061. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  13062. - soname=conftest
  13063. - lib=conftest
  13064. - libobjs=conftest.$ac_objext
  13065. - deplibs=
  13066. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  13067. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  13068. - compiler_flags=-v
  13069. - linker_flags=-v
  13070. - verstring=
  13071. - output_objdir=.
  13072. - libname=conftest
  13073. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  13074. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  13075. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  13076. - then
  13077. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  13078. - else
  13079. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  13080. - fi
  13081. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  13082. - else
  13083. - cat conftest.err 1>&5
  13084. - fi
  13085. - $rm conftest*
  13086. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  13087. - ;;
  13088. - esac
  13089. - fi
  13090. - ;;
  13091. -esac
  13092. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  13093. +# This is to help aclocal find these macros, as it can't see m4_define.
  13094. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  13095. -# _LT_AC_FILE_LTDLL_C
  13096. -# -------------------
  13097. -# Be careful that the start marker always follows a newline.
  13098. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  13099. -# /* ltdll.c starts here */
  13100. -# #define WIN32_LEAN_AND_MEAN
  13101. -# #include <windows.h>
  13102. -# #undef WIN32_LEAN_AND_MEAN
  13103. -# #include <stdio.h>
  13104. -#
  13105. -# #ifndef __CYGWIN__
  13106. -# # ifdef __CYGWIN32__
  13107. -# # define __CYGWIN__ __CYGWIN32__
  13108. -# # endif
  13109. -# #endif
  13110. -#
  13111. -# #ifdef __cplusplus
  13112. -# extern "C" {
  13113. -# #endif
  13114. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  13115. -# #ifdef __cplusplus
  13116. -# }
  13117. -# #endif
  13118. -#
  13119. -# #ifdef __CYGWIN__
  13120. -# #include <cygwin/cygwin_dll.h>
  13121. -# DECLARE_CYGWIN_DLL( DllMain );
  13122. -# #endif
  13123. -# HINSTANCE __hDllInstance_base;
  13124. -#
  13125. -# BOOL APIENTRY
  13126. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  13127. -# {
  13128. -# __hDllInstance_base = hInst;
  13129. -# return TRUE;
  13130. -# }
  13131. -# /* ltdll.c ends here */
  13132. -])# _LT_AC_FILE_LTDLL_C
  13133. +# lt_join(SEP, ARG1, [ARG2...])
  13134. +# -----------------------------
  13135. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  13136. +# associated separator.
  13137. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  13138. +# versions in m4sugar had bugs.
  13139. +m4_define([lt_join],
  13140. +[m4_if([$#], [1], [],
  13141. + [$#], [2], [[$2]],
  13142. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  13143. +m4_define([_lt_join],
  13144. +[m4_if([$#$2], [2], [],
  13145. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  13146. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  13147. -# ---------------------------------
  13148. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  13149. +# lt_car(LIST)
  13150. +# lt_cdr(LIST)
  13151. +# ------------
  13152. +# Manipulate m4 lists.
  13153. +# These macros are necessary as long as will still need to support
  13154. +# Autoconf-2.59 which quotes differently.
  13155. +m4_define([lt_car], [[$1]])
  13156. +m4_define([lt_cdr],
  13157. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  13158. + [$#], 1, [],
  13159. + [m4_dquote(m4_shift($@))])])
  13160. +m4_define([lt_unquote], $1)
  13161. +
  13162. +
  13163. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  13164. +# ------------------------------------------
  13165. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  13166. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  13167. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  13168. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  13169. +# than defined and empty).
  13170. +#
  13171. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  13172. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  13173. +m4_define([lt_append],
  13174. +[m4_define([$1],
  13175. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  13176. -# old names
  13177. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  13178. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  13179. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  13180. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  13181. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  13182. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  13183. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  13184. -# This is just to silence aclocal about the macro not being used
  13185. -ifelse([AC_DISABLE_FAST_INSTALL])
  13186. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  13187. +# ----------------------------------------------------------
  13188. +# Produce a SEP delimited list of all paired combinations of elements of
  13189. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  13190. +# has the form PREFIXmINFIXSUFFIXn.
  13191. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  13192. +m4_define([lt_combine],
  13193. +[m4_if(m4_eval([$# > 3]), [1],
  13194. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  13195. +[[m4_foreach([_Lt_prefix], [$2],
  13196. + [m4_foreach([_Lt_suffix],
  13197. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  13198. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  13199. +
  13200. +
  13201. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  13202. +# -----------------------------------------------------------------------
  13203. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  13204. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  13205. +m4_define([lt_if_append_uniq],
  13206. +[m4_ifdef([$1],
  13207. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  13208. + [lt_append([$1], [$2], [$3])$4],
  13209. + [$5])],
  13210. + [lt_append([$1], [$2], [$3])$4])])
  13211. +
  13212. +
  13213. +# lt_dict_add(DICT, KEY, VALUE)
  13214. +# -----------------------------
  13215. +m4_define([lt_dict_add],
  13216. +[m4_define([$1($2)], [$3])])
  13217. -AC_DEFUN([LT_AC_PROG_GCJ],
  13218. -[AC_CHECK_TOOL(GCJ, gcj, no)
  13219. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  13220. - AC_SUBST(GCJFLAGS)
  13221. -])
  13222. -AC_DEFUN([LT_AC_PROG_RC],
  13223. -[AC_CHECK_TOOL(RC, windres, no)
  13224. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  13225. +# --------------------------------------------
  13226. +m4_define([lt_dict_add_subkey],
  13227. +[m4_define([$1($2:$3)], [$4])])
  13228. +
  13229. +
  13230. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  13231. +# ----------------------------------
  13232. +m4_define([lt_dict_fetch],
  13233. +[m4_ifval([$3],
  13234. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  13235. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  13236. +
  13237. +
  13238. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  13239. +# -----------------------------------------------------------------
  13240. +m4_define([lt_if_dict_fetch],
  13241. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  13242. + [$5],
  13243. + [$6])])
  13244. +
  13245. +
  13246. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  13247. +# --------------------------------------------------------------
  13248. +m4_define([lt_dict_filter],
  13249. +[m4_if([$5], [], [],
  13250. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  13251. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  13252. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  13253. ])
  13254. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  13255. +#
  13256. +# Copyright (C) 2004 Free Software Foundation, Inc.
  13257. +# Written by Scott James Remnant, 2004
  13258. +#
  13259. +# This file is free software; the Free Software Foundation gives
  13260. +# unlimited permission to copy and/or distribute it, with or without
  13261. +# modifications, as long as this notice is preserved.
  13262. -# Cheap backport of AS_EXECUTABLE_P and required macros
  13263. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  13264. +# Generated from ltversion.in.
  13265. -# _AS_TEST_PREPARE
  13266. -# ----------------
  13267. -m4_ifndef([_AS_TEST_PREPARE],
  13268. -[m4_defun([_AS_TEST_PREPARE],
  13269. -[if test -x / >/dev/null 2>&1; then
  13270. - as_executable_p='test -x'
  13271. -else
  13272. - as_executable_p='test -f'
  13273. -fi
  13274. -])])# _AS_TEST_PREPARE
  13275. +# serial 3017 ltversion.m4
  13276. +# This file is part of GNU Libtool
  13277. -# AS_EXECUTABLE_P
  13278. -# ---------------
  13279. -# Check whether a file is executable.
  13280. -m4_ifndef([AS_EXECUTABLE_P],
  13281. -[m4_defun([AS_EXECUTABLE_P],
  13282. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  13283. -$as_executable_p $1[]dnl
  13284. -])])# AS_EXECUTABLE_P
  13285. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  13286. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  13287. -# NOTE: This macro has been submitted for inclusion into #
  13288. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  13289. -# a released version of Autoconf we should remove this #
  13290. -# macro and use it instead. #
  13291. -# LT_AC_PROG_SED
  13292. -# --------------
  13293. -# Check for a fully-functional sed program, that truncates
  13294. -# as few characters as possible. Prefer GNU sed if found.
  13295. -AC_DEFUN([LT_AC_PROG_SED],
  13296. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  13297. -AC_CACHE_VAL(lt_cv_path_SED,
  13298. -[# Loop through the user's path and test for sed and gsed.
  13299. -# Then use that list of sed's as ones to test for truncation.
  13300. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13301. -for as_dir in $PATH
  13302. -do
  13303. - IFS=$as_save_IFS
  13304. - test -z "$as_dir" && as_dir=.
  13305. - for lt_ac_prog in sed gsed; do
  13306. - for ac_exec_ext in '' $ac_executable_extensions; do
  13307. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  13308. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  13309. - fi
  13310. - done
  13311. - done
  13312. -done
  13313. -IFS=$as_save_IFS
  13314. -lt_ac_max=0
  13315. -lt_ac_count=0
  13316. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  13317. -# along with /bin/sed that truncates output.
  13318. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  13319. - test ! -f $lt_ac_sed && continue
  13320. - cat /dev/null > conftest.in
  13321. - lt_ac_count=0
  13322. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  13323. - # Check for GNU sed and select it if it is found.
  13324. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  13325. - lt_cv_path_SED=$lt_ac_sed
  13326. - break
  13327. - fi
  13328. - while true; do
  13329. - cat conftest.in conftest.in >conftest.tmp
  13330. - mv conftest.tmp conftest.in
  13331. - cp conftest.in conftest.nl
  13332. - echo >>conftest.nl
  13333. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  13334. - cmp -s conftest.out conftest.nl || break
  13335. - # 10000 chars as input seems more than enough
  13336. - test $lt_ac_count -gt 10 && break
  13337. - lt_ac_count=`expr $lt_ac_count + 1`
  13338. - if test $lt_ac_count -gt $lt_ac_max; then
  13339. - lt_ac_max=$lt_ac_count
  13340. - lt_cv_path_SED=$lt_ac_sed
  13341. - fi
  13342. - done
  13343. -done
  13344. -])
  13345. -SED=$lt_cv_path_SED
  13346. -AC_SUBST([SED])
  13347. -AC_MSG_RESULT([$SED])
  13348. +AC_DEFUN([LTVERSION_VERSION],
  13349. +[macro_version='2.2.6b'
  13350. +macro_revision='1.3017'
  13351. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  13352. +_LT_DECL(, macro_revision, 0)
  13353. ])
  13354. -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
  13355. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  13356. +#
  13357. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  13358. +# Written by Scott James Remnant, 2004.
  13359. +#
  13360. +# This file is free software; the Free Software Foundation gives
  13361. +# unlimited permission to copy and/or distribute it, with or without
  13362. +# modifications, as long as this notice is preserved.
  13363. +
  13364. +# serial 4 lt~obsolete.m4
  13365. +
  13366. +# These exist entirely to fool aclocal when bootstrapping libtool.
  13367. +#
  13368. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  13369. +# which have later been changed to m4_define as they aren't part of the
  13370. +# exported API, or moved to Autoconf or Automake where they belong.
  13371. +#
  13372. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  13373. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  13374. +# using a macro with the same name in our local m4/libtool.m4 it'll
  13375. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  13376. +# and doesn't know about Autoconf macros at all.)
  13377. +#
  13378. +# So we provide this file, which has a silly filename so it's always
  13379. +# included after everything else. This provides aclocal with the
  13380. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  13381. +# because those macros already exist, or will be overwritten later.
  13382. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  13383. +#
  13384. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  13385. +# Yes, that means every name once taken will need to remain here until
  13386. +# we give up compatibility with versions before 1.7, at which point
  13387. +# we need to keep only those names which we still refer to.
  13388. +
  13389. +# This is to help aclocal find these macros, as it can't see m4_define.
  13390. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  13391. +
  13392. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  13393. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  13394. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  13395. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  13396. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  13397. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  13398. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  13399. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  13400. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  13401. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  13402. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  13403. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  13404. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  13405. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  13406. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  13407. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  13408. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  13409. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  13410. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  13411. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  13412. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  13413. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  13414. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  13415. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  13416. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  13417. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  13418. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  13419. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  13420. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  13421. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  13422. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  13423. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  13424. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  13425. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  13426. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  13427. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  13428. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  13429. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  13430. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  13431. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  13432. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  13433. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  13434. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  13435. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  13436. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  13437. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  13438. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  13439. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  13440. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  13441. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  13442. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  13443. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  13444. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  13445. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  13446. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  13447. +
  13448. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13449. #
  13450. # This file is free software; the Free Software Foundation
  13451. # gives unlimited permission to copy and/or distribute it,
  13452. @@ -6609,10 +7997,10 @@
  13453. # generated from the m4 files accompanying Automake X.Y.
  13454. # (This private macro should not be called outside this file.)
  13455. AC_DEFUN([AM_AUTOMAKE_VERSION],
  13456. -[am__api_version='1.10'
  13457. +[am__api_version='1.11'
  13458. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  13459. dnl require some minimum version. Point them to the right macro.
  13460. -m4_if([$1], [1.10], [],
  13461. +m4_if([$1], [1.11.1], [],
  13462. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  13463. ])
  13464. @@ -6626,10 +8014,12 @@
  13465. # AM_SET_CURRENT_AUTOMAKE_VERSION
  13466. # -------------------------------
  13467. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  13468. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  13469. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  13470. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  13471. -[AM_AUTOMAKE_VERSION([1.10])dnl
  13472. -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
  13473. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  13474. +m4_ifndef([AC_AUTOCONF_VERSION],
  13475. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13476. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  13477. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  13478. @@ -6686,14 +8076,14 @@
  13479. # AM_CONDITIONAL -*- Autoconf -*-
  13480. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  13481. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  13482. # Free Software Foundation, Inc.
  13483. #
  13484. # This file is free software; the Free Software Foundation
  13485. # gives unlimited permission to copy and/or distribute it,
  13486. # with or without modifications, as long as this notice is preserved.
  13487. -# serial 8
  13488. +# serial 9
  13489. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  13490. # -------------------------------------
  13491. @@ -6706,6 +8096,7 @@
  13492. AC_SUBST([$1_FALSE])dnl
  13493. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  13494. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  13495. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  13496. if $2; then
  13497. $1_TRUE=
  13498. $1_FALSE='#'
  13499. @@ -6719,14 +8110,14 @@
  13500. Usually this means the macro was only invoked conditionally.]])
  13501. fi])])
  13502. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  13503. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  13504. # Free Software Foundation, Inc.
  13505. #
  13506. # This file is free software; the Free Software Foundation
  13507. # gives unlimited permission to copy and/or distribute it,
  13508. # with or without modifications, as long as this notice is preserved.
  13509. -# serial 9
  13510. +# serial 10
  13511. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  13512. # written in clear, in which case automake, when reading aclocal.m4,
  13513. @@ -6783,6 +8174,16 @@
  13514. if test "$am_compiler_list" = ""; then
  13515. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  13516. fi
  13517. + am__universal=false
  13518. + m4_case([$1], [CC],
  13519. + [case " $depcc " in #(
  13520. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13521. + esac],
  13522. + [CXX],
  13523. + [case " $depcc " in #(
  13524. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13525. + esac])
  13526. +
  13527. for depmode in $am_compiler_list; do
  13528. # Setup a source with many dependencies, because some compilers
  13529. # like to wrap large dependency lists on column 80 (with \), and
  13530. @@ -6800,7 +8201,17 @@
  13531. done
  13532. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13533. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13534. + # mode. It turns out that the SunPro C++ compiler does not properly
  13535. + # handle `-M -o', and we need to detect this. Also, some Intel
  13536. + # versions had trouble with output in subdirs
  13537. + am__obj=sub/conftest.${OBJEXT-o}
  13538. + am__minus_obj="-o $am__obj"
  13539. case $depmode in
  13540. + gcc)
  13541. + # This depmode causes a compiler race in universal mode.
  13542. + test "$am__universal" = false || continue
  13543. + ;;
  13544. nosideeffect)
  13545. # after this tag, mechanisms are not by side-effect, so they'll
  13546. # only be used when explicitly requested
  13547. @@ -6810,19 +8221,23 @@
  13548. break
  13549. fi
  13550. ;;
  13551. + msvisualcpp | msvcmsys)
  13552. + # This compiler won't grok `-c -o', but also, the minuso test has
  13553. + # not run yet. These depmodes are late enough in the game, and
  13554. + # so weak that their functioning should not be impacted.
  13555. + am__obj=conftest.${OBJEXT-o}
  13556. + am__minus_obj=
  13557. + ;;
  13558. none) break ;;
  13559. esac
  13560. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13561. - # mode. It turns out that the SunPro C++ compiler does not properly
  13562. - # handle `-M -o', and we need to detect this.
  13563. if depmode=$depmode \
  13564. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13565. + source=sub/conftest.c object=$am__obj \
  13566. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13567. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13568. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13569. >/dev/null 2>conftest.err &&
  13570. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13571. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13572. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13573. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13574. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13575. # icc doesn't choke on unknown options, it will just issue warnings
  13576. # or remarks (even with -Werror). So we grep stderr for any message
  13577. @@ -6879,57 +8294,68 @@
  13578. # Generate code to set up dependency tracking. -*- Autoconf -*-
  13579. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13580. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13581. # Free Software Foundation, Inc.
  13582. #
  13583. # This file is free software; the Free Software Foundation
  13584. # gives unlimited permission to copy and/or distribute it,
  13585. # with or without modifications, as long as this notice is preserved.
  13586. -#serial 3
  13587. +#serial 5
  13588. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  13589. # ------------------------------
  13590. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  13591. -[for mf in $CONFIG_FILES; do
  13592. - # Strip MF so we end up with the name of the file.
  13593. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  13594. - # Check whether this is an Automake generated Makefile or not.
  13595. - # We used to match only the files named `Makefile.in', but
  13596. - # some people rename them; so instead we look at the file content.
  13597. - # Grep'ing the first line is not enough: some people post-process
  13598. - # each Makefile.in and add a new line on top of each file to say so.
  13599. - # Grep'ing the whole file is not good either: AIX grep has a line
  13600. - # limit of 2048, but all sed's we know have understand at least 4000.
  13601. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  13602. - dirpart=`AS_DIRNAME("$mf")`
  13603. - else
  13604. - continue
  13605. - fi
  13606. - # Extract the definition of DEPDIR, am__include, and am__quote
  13607. - # from the Makefile without running `make'.
  13608. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13609. - test -z "$DEPDIR" && continue
  13610. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13611. - test -z "am__include" && continue
  13612. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13613. - # When using ansi2knr, U may be empty or an underscore; expand it
  13614. - U=`sed -n 's/^U = //p' < "$mf"`
  13615. - # Find all dependency output files, they are included files with
  13616. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  13617. - # simplest approach to changing $(DEPDIR) to its actual value in the
  13618. - # expansion.
  13619. - for file in `sed -n "
  13620. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13621. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13622. - # Make sure the directory exists.
  13623. - test -f "$dirpart/$file" && continue
  13624. - fdir=`AS_DIRNAME(["$file"])`
  13625. - AS_MKDIR_P([$dirpart/$fdir])
  13626. - # echo "creating $dirpart/$file"
  13627. - echo '# dummy' > "$dirpart/$file"
  13628. +[{
  13629. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13630. + # are listed without --file. Let's play safe and only enable the eval
  13631. + # if we detect the quoting.
  13632. + case $CONFIG_FILES in
  13633. + *\'*) eval set x "$CONFIG_FILES" ;;
  13634. + *) set x $CONFIG_FILES ;;
  13635. + esac
  13636. + shift
  13637. + for mf
  13638. + do
  13639. + # Strip MF so we end up with the name of the file.
  13640. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  13641. + # Check whether this is an Automake generated Makefile or not.
  13642. + # We used to match only the files named `Makefile.in', but
  13643. + # some people rename them; so instead we look at the file content.
  13644. + # Grep'ing the first line is not enough: some people post-process
  13645. + # each Makefile.in and add a new line on top of each file to say so.
  13646. + # Grep'ing the whole file is not good either: AIX grep has a line
  13647. + # limit of 2048, but all sed's we know have understand at least 4000.
  13648. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13649. + dirpart=`AS_DIRNAME("$mf")`
  13650. + else
  13651. + continue
  13652. + fi
  13653. + # Extract the definition of DEPDIR, am__include, and am__quote
  13654. + # from the Makefile without running `make'.
  13655. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13656. + test -z "$DEPDIR" && continue
  13657. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13658. + test -z "am__include" && continue
  13659. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13660. + # When using ansi2knr, U may be empty or an underscore; expand it
  13661. + U=`sed -n 's/^U = //p' < "$mf"`
  13662. + # Find all dependency output files, they are included files with
  13663. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  13664. + # simplest approach to changing $(DEPDIR) to its actual value in the
  13665. + # expansion.
  13666. + for file in `sed -n "
  13667. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13668. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13669. + # Make sure the directory exists.
  13670. + test -f "$dirpart/$file" && continue
  13671. + fdir=`AS_DIRNAME(["$file"])`
  13672. + AS_MKDIR_P([$dirpart/$fdir])
  13673. + # echo "creating $dirpart/$file"
  13674. + echo '# dummy' > "$dirpart/$file"
  13675. + done
  13676. done
  13677. -done
  13678. +}
  13679. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  13680. @@ -6961,13 +8387,13 @@
  13681. # Do all the work for Automake. -*- Autoconf -*-
  13682. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13683. -# 2005, 2006 Free Software Foundation, Inc.
  13684. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  13685. #
  13686. # This file is free software; the Free Software Foundation
  13687. # gives unlimited permission to copy and/or distribute it,
  13688. # with or without modifications, as long as this notice is preserved.
  13689. -# serial 12
  13690. +# serial 16
  13691. # This macro actually does too much. Some checks are only needed if
  13692. # your package does certain things. But this isn't really a big deal.
  13693. @@ -6984,7 +8410,7 @@
  13694. # arguments mandatory, and then we can depend on a new Autoconf
  13695. # release and drop the old call support.
  13696. AC_DEFUN([AM_INIT_AUTOMAKE],
  13697. -[AC_PREREQ([2.60])dnl
  13698. +[AC_PREREQ([2.62])dnl
  13699. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13700. dnl the ones we care about.
  13701. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13702. @@ -7035,8 +8461,8 @@
  13703. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  13704. AM_MISSING_PROG(AUTOHEADER, autoheader)
  13705. AM_MISSING_PROG(MAKEINFO, makeinfo)
  13706. -AM_PROG_INSTALL_SH
  13707. -AM_PROG_INSTALL_STRIP
  13708. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13709. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  13710. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  13711. # We need awk for the "check" target. The system "awk" is bad on
  13712. # some platforms.
  13713. @@ -7044,24 +8470,37 @@
  13714. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13715. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  13716. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  13717. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13718. - [_AM_PROG_TAR([v7])])])
  13719. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13720. + [_AM_PROG_TAR([v7])])])
  13721. _AM_IF_OPTION([no-dependencies],,
  13722. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  13723. - [_AM_DEPENDENCIES(CC)],
  13724. - [define([AC_PROG_CC],
  13725. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13726. + [_AM_DEPENDENCIES(CC)],
  13727. + [define([AC_PROG_CC],
  13728. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13729. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  13730. - [_AM_DEPENDENCIES(CXX)],
  13731. - [define([AC_PROG_CXX],
  13732. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13733. + [_AM_DEPENDENCIES(CXX)],
  13734. + [define([AC_PROG_CXX],
  13735. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13736. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13737. - [_AM_DEPENDENCIES(OBJC)],
  13738. - [define([AC_PROG_OBJC],
  13739. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13740. + [_AM_DEPENDENCIES(OBJC)],
  13741. + [define([AC_PROG_OBJC],
  13742. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13743. ])
  13744. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  13745. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  13746. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  13747. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  13748. +AC_CONFIG_COMMANDS_PRE(dnl
  13749. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  13750. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  13751. ])
  13752. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  13753. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  13754. +dnl mangled by Autoconf and run in a shell conditional statement.
  13755. +m4_define([_AC_COMPILER_EXEEXT],
  13756. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  13757. +
  13758. # When config.status generates a header, we must update the stamp-h file.
  13759. # This file resides in the same directory as the config header
  13760. @@ -7072,18 +8511,19 @@
  13761. # our stamp files there.
  13762. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  13763. [# Compute $1's index in $config_headers.
  13764. +_am_arg=$1
  13765. _am_stamp_count=1
  13766. for _am_header in $config_headers :; do
  13767. case $_am_header in
  13768. - $1 | $1:* )
  13769. + $_am_arg | $_am_arg:* )
  13770. break ;;
  13771. * )
  13772. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13773. esac
  13774. done
  13775. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  13776. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  13777. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13778. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  13779. #
  13780. # This file is free software; the Free Software Foundation
  13781. # gives unlimited permission to copy and/or distribute it,
  13782. @@ -7094,7 +8534,14 @@
  13783. # Define $install_sh.
  13784. AC_DEFUN([AM_PROG_INSTALL_SH],
  13785. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13786. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  13787. +if test x"${install_sh}" != xset; then
  13788. + case $am_aux_dir in
  13789. + *\ * | *\ *)
  13790. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13791. + *)
  13792. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  13793. + esac
  13794. +fi
  13795. AC_SUBST(install_sh)])
  13796. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13797. @@ -7121,27 +8568,38 @@
  13798. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  13799. # From Jim Meyering
  13800. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  13801. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13802. # Free Software Foundation, Inc.
  13803. #
  13804. # This file is free software; the Free Software Foundation
  13805. # gives unlimited permission to copy and/or distribute it,
  13806. # with or without modifications, as long as this notice is preserved.
  13807. -# serial 4
  13808. +# serial 5
  13809. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  13810. +# ----------------------------------
  13811. +# Control maintainer-specific portions of Makefiles.
  13812. +# Default is to disable them, unless `enable' is passed literally.
  13813. +# For symmetry, `disable' may be passed as well. Anyway, the user
  13814. +# can override the default with the --enable/--disable switch.
  13815. AC_DEFUN([AM_MAINTAINER_MODE],
  13816. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  13817. - dnl maintainer-mode is disabled by default
  13818. - AC_ARG_ENABLE(maintainer-mode,
  13819. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  13820. +[m4_case(m4_default([$1], [disable]),
  13821. + [enable], [m4_define([am_maintainer_other], [disable])],
  13822. + [disable], [m4_define([am_maintainer_other], [enable])],
  13823. + [m4_define([am_maintainer_other], [enable])
  13824. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  13825. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  13826. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  13827. + AC_ARG_ENABLE([maintainer-mode],
  13828. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  13829. (and sometimes confusing) to the casual installer],
  13830. - USE_MAINTAINER_MODE=$enableval,
  13831. - USE_MAINTAINER_MODE=no)
  13832. + [USE_MAINTAINER_MODE=$enableval],
  13833. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  13834. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  13835. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  13836. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  13837. MAINT=$MAINTAINER_MODE_TRUE
  13838. - AC_SUBST(MAINT)dnl
  13839. + AC_SUBST([MAINT])dnl
  13840. ]
  13841. )
  13842. @@ -7149,13 +8607,13 @@
  13843. # Check to see how 'make' treats includes. -*- Autoconf -*-
  13844. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13845. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13846. #
  13847. # This file is free software; the Free Software Foundation
  13848. # gives unlimited permission to copy and/or distribute it,
  13849. # with or without modifications, as long as this notice is preserved.
  13850. -# serial 3
  13851. +# serial 4
  13852. # AM_MAKE_INCLUDE()
  13853. # -----------------
  13854. @@ -7164,7 +8622,7 @@
  13855. [am_make=${MAKE-make}
  13856. cat > confinc << 'END'
  13857. am__doit:
  13858. - @echo done
  13859. + @echo this is the am__doit target
  13860. .PHONY: am__doit
  13861. END
  13862. # If we don't find an include directive, just comment out the code.
  13863. @@ -7174,24 +8632,24 @@
  13864. _am_result=none
  13865. # First try GNU make style include.
  13866. echo "include confinc" > confmf
  13867. -# We grep out `Entering directory' and `Leaving directory'
  13868. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13869. -# In particular we don't look at `^make:' because GNU make might
  13870. -# be invoked under some other name (usually "gmake"), in which
  13871. -# case it prints its new name instead of `make'.
  13872. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13873. - am__include=include
  13874. - am__quote=
  13875. - _am_result=GNU
  13876. -fi
  13877. +# Ignore all kinds of additional output from `make'.
  13878. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13879. +*the\ am__doit\ target*)
  13880. + am__include=include
  13881. + am__quote=
  13882. + _am_result=GNU
  13883. + ;;
  13884. +esac
  13885. # Now try BSD make style include.
  13886. if test "$am__include" = "#"; then
  13887. echo '.include "confinc"' > confmf
  13888. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13889. - am__include=.include
  13890. - am__quote="\""
  13891. - _am_result=BSD
  13892. - fi
  13893. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13894. + *the\ am__doit\ target*)
  13895. + am__include=.include
  13896. + am__quote="\""
  13897. + _am_result=BSD
  13898. + ;;
  13899. + esac
  13900. fi
  13901. AC_SUBST([am__include])
  13902. AC_SUBST([am__quote])
  13903. @@ -7201,14 +8659,14 @@
  13904. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13905. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  13906. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13907. # Free Software Foundation, Inc.
  13908. #
  13909. # This file is free software; the Free Software Foundation
  13910. # gives unlimited permission to copy and/or distribute it,
  13911. # with or without modifications, as long as this notice is preserved.
  13912. -# serial 5
  13913. +# serial 6
  13914. # AM_MISSING_PROG(NAME, PROGRAM)
  13915. # ------------------------------
  13916. @@ -7225,7 +8683,14 @@
  13917. AC_DEFUN([AM_MISSING_HAS_RUN],
  13918. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13919. AC_REQUIRE_AUX_FILE([missing])dnl
  13920. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13921. +if test x"${MISSING+set}" != xset; then
  13922. + case $am_aux_dir in
  13923. + *\ * | *\ *)
  13924. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13925. + *)
  13926. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13927. + esac
  13928. +fi
  13929. # Use eval to expand $SHELL
  13930. if eval "$MISSING --run true"; then
  13931. am_missing_run="$MISSING --run "
  13932. @@ -7263,13 +8728,13 @@
  13933. # Helper functions for option handling. -*- Autoconf -*-
  13934. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13935. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13936. #
  13937. # This file is free software; the Free Software Foundation
  13938. # gives unlimited permission to copy and/or distribute it,
  13939. # with or without modifications, as long as this notice is preserved.
  13940. -# serial 3
  13941. +# serial 4
  13942. # _AM_MANGLE_OPTION(NAME)
  13943. # -----------------------
  13944. @@ -7286,7 +8751,7 @@
  13945. # ----------------------------------
  13946. # OPTIONS is a space-separated list of Automake options.
  13947. AC_DEFUN([_AM_SET_OPTIONS],
  13948. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13949. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13950. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13951. # -------------------------------------------
  13952. @@ -7296,14 +8761,14 @@
  13953. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  13954. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  13955. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13956. # Free Software Foundation, Inc.
  13957. #
  13958. # This file is free software; the Free Software Foundation
  13959. # gives unlimited permission to copy and/or distribute it,
  13960. # with or without modifications, as long as this notice is preserved.
  13961. -# serial 4
  13962. +# serial 5
  13963. # AM_SANITY_CHECK
  13964. # ---------------
  13965. @@ -7312,16 +8777,29 @@
  13966. # Just in case
  13967. sleep 1
  13968. echo timestamp > conftest.file
  13969. +# Reject unsafe characters in $srcdir or the absolute working directory
  13970. +# name. Accept space and tab only in the latter.
  13971. +am_lf='
  13972. +'
  13973. +case `pwd` in
  13974. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13975. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13976. +esac
  13977. +case $srcdir in
  13978. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13979. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13980. +esac
  13981. +
  13982. # Do `set' in a subshell so we don't clobber the current shell's
  13983. # arguments. Must try -L first in case configure is actually a
  13984. # symlink; some systems play weird games with the mod time of symlinks
  13985. # (eg FreeBSD returns the mod time of the symlink's containing
  13986. # directory).
  13987. if (
  13988. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  13989. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13990. if test "$[*]" = "X"; then
  13991. # -L didn't work.
  13992. - set X `ls -t $srcdir/configure conftest.file`
  13993. + set X `ls -t "$srcdir/configure" conftest.file`
  13994. fi
  13995. rm -f conftest.file
  13996. if test "$[*]" != "X $srcdir/configure conftest.file" \
  13997. @@ -7374,18 +8852,25 @@
  13998. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13999. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  14000. -# Copyright (C) 2006 Free Software Foundation, Inc.
  14001. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  14002. #
  14003. # This file is free software; the Free Software Foundation
  14004. # gives unlimited permission to copy and/or distribute it,
  14005. # with or without modifications, as long as this notice is preserved.
  14006. +# serial 2
  14007. +
  14008. # _AM_SUBST_NOTMAKE(VARIABLE)
  14009. # ---------------------------
  14010. -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
  14011. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  14012. # This macro is traced by Automake.
  14013. AC_DEFUN([_AM_SUBST_NOTMAKE])
  14014. +# AM_SUBST_NOTMAKE(VARIABLE)
  14015. +# ---------------------------
  14016. +# Public sister of _AM_SUBST_NOTMAKE.
  14017. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  14018. +
  14019. # Check how to create a tarball. -*- Autoconf -*-
  14020. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  14021. diff -Nur libnet-1.1.5.orig/config.guess libnet-1.1.5/config.guess
  14022. --- libnet-1.1.5.orig/config.guess 2010-11-09 01:48:07.000000000 +0100
  14023. +++ libnet-1.1.5/config.guess 2011-02-24 19:45:54.023551390 +0100
  14024. @@ -1,10 +1,10 @@
  14025. #! /bin/sh
  14026. # Attempt to guess a canonical system name.
  14027. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14028. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  14029. -# Inc.
  14030. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14031. +# Free Software Foundation, Inc.
  14032. -timestamp='2007-03-06'
  14033. +timestamp='2009-06-10'
  14034. # This file is free software; you can redistribute it and/or modify it
  14035. # under the terms of the GNU General Public License as published by
  14036. @@ -56,8 +56,8 @@
  14037. GNU config.guess ($timestamp)
  14038. Originally written by Per Bothner.
  14039. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  14040. -Free Software Foundation, Inc.
  14041. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  14042. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14043. This is free software; see the source for copying conditions. There is NO
  14044. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  14045. @@ -170,7 +170,7 @@
  14046. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  14047. eval $set_cc_for_build
  14048. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14049. - | grep __ELF__ >/dev/null
  14050. + | grep -q __ELF__
  14051. then
  14052. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  14053. # Return netbsd for either. FIX?
  14054. @@ -324,14 +324,30 @@
  14055. case `/usr/bin/uname -p` in
  14056. sparc) echo sparc-icl-nx7; exit ;;
  14057. esac ;;
  14058. + s390x:SunOS:*:*)
  14059. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14060. + exit ;;
  14061. sun4H:SunOS:5.*:*)
  14062. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14063. exit ;;
  14064. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  14065. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14066. exit ;;
  14067. - i86pc:SunOS:5.*:*)
  14068. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14069. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  14070. + eval $set_cc_for_build
  14071. + SUN_ARCH="i386"
  14072. + # If there is a compiler, see if it is configured for 64-bit objects.
  14073. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  14074. + # This test works for both compilers.
  14075. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  14076. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  14077. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  14078. + grep IS_64BIT_ARCH >/dev/null
  14079. + then
  14080. + SUN_ARCH="x86_64"
  14081. + fi
  14082. + fi
  14083. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14084. exit ;;
  14085. sun4*:SunOS:6*:*)
  14086. # According to config.sub, this is the proper way to canonicalize
  14087. @@ -532,7 +548,7 @@
  14088. echo rs6000-ibm-aix3.2
  14089. fi
  14090. exit ;;
  14091. - *:AIX:*:[45])
  14092. + *:AIX:*:[456])
  14093. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  14094. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  14095. IBM_ARCH=rs6000
  14096. @@ -640,7 +656,7 @@
  14097. # => hppa64-hp-hpux11.23
  14098. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  14099. - grep __LP64__ >/dev/null
  14100. + grep -q __LP64__
  14101. then
  14102. HP_ARCH="hppa2.0w"
  14103. else
  14104. @@ -793,16 +809,22 @@
  14105. exit ;;
  14106. *:Interix*:[3456]*)
  14107. case ${UNAME_MACHINE} in
  14108. - x86)
  14109. + x86)
  14110. echo i586-pc-interix${UNAME_RELEASE}
  14111. exit ;;
  14112. - EM64T | authenticamd)
  14113. + EM64T | authenticamd | genuineintel)
  14114. echo x86_64-unknown-interix${UNAME_RELEASE}
  14115. exit ;;
  14116. + IA64)
  14117. + echo ia64-unknown-interix${UNAME_RELEASE}
  14118. + exit ;;
  14119. esac ;;
  14120. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  14121. echo i${UNAME_MACHINE}-pc-mks
  14122. exit ;;
  14123. + 8664:Windows_NT:*)
  14124. + echo x86_64-pc-mks
  14125. + exit ;;
  14126. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  14127. # How do we know it's Interix rather than the generic POSIX subsystem?
  14128. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  14129. @@ -833,7 +855,14 @@
  14130. echo ${UNAME_MACHINE}-pc-minix
  14131. exit ;;
  14132. arm*:Linux:*:*)
  14133. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  14134. + eval $set_cc_for_build
  14135. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14136. + | grep -q __ARM_EABI__
  14137. + then
  14138. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14139. + else
  14140. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  14141. + fi
  14142. exit ;;
  14143. avr32*:Linux:*:*)
  14144. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14145. @@ -856,40 +885,17 @@
  14146. m68*:Linux:*:*)
  14147. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14148. exit ;;
  14149. - mips:Linux:*:*)
  14150. - eval $set_cc_for_build
  14151. - sed 's/^ //' << EOF >$dummy.c
  14152. - #undef CPU
  14153. - #undef mips
  14154. - #undef mipsel
  14155. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14156. - CPU=mipsel
  14157. - #else
  14158. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14159. - CPU=mips
  14160. - #else
  14161. - CPU=
  14162. - #endif
  14163. - #endif
  14164. -EOF
  14165. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14166. - /^CPU/{
  14167. - s: ::g
  14168. - p
  14169. - }'`"
  14170. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14171. - ;;
  14172. - mips64:Linux:*:*)
  14173. + mips:Linux:*:* | mips64:Linux:*:*)
  14174. eval $set_cc_for_build
  14175. sed 's/^ //' << EOF >$dummy.c
  14176. #undef CPU
  14177. - #undef mips64
  14178. - #undef mips64el
  14179. + #undef ${UNAME_MACHINE}
  14180. + #undef ${UNAME_MACHINE}el
  14181. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14182. - CPU=mips64el
  14183. + CPU=${UNAME_MACHINE}el
  14184. #else
  14185. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14186. - CPU=mips64
  14187. + CPU=${UNAME_MACHINE}
  14188. #else
  14189. CPU=
  14190. #endif
  14191. @@ -921,10 +927,13 @@
  14192. EV67) UNAME_MACHINE=alphaev67 ;;
  14193. EV68*) UNAME_MACHINE=alphaev68 ;;
  14194. esac
  14195. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  14196. + objdump --private-headers /bin/sh | grep -q ld.so.1
  14197. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  14198. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  14199. exit ;;
  14200. + padre:Linux:*:*)
  14201. + echo sparc-unknown-linux-gnu
  14202. + exit ;;
  14203. parisc:Linux:*:* | hppa:Linux:*:*)
  14204. # Look for CPU level
  14205. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  14206. @@ -954,8 +963,8 @@
  14207. x86_64:Linux:*:*)
  14208. echo x86_64-unknown-linux-gnu
  14209. exit ;;
  14210. - xtensa:Linux:*:*)
  14211. - echo xtensa-unknown-linux-gnu
  14212. + xtensa*:Linux:*:*)
  14213. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14214. exit ;;
  14215. i*86:Linux:*:*)
  14216. # The BFD linker knows what the default object file format is, so
  14217. @@ -972,17 +981,6 @@
  14218. elf32-i386)
  14219. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  14220. ;;
  14221. - a.out-i386-linux)
  14222. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  14223. - exit ;;
  14224. - coff-i386)
  14225. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  14226. - exit ;;
  14227. - "")
  14228. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  14229. - # one that does not give us useful --help.
  14230. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  14231. - exit ;;
  14232. esac
  14233. # Determine whether the default compiler is a.out or elf
  14234. eval $set_cc_for_build
  14235. @@ -1048,7 +1046,7 @@
  14236. i*86:syllable:*:*)
  14237. echo ${UNAME_MACHINE}-pc-syllable
  14238. exit ;;
  14239. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  14240. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  14241. echo i386-unknown-lynxos${UNAME_RELEASE}
  14242. exit ;;
  14243. i*86:*DOS:*:*)
  14244. @@ -1092,8 +1090,11 @@
  14245. pc:*:*:*)
  14246. # Left here for compatibility:
  14247. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  14248. - # the processor, so we play safe by assuming i386.
  14249. - echo i386-pc-msdosdjgpp
  14250. + # the processor, so we play safe by assuming i586.
  14251. + # Note: whatever this is, it MUST be the same as what config.sub
  14252. + # prints for the "djgpp" host, or else GDB configury will decide that
  14253. + # this is a cross-build.
  14254. + echo i586-pc-msdosdjgpp
  14255. exit ;;
  14256. Intel:Mach:3*:*)
  14257. echo i386-pc-mach3
  14258. @@ -1131,6 +1132,16 @@
  14259. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  14260. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14261. && { echo i486-ncr-sysv4; exit; } ;;
  14262. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  14263. + OS_REL='.3'
  14264. + test -r /etc/.relid \
  14265. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14266. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14267. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14268. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14269. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  14270. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  14271. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14272. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  14273. echo m68k-unknown-lynxos${UNAME_RELEASE}
  14274. exit ;;
  14275. @@ -1143,7 +1154,7 @@
  14276. rs6000:LynxOS:2.*:*)
  14277. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  14278. exit ;;
  14279. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  14280. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  14281. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  14282. exit ;;
  14283. SM[BE]S:UNIX_SV:*:*)
  14284. @@ -1206,6 +1217,9 @@
  14285. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  14286. echo i586-pc-beos
  14287. exit ;;
  14288. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  14289. + echo i586-pc-haiku
  14290. + exit ;;
  14291. SX-4:SUPER-UX:*:*)
  14292. echo sx4-nec-superux${UNAME_RELEASE}
  14293. exit ;;
  14294. @@ -1314,6 +1328,9 @@
  14295. i*86:rdos:*:*)
  14296. echo ${UNAME_MACHINE}-pc-rdos
  14297. exit ;;
  14298. + i*86:AROS:*:*)
  14299. + echo ${UNAME_MACHINE}-pc-aros
  14300. + exit ;;
  14301. esac
  14302. #echo '(No uname command or uname output not recognized.)' 1>&2
  14303. @@ -1474,9 +1491,9 @@
  14304. the operating system you are using. It is advised that you
  14305. download the most up to date version of the config scripts from
  14306. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  14307. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  14308. and
  14309. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  14310. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  14311. If the version you run ($0) is already up to date, please
  14312. send the following data and any information you think might be
  14313. diff -Nur libnet-1.1.5.orig/config.sub libnet-1.1.5/config.sub
  14314. --- libnet-1.1.5.orig/config.sub 2010-11-09 01:48:07.000000000 +0100
  14315. +++ libnet-1.1.5/config.sub 2011-02-24 19:45:54.033552567 +0100
  14316. @@ -1,10 +1,10 @@
  14317. #! /bin/sh
  14318. # Configuration validation subroutine script.
  14319. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14320. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  14321. -# Inc.
  14322. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14323. +# Free Software Foundation, Inc.
  14324. -timestamp='2007-01-18'
  14325. +timestamp='2009-06-11'
  14326. # This file is (in principle) common to ALL GNU software.
  14327. # The presence of a machine in this file suggests that SOME GNU software
  14328. @@ -72,8 +72,8 @@
  14329. version="\
  14330. GNU config.sub ($timestamp)
  14331. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  14332. -Free Software Foundation, Inc.
  14333. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  14334. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14335. This is free software; see the source for copying conditions. There is NO
  14336. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  14337. @@ -122,6 +122,7 @@
  14338. case $maybe_os in
  14339. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  14340. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  14341. + kopensolaris*-gnu* | \
  14342. storm-chaos* | os2-emx* | rtmk-nova*)
  14343. os=-$maybe_os
  14344. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  14345. @@ -152,6 +153,9 @@
  14346. os=
  14347. basic_machine=$1
  14348. ;;
  14349. + -bluegene*)
  14350. + os=-cnk
  14351. + ;;
  14352. -sim | -cisco | -oki | -wec | -winbond)
  14353. os=
  14354. basic_machine=$1
  14355. @@ -249,13 +253,16 @@
  14356. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  14357. | i370 | i860 | i960 | ia64 \
  14358. | ip2k | iq2000 \
  14359. + | lm32 \
  14360. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  14361. - | maxq | mb | microblaze | mcore | mep \
  14362. + | maxq | mb | microblaze | mcore | mep | metag \
  14363. | mips | mipsbe | mipseb | mipsel | mipsle \
  14364. | mips16 \
  14365. | mips64 | mips64el \
  14366. - | mips64vr | mips64vrel \
  14367. + | mips64octeon | mips64octeonel \
  14368. | mips64orion | mips64orionel \
  14369. + | mips64r5900 | mips64r5900el \
  14370. + | mips64vr | mips64vrel \
  14371. | mips64vr4100 | mips64vr4100el \
  14372. | mips64vr4300 | mips64vr4300el \
  14373. | mips64vr5000 | mips64vr5000el \
  14374. @@ -268,6 +275,7 @@
  14375. | mipsisa64sr71k | mipsisa64sr71kel \
  14376. | mipstx39 | mipstx39el \
  14377. | mn10200 | mn10300 \
  14378. + | moxie \
  14379. | mt \
  14380. | msp430 \
  14381. | nios | nios2 \
  14382. @@ -277,7 +285,7 @@
  14383. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  14384. | pyramid \
  14385. | score \
  14386. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  14387. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  14388. | sh64 | sh64le \
  14389. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  14390. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  14391. @@ -286,7 +294,7 @@
  14392. | v850 | v850e \
  14393. | we32k \
  14394. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  14395. - | z8k)
  14396. + | z8k | z80)
  14397. basic_machine=$basic_machine-unknown
  14398. ;;
  14399. m6811 | m68hc11 | m6812 | m68hc12)
  14400. @@ -329,14 +337,17 @@
  14401. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  14402. | i*86-* | i860-* | i960-* | ia64-* \
  14403. | ip2k-* | iq2000-* \
  14404. + | lm32-* \
  14405. | m32c-* | m32r-* | m32rle-* \
  14406. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  14407. - | m88110-* | m88k-* | maxq-* | mcore-* \
  14408. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  14409. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  14410. | mips16-* \
  14411. | mips64-* | mips64el-* \
  14412. - | mips64vr-* | mips64vrel-* \
  14413. + | mips64octeon-* | mips64octeonel-* \
  14414. | mips64orion-* | mips64orionel-* \
  14415. + | mips64r5900-* | mips64r5900el-* \
  14416. + | mips64vr-* | mips64vrel-* \
  14417. | mips64vr4100-* | mips64vr4100el-* \
  14418. | mips64vr4300-* | mips64vr4300el-* \
  14419. | mips64vr5000-* | mips64vr5000el-* \
  14420. @@ -358,20 +369,24 @@
  14421. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  14422. | pyramid-* \
  14423. | romp-* | rs6000-* \
  14424. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  14425. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  14426. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  14427. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  14428. | sparclite-* \
  14429. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  14430. | tahoe-* | thumb-* \
  14431. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  14432. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  14433. | tron-* \
  14434. | v850-* | v850e-* | vax-* \
  14435. | we32k-* \
  14436. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  14437. - | xstormy16-* | xtensa-* \
  14438. + | xstormy16-* | xtensa*-* \
  14439. | ymp-* \
  14440. - | z8k-*)
  14441. + | z8k-* | z80-*)
  14442. + ;;
  14443. + # Recognize the basic CPU types without company name, with glob match.
  14444. + xtensa*)
  14445. + basic_machine=$basic_machine-unknown
  14446. ;;
  14447. # Recognize the various machine names and aliases which stand
  14448. # for a CPU type and a company and sometimes even an OS.
  14449. @@ -435,6 +450,10 @@
  14450. basic_machine=m68k-apollo
  14451. os=-bsd
  14452. ;;
  14453. + aros)
  14454. + basic_machine=i386-pc
  14455. + os=-aros
  14456. + ;;
  14457. aux)
  14458. basic_machine=m68k-apple
  14459. os=-aux
  14460. @@ -443,10 +462,26 @@
  14461. basic_machine=ns32k-sequent
  14462. os=-dynix
  14463. ;;
  14464. + blackfin)
  14465. + basic_machine=bfin-unknown
  14466. + os=-linux
  14467. + ;;
  14468. + blackfin-*)
  14469. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  14470. + os=-linux
  14471. + ;;
  14472. + bluegene*)
  14473. + basic_machine=powerpc-ibm
  14474. + os=-cnk
  14475. + ;;
  14476. c90)
  14477. basic_machine=c90-cray
  14478. os=-unicos
  14479. ;;
  14480. + cegcc)
  14481. + basic_machine=arm-unknown
  14482. + os=-cegcc
  14483. + ;;
  14484. convex-c1)
  14485. basic_machine=c1-convex
  14486. os=-bsd
  14487. @@ -475,8 +510,8 @@
  14488. basic_machine=craynv-cray
  14489. os=-unicosmp
  14490. ;;
  14491. - cr16c)
  14492. - basic_machine=cr16c-unknown
  14493. + cr16)
  14494. + basic_machine=cr16-unknown
  14495. os=-elf
  14496. ;;
  14497. crds | unos)
  14498. @@ -514,6 +549,10 @@
  14499. basic_machine=m88k-motorola
  14500. os=-sysv3
  14501. ;;
  14502. + dicos)
  14503. + basic_machine=i686-pc
  14504. + os=-dicos
  14505. + ;;
  14506. djgpp)
  14507. basic_machine=i586-pc
  14508. os=-msdosdjgpp
  14509. @@ -668,6 +707,14 @@
  14510. basic_machine=m68k-isi
  14511. os=-sysv
  14512. ;;
  14513. + m68knommu)
  14514. + basic_machine=m68k-unknown
  14515. + os=-linux
  14516. + ;;
  14517. + m68knommu-*)
  14518. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  14519. + os=-linux
  14520. + ;;
  14521. m88k-omron*)
  14522. basic_machine=m88k-omron
  14523. ;;
  14524. @@ -683,6 +730,10 @@
  14525. basic_machine=i386-pc
  14526. os=-mingw32
  14527. ;;
  14528. + mingw32ce)
  14529. + basic_machine=arm-unknown
  14530. + os=-mingw32ce
  14531. + ;;
  14532. miniframe)
  14533. basic_machine=m68000-convergent
  14534. ;;
  14535. @@ -809,6 +860,14 @@
  14536. basic_machine=i860-intel
  14537. os=-osf
  14538. ;;
  14539. + parisc)
  14540. + basic_machine=hppa-unknown
  14541. + os=-linux
  14542. + ;;
  14543. + parisc-*)
  14544. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  14545. + os=-linux
  14546. + ;;
  14547. pbd)
  14548. basic_machine=sparc-tti
  14549. ;;
  14550. @@ -1017,6 +1076,10 @@
  14551. basic_machine=tic6x-unknown
  14552. os=-coff
  14553. ;;
  14554. + tile*)
  14555. + basic_machine=tile-unknown
  14556. + os=-linux-gnu
  14557. + ;;
  14558. tx39)
  14559. basic_machine=mipstx39-unknown
  14560. ;;
  14561. @@ -1092,6 +1155,10 @@
  14562. basic_machine=z8k-unknown
  14563. os=-sim
  14564. ;;
  14565. + z80-*-coff)
  14566. + basic_machine=z80-unknown
  14567. + os=-sim
  14568. + ;;
  14569. none)
  14570. basic_machine=none-none
  14571. os=-none
  14572. @@ -1130,7 +1197,7 @@
  14573. we32k)
  14574. basic_machine=we32k-att
  14575. ;;
  14576. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  14577. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  14578. basic_machine=sh-unknown
  14579. ;;
  14580. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  14581. @@ -1200,10 +1267,11 @@
  14582. # Each alternative MUST END IN A *, to match a version number.
  14583. # -sysv* is not here because it comes later, after sysvr4.
  14584. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  14585. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  14586. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  14587. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  14588. + | -kopensolaris* \
  14589. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  14590. - | -aos* \
  14591. + | -aos* | -aros* \
  14592. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  14593. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  14594. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  14595. @@ -1212,7 +1280,7 @@
  14596. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  14597. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  14598. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  14599. - | -chorusos* | -chorusrdb* \
  14600. + | -chorusos* | -chorusrdb* | -cegcc* \
  14601. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  14602. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  14603. | -uxpv* | -beos* | -mpeix* | -udk* \
  14604. @@ -1352,6 +1420,9 @@
  14605. -zvmoe)
  14606. os=-zvmoe
  14607. ;;
  14608. + -dicos*)
  14609. + os=-dicos
  14610. + ;;
  14611. -none)
  14612. ;;
  14613. *)
  14614. @@ -1549,7 +1620,7 @@
  14615. -sunos*)
  14616. vendor=sun
  14617. ;;
  14618. - -aix*)
  14619. + -cnk*|-aix*)
  14620. vendor=ibm
  14621. ;;
  14622. -beos*)
  14623. diff -Nur libnet-1.1.5.orig/configure libnet-1.1.5/configure
  14624. --- libnet-1.1.5.orig/configure 2010-11-09 01:48:03.000000000 +0100
  14625. +++ libnet-1.1.5/configure 2011-02-24 19:45:51.603551328 +0100
  14626. @@ -1,60 +1,83 @@
  14627. #! /bin/sh
  14628. # Guess values for system-dependent variables and create Makefiles.
  14629. -# Generated by GNU Autoconf 2.61 for libnet 1.1.5.
  14630. +# Generated by GNU Autoconf 2.65 for libnet 1.1.5.
  14631. +#
  14632. #
  14633. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  14634. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  14635. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  14636. +# Inc.
  14637. +#
  14638. +#
  14639. # This configure script is free software; the Free Software Foundation
  14640. # gives unlimited permission to copy, distribute and modify it.
  14641. -## --------------------- ##
  14642. -## M4sh Initialization. ##
  14643. -## --------------------- ##
  14644. +## -------------------- ##
  14645. +## M4sh Initialization. ##
  14646. +## -------------------- ##
  14647. # Be more Bourne compatible
  14648. DUALCASE=1; export DUALCASE # for MKS sh
  14649. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14650. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14651. emulate sh
  14652. NULLCMD=:
  14653. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  14654. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14655. # is contrary to our usage. Disable this feature.
  14656. alias -g '${1+"$@"}'='"$@"'
  14657. setopt NO_GLOB_SUBST
  14658. else
  14659. - case `(set -o) 2>/dev/null` in
  14660. - *posix*) set -o posix ;;
  14661. + case `(set -o) 2>/dev/null` in #(
  14662. + *posix*) :
  14663. + set -o posix ;; #(
  14664. + *) :
  14665. + ;;
  14666. esac
  14667. -
  14668. fi
  14669. -
  14670. -
  14671. -# PATH needs CR
  14672. -# Avoid depending upon Character Ranges.
  14673. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14674. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14675. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14676. -as_cr_digits='0123456789'
  14677. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  14678. -
  14679. -# The user is always right.
  14680. -if test "${PATH_SEPARATOR+set}" != set; then
  14681. - echo "#! /bin/sh" >conf$$.sh
  14682. - echo "exit 0" >>conf$$.sh
  14683. - chmod +x conf$$.sh
  14684. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  14685. - PATH_SEPARATOR=';'
  14686. - else
  14687. - PATH_SEPARATOR=:
  14688. +as_nl='
  14689. +'
  14690. +export as_nl
  14691. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  14692. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14693. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14694. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14695. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  14696. +# but without wasting forks for bash or zsh.
  14697. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  14698. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14699. + as_echo='print -r --'
  14700. + as_echo_n='print -rn --'
  14701. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14702. + as_echo='printf %s\n'
  14703. + as_echo_n='printf %s'
  14704. +else
  14705. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14706. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14707. + as_echo_n='/usr/ucb/echo -n'
  14708. + else
  14709. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14710. + as_echo_n_body='eval
  14711. + arg=$1;
  14712. + case $arg in #(
  14713. + *"$as_nl"*)
  14714. + expr "X$arg" : "X\\(.*\\)$as_nl";
  14715. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14716. + esac;
  14717. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14718. + '
  14719. + export as_echo_n_body
  14720. + as_echo_n='sh -c $as_echo_n_body as_echo'
  14721. fi
  14722. - rm -f conf$$.sh
  14723. + export as_echo_body
  14724. + as_echo='sh -c $as_echo_body as_echo'
  14725. fi
  14726. -# Support unset when possible.
  14727. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14728. - as_unset=unset
  14729. -else
  14730. - as_unset=false
  14731. +# The user is always right.
  14732. +if test "${PATH_SEPARATOR+set}" != set; then
  14733. + PATH_SEPARATOR=:
  14734. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14735. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14736. + PATH_SEPARATOR=';'
  14737. + }
  14738. fi
  14739. @@ -63,20 +86,18 @@
  14740. # there to prevent editors from complaining about space-tab.
  14741. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14742. # splitting by setting IFS to empty value.)
  14743. -as_nl='
  14744. -'
  14745. IFS=" "" $as_nl"
  14746. # Find who we are. Look in the path if we contain no directory separator.
  14747. -case $0 in
  14748. +case $0 in #((
  14749. *[\\/]* ) as_myself=$0 ;;
  14750. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14751. for as_dir in $PATH
  14752. do
  14753. IFS=$as_save_IFS
  14754. test -z "$as_dir" && as_dir=.
  14755. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14756. -done
  14757. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14758. + done
  14759. IFS=$as_save_IFS
  14760. ;;
  14761. @@ -87,32 +108,270 @@
  14762. as_myself=$0
  14763. fi
  14764. if test ! -f "$as_myself"; then
  14765. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14766. - { (exit 1); exit 1; }
  14767. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14768. + exit 1
  14769. fi
  14770. -# Work around bugs in pre-3.0 UWIN ksh.
  14771. -for as_var in ENV MAIL MAILPATH
  14772. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14773. +# Unset variables that we do not need and which cause bugs (e.g. in
  14774. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14775. +# suppresses any "Segmentation fault" message there. '((' could
  14776. +# trigger a bug in pdksh 5.2.14.
  14777. +for as_var in BASH_ENV ENV MAIL MAILPATH
  14778. +do eval test x\${$as_var+set} = xset \
  14779. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14780. done
  14781. PS1='$ '
  14782. PS2='> '
  14783. PS4='+ '
  14784. # NLS nuisances.
  14785. -for as_var in \
  14786. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  14787. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  14788. - LC_TELEPHONE LC_TIME
  14789. +LC_ALL=C
  14790. +export LC_ALL
  14791. +LANGUAGE=C
  14792. +export LANGUAGE
  14793. +
  14794. +# CDPATH.
  14795. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14796. +
  14797. +if test "x$CONFIG_SHELL" = x; then
  14798. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  14799. + emulate sh
  14800. + NULLCMD=:
  14801. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  14802. + # is contrary to our usage. Disable this feature.
  14803. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  14804. + setopt NO_GLOB_SUBST
  14805. +else
  14806. + case \`(set -o) 2>/dev/null\` in #(
  14807. + *posix*) :
  14808. + set -o posix ;; #(
  14809. + *) :
  14810. + ;;
  14811. +esac
  14812. +fi
  14813. +"
  14814. + as_required="as_fn_return () { (exit \$1); }
  14815. +as_fn_success () { as_fn_return 0; }
  14816. +as_fn_failure () { as_fn_return 1; }
  14817. +as_fn_ret_success () { return 0; }
  14818. +as_fn_ret_failure () { return 1; }
  14819. +
  14820. +exitcode=0
  14821. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  14822. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  14823. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  14824. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  14825. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  14826. +
  14827. +else
  14828. + exitcode=1; echo positional parameters were not saved.
  14829. +fi
  14830. +test x\$exitcode = x0 || exit 1"
  14831. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  14832. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  14833. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  14834. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  14835. +test \$(( 1 + 1 )) = 2 || exit 1"
  14836. + if (eval "$as_required") 2>/dev/null; then :
  14837. + as_have_required=yes
  14838. +else
  14839. + as_have_required=no
  14840. +fi
  14841. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  14842. +
  14843. +else
  14844. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14845. +as_found=false
  14846. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  14847. do
  14848. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  14849. - eval $as_var=C; export $as_var
  14850. - else
  14851. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14852. - fi
  14853. + IFS=$as_save_IFS
  14854. + test -z "$as_dir" && as_dir=.
  14855. + as_found=:
  14856. + case $as_dir in #(
  14857. + /*)
  14858. + for as_base in sh bash ksh sh5; do
  14859. + # Try only shells that exist, to save several forks.
  14860. + as_shell=$as_dir/$as_base
  14861. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  14862. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14863. + CONFIG_SHELL=$as_shell as_have_required=yes
  14864. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14865. + break 2
  14866. +fi
  14867. +fi
  14868. + done;;
  14869. + esac
  14870. + as_found=false
  14871. done
  14872. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  14873. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  14874. + CONFIG_SHELL=$SHELL as_have_required=yes
  14875. +fi; }
  14876. +IFS=$as_save_IFS
  14877. +
  14878. +
  14879. + if test "x$CONFIG_SHELL" != x; then :
  14880. + # We cannot yet assume a decent shell, so we have to provide a
  14881. + # neutralization value for shells without unset; and this also
  14882. + # works around shells that cannot unset nonexistent variables.
  14883. + BASH_ENV=/dev/null
  14884. + ENV=/dev/null
  14885. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  14886. + export CONFIG_SHELL
  14887. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  14888. +fi
  14889. +
  14890. + if test x$as_have_required = xno; then :
  14891. + $as_echo "$0: This script requires a shell more modern than all"
  14892. + $as_echo "$0: the shells that I found on your system."
  14893. + if test x${ZSH_VERSION+set} = xset ; then
  14894. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  14895. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  14896. + else
  14897. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  14898. +$0: including any error possibly output before this
  14899. +$0: message. Then install a modern shell, or manually run
  14900. +$0: the script under such a shell if you do have one."
  14901. + fi
  14902. + exit 1
  14903. +fi
  14904. +fi
  14905. +fi
  14906. +SHELL=${CONFIG_SHELL-/bin/sh}
  14907. +export SHELL
  14908. +# Unset more variables known to interfere with behavior of common tools.
  14909. +CLICOLOR_FORCE= GREP_OPTIONS=
  14910. +unset CLICOLOR_FORCE GREP_OPTIONS
  14911. +
  14912. +## --------------------- ##
  14913. +## M4sh Shell Functions. ##
  14914. +## --------------------- ##
  14915. +# as_fn_unset VAR
  14916. +# ---------------
  14917. +# Portably unset VAR.
  14918. +as_fn_unset ()
  14919. +{
  14920. + { eval $1=; unset $1;}
  14921. +}
  14922. +as_unset=as_fn_unset
  14923. +
  14924. +# as_fn_set_status STATUS
  14925. +# -----------------------
  14926. +# Set $? to STATUS, without forking.
  14927. +as_fn_set_status ()
  14928. +{
  14929. + return $1
  14930. +} # as_fn_set_status
  14931. +
  14932. +# as_fn_exit STATUS
  14933. +# -----------------
  14934. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14935. +as_fn_exit ()
  14936. +{
  14937. + set +e
  14938. + as_fn_set_status $1
  14939. + exit $1
  14940. +} # as_fn_exit
  14941. +
  14942. +# as_fn_mkdir_p
  14943. +# -------------
  14944. +# Create "$as_dir" as a directory, including parents if necessary.
  14945. +as_fn_mkdir_p ()
  14946. +{
  14947. +
  14948. + case $as_dir in #(
  14949. + -*) as_dir=./$as_dir;;
  14950. + esac
  14951. + test -d "$as_dir" || eval $as_mkdir_p || {
  14952. + as_dirs=
  14953. + while :; do
  14954. + case $as_dir in #(
  14955. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14956. + *) as_qdir=$as_dir;;
  14957. + esac
  14958. + as_dirs="'$as_qdir' $as_dirs"
  14959. + as_dir=`$as_dirname -- "$as_dir" ||
  14960. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14961. + X"$as_dir" : 'X\(//\)[^/]' \| \
  14962. + X"$as_dir" : 'X\(//\)$' \| \
  14963. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14964. +$as_echo X"$as_dir" |
  14965. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14966. + s//\1/
  14967. + q
  14968. + }
  14969. + /^X\(\/\/\)[^/].*/{
  14970. + s//\1/
  14971. + q
  14972. + }
  14973. + /^X\(\/\/\)$/{
  14974. + s//\1/
  14975. + q
  14976. + }
  14977. + /^X\(\/\).*/{
  14978. + s//\1/
  14979. + q
  14980. + }
  14981. + s/.*/./; q'`
  14982. + test -d "$as_dir" && break
  14983. + done
  14984. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  14985. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14986. +
  14987. +
  14988. +} # as_fn_mkdir_p
  14989. +# as_fn_append VAR VALUE
  14990. +# ----------------------
  14991. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  14992. +# advantage of any shell optimizations that allow amortized linear growth over
  14993. +# repeated appends, instead of the typical quadratic growth present in naive
  14994. +# implementations.
  14995. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14996. + eval 'as_fn_append ()
  14997. + {
  14998. + eval $1+=\$2
  14999. + }'
  15000. +else
  15001. + as_fn_append ()
  15002. + {
  15003. + eval $1=\$$1\$2
  15004. + }
  15005. +fi # as_fn_append
  15006. +
  15007. +# as_fn_arith ARG...
  15008. +# ------------------
  15009. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  15010. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  15011. +# must be portable across $(()) and expr.
  15012. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15013. + eval 'as_fn_arith ()
  15014. + {
  15015. + as_val=$(( $* ))
  15016. + }'
  15017. +else
  15018. + as_fn_arith ()
  15019. + {
  15020. + as_val=`expr "$@" || test $? -eq 1`
  15021. + }
  15022. +fi # as_fn_arith
  15023. +
  15024. +
  15025. +# as_fn_error ERROR [LINENO LOG_FD]
  15026. +# ---------------------------------
  15027. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15028. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15029. +# script with status $?, using 1 if that was 0.
  15030. +as_fn_error ()
  15031. +{
  15032. + as_status=$?; test $as_status -eq 0 && as_status=1
  15033. + if test "$3"; then
  15034. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15035. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  15036. + fi
  15037. + $as_echo "$as_me: error: $1" >&2
  15038. + as_fn_exit $as_status
  15039. +} # as_fn_error
  15040. -# Required to use basename.
  15041. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15042. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15043. as_expr=expr
  15044. @@ -126,13 +385,17 @@
  15045. as_basename=false
  15046. fi
  15047. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15048. + as_dirname=dirname
  15049. +else
  15050. + as_dirname=false
  15051. +fi
  15052. -# Name of the executable.
  15053. as_me=`$as_basename -- "$0" ||
  15054. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15055. X"$0" : 'X\(//\)$' \| \
  15056. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15057. -echo X/"$0" |
  15058. +$as_echo X/"$0" |
  15059. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15060. s//\1/
  15061. q
  15062. @@ -147,428 +410,142 @@
  15063. }
  15064. s/.*/./; q'`
  15065. -# CDPATH.
  15066. -$as_unset CDPATH
  15067. +# Avoid depending upon Character Ranges.
  15068. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15069. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15070. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15071. +as_cr_digits='0123456789'
  15072. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  15073. -if test "x$CONFIG_SHELL" = x; then
  15074. - if (eval ":") 2>/dev/null; then
  15075. - as_have_required=yes
  15076. -else
  15077. - as_have_required=no
  15078. -fi
  15079. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  15080. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  15081. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  15082. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  15083. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  15084. + sed -n '
  15085. + p
  15086. + /[$]LINENO/=
  15087. + ' <$as_myself |
  15088. + sed '
  15089. + s/[$]LINENO.*/&-/
  15090. + t lineno
  15091. + b
  15092. + :lineno
  15093. + N
  15094. + :loop
  15095. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  15096. + t loop
  15097. + s/-\n.*//
  15098. + ' >$as_me.lineno &&
  15099. + chmod +x "$as_me.lineno" ||
  15100. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  15101. - if test $as_have_required = yes && (eval ":
  15102. -(as_func_return () {
  15103. - (exit \$1)
  15104. -}
  15105. -as_func_success () {
  15106. - as_func_return 0
  15107. -}
  15108. -as_func_failure () {
  15109. - as_func_return 1
  15110. -}
  15111. -as_func_ret_success () {
  15112. - return 0
  15113. -}
  15114. -as_func_ret_failure () {
  15115. - return 1
  15116. + # Don't try to exec as it changes $[0], causing all sort of problems
  15117. + # (the dirname of $[0] is not the place where we might find the
  15118. + # original and so on. Autoconf is especially sensitive to this).
  15119. + . "./$as_me.lineno"
  15120. + # Exit status is that of the last command.
  15121. + exit
  15122. }
  15123. -exitcode=0
  15124. -if as_func_success; then
  15125. - :
  15126. -else
  15127. - exitcode=1
  15128. - echo as_func_success failed.
  15129. -fi
  15130. +ECHO_C= ECHO_N= ECHO_T=
  15131. +case `echo -n x` in #(((((
  15132. +-n*)
  15133. + case `echo 'xy\c'` in
  15134. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15135. + xy) ECHO_C='\c';;
  15136. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15137. + ECHO_T=' ';;
  15138. + esac;;
  15139. +*)
  15140. + ECHO_N='-n';;
  15141. +esac
  15142. -if as_func_failure; then
  15143. - exitcode=1
  15144. - echo as_func_failure succeeded.
  15145. +rm -f conf$$ conf$$.exe conf$$.file
  15146. +if test -d conf$$.dir; then
  15147. + rm -f conf$$.dir/conf$$.file
  15148. +else
  15149. + rm -f conf$$.dir
  15150. + mkdir conf$$.dir 2>/dev/null
  15151. fi
  15152. -
  15153. -if as_func_ret_success; then
  15154. - :
  15155. +if (echo >conf$$.file) 2>/dev/null; then
  15156. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  15157. + as_ln_s='ln -s'
  15158. + # ... but there are two gotchas:
  15159. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15160. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15161. + # In both cases, we have to default to `cp -p'.
  15162. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15163. + as_ln_s='cp -p'
  15164. + elif ln conf$$.file conf$$ 2>/dev/null; then
  15165. + as_ln_s=ln
  15166. + else
  15167. + as_ln_s='cp -p'
  15168. + fi
  15169. else
  15170. - exitcode=1
  15171. - echo as_func_ret_success failed.
  15172. + as_ln_s='cp -p'
  15173. fi
  15174. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15175. +rmdir conf$$.dir 2>/dev/null
  15176. -if as_func_ret_failure; then
  15177. - exitcode=1
  15178. - echo as_func_ret_failure succeeded.
  15179. +if mkdir -p . 2>/dev/null; then
  15180. + as_mkdir_p='mkdir -p "$as_dir"'
  15181. +else
  15182. + test -d ./-p && rmdir ./-p
  15183. + as_mkdir_p=false
  15184. fi
  15185. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  15186. - :
  15187. +if test -x / >/dev/null 2>&1; then
  15188. + as_test_x='test -x'
  15189. else
  15190. - exitcode=1
  15191. - echo positional parameters were not saved.
  15192. + if ls -dL / >/dev/null 2>&1; then
  15193. + as_ls_L_option=L
  15194. + else
  15195. + as_ls_L_option=
  15196. + fi
  15197. + as_test_x='
  15198. + eval sh -c '\''
  15199. + if test -d "$1"; then
  15200. + test -d "$1/.";
  15201. + else
  15202. + case $1 in #(
  15203. + -*)set "./$1";;
  15204. + esac;
  15205. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15206. + ???[sx]*):;;*)false;;esac;fi
  15207. + '\'' sh
  15208. + '
  15209. fi
  15210. +as_executable_p=$as_test_x
  15211. -test \$exitcode = 0) || { (exit 1); exit 1; }
  15212. -
  15213. -(
  15214. - as_lineno_1=\$LINENO
  15215. - as_lineno_2=\$LINENO
  15216. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  15217. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  15218. -") 2> /dev/null; then
  15219. - :
  15220. -else
  15221. - as_candidate_shells=
  15222. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15223. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  15224. -do
  15225. - IFS=$as_save_IFS
  15226. - test -z "$as_dir" && as_dir=.
  15227. - case $as_dir in
  15228. - /*)
  15229. - for as_base in sh bash ksh sh5; do
  15230. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  15231. - done;;
  15232. - esac
  15233. -done
  15234. -IFS=$as_save_IFS
  15235. +# Sed expression to map a string onto a valid CPP name.
  15236. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15237. +# Sed expression to map a string onto a valid variable name.
  15238. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15239. - for as_shell in $as_candidate_shells $SHELL; do
  15240. - # Try only shells that exist, to save several forks.
  15241. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  15242. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  15243. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15244. - emulate sh
  15245. - NULLCMD=:
  15246. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15247. - # is contrary to our usage. Disable this feature.
  15248. - alias -g '${1+"$@"}'='"$@"'
  15249. - setopt NO_GLOB_SUBST
  15250. -else
  15251. - case `(set -o) 2>/dev/null` in
  15252. - *posix*) set -o posix ;;
  15253. -esac
  15254. -fi
  15255. +# Check that we are running under the correct shell.
  15256. +SHELL=${CONFIG_SHELL-/bin/sh}
  15257. -:
  15258. -_ASEOF
  15259. -}; then
  15260. - CONFIG_SHELL=$as_shell
  15261. - as_have_required=yes
  15262. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  15263. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15264. - emulate sh
  15265. - NULLCMD=:
  15266. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15267. - # is contrary to our usage. Disable this feature.
  15268. - alias -g '${1+"$@"}'='"$@"'
  15269. - setopt NO_GLOB_SUBST
  15270. -else
  15271. - case `(set -o) 2>/dev/null` in
  15272. - *posix*) set -o posix ;;
  15273. +case X$lt_ECHO in
  15274. +X*--fallback-echo)
  15275. + # Remove one level of quotation (which was required for Make).
  15276. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  15277. + ;;
  15278. esac
  15279. -fi
  15280. -
  15281. -
  15282. -:
  15283. -(as_func_return () {
  15284. - (exit $1)
  15285. -}
  15286. -as_func_success () {
  15287. - as_func_return 0
  15288. -}
  15289. -as_func_failure () {
  15290. - as_func_return 1
  15291. -}
  15292. -as_func_ret_success () {
  15293. - return 0
  15294. -}
  15295. -as_func_ret_failure () {
  15296. - return 1
  15297. -}
  15298. -
  15299. -exitcode=0
  15300. -if as_func_success; then
  15301. - :
  15302. -else
  15303. - exitcode=1
  15304. - echo as_func_success failed.
  15305. -fi
  15306. -
  15307. -if as_func_failure; then
  15308. - exitcode=1
  15309. - echo as_func_failure succeeded.
  15310. -fi
  15311. -
  15312. -if as_func_ret_success; then
  15313. - :
  15314. -else
  15315. - exitcode=1
  15316. - echo as_func_ret_success failed.
  15317. -fi
  15318. -
  15319. -if as_func_ret_failure; then
  15320. - exitcode=1
  15321. - echo as_func_ret_failure succeeded.
  15322. -fi
  15323. -
  15324. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  15325. - :
  15326. -else
  15327. - exitcode=1
  15328. - echo positional parameters were not saved.
  15329. -fi
  15330. -
  15331. -test $exitcode = 0) || { (exit 1); exit 1; }
  15332. -
  15333. -(
  15334. - as_lineno_1=$LINENO
  15335. - as_lineno_2=$LINENO
  15336. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  15337. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  15338. -
  15339. -_ASEOF
  15340. -}; then
  15341. - break
  15342. -fi
  15343. -
  15344. -fi
  15345. -
  15346. - done
  15347. -
  15348. - if test "x$CONFIG_SHELL" != x; then
  15349. - for as_var in BASH_ENV ENV
  15350. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15351. - done
  15352. - export CONFIG_SHELL
  15353. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  15354. -fi
  15355. -
  15356. -
  15357. - if test $as_have_required = no; then
  15358. - echo This script requires a shell more modern than all the
  15359. - echo shells that I found on your system. Please install a
  15360. - echo modern shell, or manually run the script under such a
  15361. - echo shell if you do have one.
  15362. - { (exit 1); exit 1; }
  15363. -fi
  15364. -
  15365. -
  15366. -fi
  15367. -
  15368. -fi
  15369. -
  15370. -
  15371. -
  15372. -(eval "as_func_return () {
  15373. - (exit \$1)
  15374. -}
  15375. -as_func_success () {
  15376. - as_func_return 0
  15377. -}
  15378. -as_func_failure () {
  15379. - as_func_return 1
  15380. -}
  15381. -as_func_ret_success () {
  15382. - return 0
  15383. -}
  15384. -as_func_ret_failure () {
  15385. - return 1
  15386. -}
  15387. -
  15388. -exitcode=0
  15389. -if as_func_success; then
  15390. - :
  15391. -else
  15392. - exitcode=1
  15393. - echo as_func_success failed.
  15394. -fi
  15395. -
  15396. -if as_func_failure; then
  15397. - exitcode=1
  15398. - echo as_func_failure succeeded.
  15399. -fi
  15400. -
  15401. -if as_func_ret_success; then
  15402. - :
  15403. -else
  15404. - exitcode=1
  15405. - echo as_func_ret_success failed.
  15406. -fi
  15407. -
  15408. -if as_func_ret_failure; then
  15409. - exitcode=1
  15410. - echo as_func_ret_failure succeeded.
  15411. -fi
  15412. -
  15413. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  15414. - :
  15415. -else
  15416. - exitcode=1
  15417. - echo positional parameters were not saved.
  15418. -fi
  15419. -
  15420. -test \$exitcode = 0") || {
  15421. - echo No shell found that supports shell functions.
  15422. - echo Please tell autoconf@gnu.org about your system,
  15423. - echo including any error possibly output before this
  15424. - echo message
  15425. -}
  15426. -
  15427. -
  15428. -
  15429. - as_lineno_1=$LINENO
  15430. - as_lineno_2=$LINENO
  15431. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  15432. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15433. -
  15434. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15435. - # uniformly replaced by the line number. The first 'sed' inserts a
  15436. - # line-number line after each line using $LINENO; the second 'sed'
  15437. - # does the real work. The second script uses 'N' to pair each
  15438. - # line-number line with the line containing $LINENO, and appends
  15439. - # trailing '-' during substitution so that $LINENO is not a special
  15440. - # case at line end.
  15441. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15442. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  15443. - # E. McMahon (1931-1989) for sed's syntax. :-)
  15444. - sed -n '
  15445. - p
  15446. - /[$]LINENO/=
  15447. - ' <$as_myself |
  15448. - sed '
  15449. - s/[$]LINENO.*/&-/
  15450. - t lineno
  15451. - b
  15452. - :lineno
  15453. - N
  15454. - :loop
  15455. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  15456. - t loop
  15457. - s/-\n.*//
  15458. - ' >$as_me.lineno &&
  15459. - chmod +x "$as_me.lineno" ||
  15460. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  15461. - { (exit 1); exit 1; }; }
  15462. -
  15463. - # Don't try to exec as it changes $[0], causing all sort of problems
  15464. - # (the dirname of $[0] is not the place where we might find the
  15465. - # original and so on. Autoconf is especially sensitive to this).
  15466. - . "./$as_me.lineno"
  15467. - # Exit status is that of the last command.
  15468. - exit
  15469. -}
  15470. -
  15471. -
  15472. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15473. - as_dirname=dirname
  15474. -else
  15475. - as_dirname=false
  15476. -fi
  15477. -
  15478. -ECHO_C= ECHO_N= ECHO_T=
  15479. -case `echo -n x` in
  15480. --n*)
  15481. - case `echo 'x\c'` in
  15482. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15483. - *) ECHO_C='\c';;
  15484. - esac;;
  15485. -*)
  15486. - ECHO_N='-n';;
  15487. -esac
  15488. -
  15489. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  15490. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15491. - as_expr=expr
  15492. -else
  15493. - as_expr=false
  15494. -fi
  15495. -
  15496. -rm -f conf$$ conf$$.exe conf$$.file
  15497. -if test -d conf$$.dir; then
  15498. - rm -f conf$$.dir/conf$$.file
  15499. -else
  15500. - rm -f conf$$.dir
  15501. - mkdir conf$$.dir
  15502. -fi
  15503. -echo >conf$$.file
  15504. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  15505. - as_ln_s='ln -s'
  15506. - # ... but there are two gotchas:
  15507. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15508. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15509. - # In both cases, we have to default to `cp -p'.
  15510. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15511. - as_ln_s='cp -p'
  15512. -elif ln conf$$.file conf$$ 2>/dev/null; then
  15513. - as_ln_s=ln
  15514. -else
  15515. - as_ln_s='cp -p'
  15516. -fi
  15517. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15518. -rmdir conf$$.dir 2>/dev/null
  15519. -
  15520. -if mkdir -p . 2>/dev/null; then
  15521. - as_mkdir_p=:
  15522. -else
  15523. - test -d ./-p && rmdir ./-p
  15524. - as_mkdir_p=false
  15525. -fi
  15526. -
  15527. -if test -x / >/dev/null 2>&1; then
  15528. - as_test_x='test -x'
  15529. -else
  15530. - if ls -dL / >/dev/null 2>&1; then
  15531. - as_ls_L_option=L
  15532. - else
  15533. - as_ls_L_option=
  15534. - fi
  15535. - as_test_x='
  15536. - eval sh -c '\''
  15537. - if test -d "$1"; then
  15538. - test -d "$1/.";
  15539. - else
  15540. - case $1 in
  15541. - -*)set "./$1";;
  15542. - esac;
  15543. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  15544. - ???[sx]*):;;*)false;;esac;fi
  15545. - '\'' sh
  15546. - '
  15547. -fi
  15548. -as_executable_p=$as_test_x
  15549. -
  15550. -# Sed expression to map a string onto a valid CPP name.
  15551. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15552. -
  15553. -# Sed expression to map a string onto a valid variable name.
  15554. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15555. -
  15556. -
  15557. -
  15558. -
  15559. -# Check that we are running under the correct shell.
  15560. -SHELL=${CONFIG_SHELL-/bin/sh}
  15561. -
  15562. -case X$ECHO in
  15563. -X*--fallback-echo)
  15564. - # Remove one level of quotation (which was required for Make).
  15565. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  15566. - ;;
  15567. -esac
  15568. -
  15569. -echo=${ECHO-echo}
  15570. +ECHO=${lt_ECHO-echo}
  15571. if test "X$1" = X--no-reexec; then
  15572. # Discard the --no-reexec flag, and continue.
  15573. shift
  15574. elif test "X$1" = X--fallback-echo; then
  15575. # Avoid inline document here, it may be left over
  15576. :
  15577. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  15578. - # Yippee, $echo works!
  15579. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  15580. + # Yippee, $ECHO works!
  15581. :
  15582. else
  15583. # Restart under the correct shell.
  15584. @@ -578,9 +555,9 @@
  15585. if test "X$1" = X--fallback-echo; then
  15586. # used as fallback echo
  15587. shift
  15588. - cat <<EOF
  15589. + cat <<_LT_EOF
  15590. $*
  15591. -EOF
  15592. +_LT_EOF
  15593. exit 0
  15594. fi
  15595. @@ -588,122 +565,118 @@
  15596. # if CDPATH is set.
  15597. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15598. -if test -z "$ECHO"; then
  15599. -if test "X${echo_test_string+set}" != Xset; then
  15600. -# find a string as large as possible, as long as the shell can cope with it
  15601. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  15602. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  15603. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  15604. - echo_test_string=`eval $cmd` &&
  15605. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  15606. - then
  15607. - break
  15608. - fi
  15609. - done
  15610. -fi
  15611. +if test -z "$lt_ECHO"; then
  15612. + if test "X${echo_test_string+set}" != Xset; then
  15613. + # find a string as large as possible, as long as the shell can cope with it
  15614. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  15615. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  15616. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  15617. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  15618. + then
  15619. + break
  15620. + fi
  15621. + done
  15622. + fi
  15623. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  15624. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  15625. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15626. - :
  15627. -else
  15628. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  15629. - # backslashes. This makes it impossible to quote backslashes using
  15630. - # echo "$something" | sed 's/\\/\\\\/g'
  15631. - #
  15632. - # So, first we look for a working echo in the user's PATH.
  15633. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  15634. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  15635. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15636. + :
  15637. + else
  15638. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  15639. + # backslashes. This makes it impossible to quote backslashes using
  15640. + # echo "$something" | sed 's/\\/\\\\/g'
  15641. + #
  15642. + # So, first we look for a working echo in the user's PATH.
  15643. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15644. - for dir in $PATH /usr/ucb; do
  15645. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15646. + for dir in $PATH /usr/ucb; do
  15647. + IFS="$lt_save_ifs"
  15648. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  15649. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  15650. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  15651. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15652. + ECHO="$dir/echo"
  15653. + break
  15654. + fi
  15655. + done
  15656. IFS="$lt_save_ifs"
  15657. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  15658. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  15659. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  15660. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15661. - echo="$dir/echo"
  15662. - break
  15663. - fi
  15664. - done
  15665. - IFS="$lt_save_ifs"
  15666. - if test "X$echo" = Xecho; then
  15667. - # We didn't find a better echo, so look for alternatives.
  15668. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  15669. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  15670. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15671. - # This shell has a builtin print -r that does the trick.
  15672. - echo='print -r'
  15673. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  15674. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  15675. - # If we have ksh, try running configure again with it.
  15676. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15677. - export ORIGINAL_CONFIG_SHELL
  15678. - CONFIG_SHELL=/bin/ksh
  15679. - export CONFIG_SHELL
  15680. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  15681. - else
  15682. - # Try using printf.
  15683. - echo='printf %s\n'
  15684. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  15685. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  15686. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15687. - # Cool, printf works
  15688. - :
  15689. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15690. - test "X$echo_testing_string" = 'X\t' &&
  15691. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15692. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15693. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  15694. - export CONFIG_SHELL
  15695. - SHELL="$CONFIG_SHELL"
  15696. - export SHELL
  15697. - echo="$CONFIG_SHELL $0 --fallback-echo"
  15698. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15699. - test "X$echo_testing_string" = 'X\t' &&
  15700. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15701. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15702. - echo="$CONFIG_SHELL $0 --fallback-echo"
  15703. + if test "X$ECHO" = Xecho; then
  15704. + # We didn't find a better echo, so look for alternatives.
  15705. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  15706. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  15707. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15708. + # This shell has a builtin print -r that does the trick.
  15709. + ECHO='print -r'
  15710. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  15711. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  15712. + # If we have ksh, try running configure again with it.
  15713. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15714. + export ORIGINAL_CONFIG_SHELL
  15715. + CONFIG_SHELL=/bin/ksh
  15716. + export CONFIG_SHELL
  15717. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  15718. else
  15719. - # maybe with a smaller string...
  15720. - prev=:
  15721. + # Try using printf.
  15722. + ECHO='printf %s\n'
  15723. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  15724. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  15725. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15726. + # Cool, printf works
  15727. + :
  15728. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15729. + test "X$echo_testing_string" = 'X\t' &&
  15730. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15731. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15732. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  15733. + export CONFIG_SHELL
  15734. + SHELL="$CONFIG_SHELL"
  15735. + export SHELL
  15736. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  15737. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15738. + test "X$echo_testing_string" = 'X\t' &&
  15739. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15740. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15741. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  15742. + else
  15743. + # maybe with a smaller string...
  15744. + prev=:
  15745. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  15746. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  15747. - then
  15748. - break
  15749. - fi
  15750. - prev="$cmd"
  15751. - done
  15752. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  15753. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  15754. + then
  15755. + break
  15756. + fi
  15757. + prev="$cmd"
  15758. + done
  15759. - if test "$prev" != 'sed 50q "$0"'; then
  15760. - echo_test_string=`eval $prev`
  15761. - export echo_test_string
  15762. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  15763. - else
  15764. - # Oops. We lost completely, so just stick with echo.
  15765. - echo=echo
  15766. - fi
  15767. + if test "$prev" != 'sed 50q "$0"'; then
  15768. + echo_test_string=`eval $prev`
  15769. + export echo_test_string
  15770. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  15771. + else
  15772. + # Oops. We lost completely, so just stick with echo.
  15773. + ECHO=echo
  15774. + fi
  15775. + fi
  15776. fi
  15777. fi
  15778. fi
  15779. fi
  15780. -fi
  15781. # Copy echo and quote the copy suitably for passing to libtool from
  15782. # the Makefile, instead of quoting the original, which is used later.
  15783. -ECHO=$echo
  15784. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  15785. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  15786. +lt_ECHO=$ECHO
  15787. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  15788. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  15789. fi
  15790. -tagnames=${tagnames+${tagnames},}CXX
  15791. -
  15792. -tagnames=${tagnames+${tagnames},}F77
  15793. -
  15794. -exec 7<&0 </dev/null 6>&1
  15795. +test -n "$DJDIR" || exec 7<&0 </dev/null
  15796. +exec 6>&1
  15797. # Name of the host.
  15798. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  15799. @@ -721,7 +694,6 @@
  15800. subdirs=
  15801. MFLAGS=
  15802. MAKEFLAGS=
  15803. -SHELL=${CONFIG_SHELL-/bin/sh}
  15804. # Identity of this package.
  15805. PACKAGE_NAME='libnet'
  15806. @@ -729,6 +701,7 @@
  15807. PACKAGE_VERSION='1.1.5'
  15808. PACKAGE_STRING='libnet 1.1.5'
  15809. PACKAGE_BUGREPORT=''
  15810. +PACKAGE_URL=''
  15811. ac_unique_file="src/libnet_build_ip.c"
  15812. # Factoring default headers for most tests.
  15813. @@ -768,126 +741,144 @@
  15814. #endif"
  15815. ac_default_prefix=/usr/local
  15816. -ac_subst_vars='SHELL
  15817. -PATH_SEPARATOR
  15818. -PACKAGE_NAME
  15819. -PACKAGE_TARNAME
  15820. -PACKAGE_VERSION
  15821. -PACKAGE_STRING
  15822. -PACKAGE_BUGREPORT
  15823. -exec_prefix
  15824. -prefix
  15825. -program_transform_name
  15826. -bindir
  15827. -sbindir
  15828. -libexecdir
  15829. -datarootdir
  15830. -datadir
  15831. -sysconfdir
  15832. -sharedstatedir
  15833. -localstatedir
  15834. -includedir
  15835. -oldincludedir
  15836. -docdir
  15837. -infodir
  15838. -htmldir
  15839. -dvidir
  15840. -pdfdir
  15841. -psdir
  15842. -libdir
  15843. -localedir
  15844. -mandir
  15845. -DEFS
  15846. -ECHO_C
  15847. -ECHO_N
  15848. -ECHO_T
  15849. -LIBS
  15850. -build_alias
  15851. -host_alias
  15852. -target_alias
  15853. -build
  15854. -build_cpu
  15855. -build_vendor
  15856. -build_os
  15857. -host
  15858. -host_cpu
  15859. -host_vendor
  15860. -host_os
  15861. -target
  15862. -target_cpu
  15863. -target_vendor
  15864. -target_os
  15865. -INSTALL_PROGRAM
  15866. -INSTALL_SCRIPT
  15867. -INSTALL_DATA
  15868. -am__isrc
  15869. -CYGPATH_W
  15870. -PACKAGE
  15871. -VERSION
  15872. -ACLOCAL
  15873. -AUTOCONF
  15874. -AUTOMAKE
  15875. -AUTOHEADER
  15876. -MAKEINFO
  15877. -install_sh
  15878. -STRIP
  15879. -INSTALL_STRIP_PROGRAM
  15880. -mkdir_p
  15881. -AWK
  15882. -SET_MAKE
  15883. -am__leading_dot
  15884. -AMTAR
  15885. -am__tar
  15886. -am__untar
  15887. -MAINTAINER_MODE_TRUE
  15888. -MAINTAINER_MODE_FALSE
  15889. -MAINT
  15890. -CC
  15891. -CFLAGS
  15892. -LDFLAGS
  15893. -CPPFLAGS
  15894. -ac_ct_CC
  15895. -EXEEXT
  15896. -OBJEXT
  15897. -DEPDIR
  15898. -am__include
  15899. -am__quote
  15900. -AMDEP_TRUE
  15901. -AMDEP_FALSE
  15902. -AMDEPBACKSLASH
  15903. -CCDEPMODE
  15904. -am__fastdepCC_TRUE
  15905. -am__fastdepCC_FALSE
  15906. -CPP
  15907. -GREP
  15908. -EGREP
  15909. -SED
  15910. -LN_S
  15911. -ECHO
  15912. -AR
  15913. +ac_subst_vars='am__EXEEXT_FALSE
  15914. +am__EXEEXT_TRUE
  15915. +INSTALL_SAMPLES_FALSE
  15916. +INSTALL_SAMPLES_TRUE
  15917. +LIBOBJS
  15918. +LTLIBOBJS
  15919. +LIBNET_CONFIG_CFLAGS
  15920. +LIBNET_CONFIG_LIBS
  15921. +LIBNET_CONFIG_DEFINES
  15922. +ADDITIONAL_LIBS
  15923. +HAVE_PACKET_SOCKET
  15924. +ENDIANESS
  15925. +OTOOL64
  15926. +OTOOL
  15927. +LIPO
  15928. +NMEDIT
  15929. +DSYMUTIL
  15930. +lt_ECHO
  15931. RANLIB
  15932. -CXX
  15933. -CXXFLAGS
  15934. -ac_ct_CXX
  15935. -CXXDEPMODE
  15936. -am__fastdepCXX_TRUE
  15937. -am__fastdepCXX_FALSE
  15938. -CXXCPP
  15939. -F77
  15940. -FFLAGS
  15941. -ac_ct_F77
  15942. +AR
  15943. +OBJDUMP
  15944. +LN_S
  15945. +NM
  15946. +ac_ct_DUMPBIN
  15947. +DUMPBIN
  15948. +LD
  15949. +FGREP
  15950. +SED
  15951. LIBTOOL
  15952. -ENDIANESS
  15953. -HAVE_PACKET_SOCKET
  15954. -ADDITIONAL_LIBS
  15955. -LIBNET_CONFIG_DEFINES
  15956. -LIBNET_CONFIG_LIBS
  15957. -LIBNET_CONFIG_CFLAGS
  15958. -LTLIBOBJS
  15959. -LIBOBJS
  15960. -INSTALL_SAMPLES_TRUE
  15961. -INSTALL_SAMPLES_FALSE'
  15962. +EGREP
  15963. +GREP
  15964. +CPP
  15965. +am__fastdepCC_FALSE
  15966. +am__fastdepCC_TRUE
  15967. +CCDEPMODE
  15968. +AMDEPBACKSLASH
  15969. +AMDEP_FALSE
  15970. +AMDEP_TRUE
  15971. +am__quote
  15972. +am__include
  15973. +DEPDIR
  15974. +OBJEXT
  15975. +EXEEXT
  15976. +ac_ct_CC
  15977. +CPPFLAGS
  15978. +LDFLAGS
  15979. +CFLAGS
  15980. +CC
  15981. +MAINT
  15982. +MAINTAINER_MODE_FALSE
  15983. +MAINTAINER_MODE_TRUE
  15984. +am__untar
  15985. +am__tar
  15986. +AMTAR
  15987. +am__leading_dot
  15988. +SET_MAKE
  15989. +AWK
  15990. +mkdir_p
  15991. +MKDIR_P
  15992. +INSTALL_STRIP_PROGRAM
  15993. +STRIP
  15994. +install_sh
  15995. +MAKEINFO
  15996. +AUTOHEADER
  15997. +AUTOMAKE
  15998. +AUTOCONF
  15999. +ACLOCAL
  16000. +VERSION
  16001. +PACKAGE
  16002. +CYGPATH_W
  16003. +am__isrc
  16004. +INSTALL_DATA
  16005. +INSTALL_SCRIPT
  16006. +INSTALL_PROGRAM
  16007. +target_os
  16008. +target_vendor
  16009. +target_cpu
  16010. +target
  16011. +host_os
  16012. +host_vendor
  16013. +host_cpu
  16014. +host
  16015. +build_os
  16016. +build_vendor
  16017. +build_cpu
  16018. +build
  16019. +target_alias
  16020. +host_alias
  16021. +build_alias
  16022. +LIBS
  16023. +ECHO_T
  16024. +ECHO_N
  16025. +ECHO_C
  16026. +DEFS
  16027. +mandir
  16028. +localedir
  16029. +libdir
  16030. +psdir
  16031. +pdfdir
  16032. +dvidir
  16033. +htmldir
  16034. +infodir
  16035. +docdir
  16036. +oldincludedir
  16037. +includedir
  16038. +localstatedir
  16039. +sharedstatedir
  16040. +sysconfdir
  16041. +datadir
  16042. +datarootdir
  16043. +libexecdir
  16044. +sbindir
  16045. +bindir
  16046. +program_transform_name
  16047. +prefix
  16048. +exec_prefix
  16049. +PACKAGE_URL
  16050. +PACKAGE_BUGREPORT
  16051. +PACKAGE_STRING
  16052. +PACKAGE_VERSION
  16053. +PACKAGE_TARNAME
  16054. +PACKAGE_NAME
  16055. +PATH_SEPARATOR
  16056. +SHELL'
  16057. ac_subst_files=''
  16058. +ac_user_opts='
  16059. +enable_option_checking
  16060. +enable_maintainer_mode
  16061. +enable_dependency_tracking
  16062. +enable_shared
  16063. +enable_static
  16064. +with_pic
  16065. +enable_fast_install
  16066. +with_gnu_ld
  16067. +enable_libtool_lock
  16068. +with_link_layer
  16069. +enable_samples
  16070. +'
  16071. ac_precious_vars='build_alias
  16072. host_alias
  16073. target_alias
  16074. @@ -896,18 +887,14 @@
  16075. LDFLAGS
  16076. LIBS
  16077. CPPFLAGS
  16078. -CPP
  16079. -CXX
  16080. -CXXFLAGS
  16081. -CCC
  16082. -CXXCPP
  16083. -F77
  16084. -FFLAGS'
  16085. +CPP'
  16086. # Initialize some variables set by options.
  16087. ac_init_help=
  16088. ac_init_version=false
  16089. +ac_unrecognized_opts=
  16090. +ac_unrecognized_sep=
  16091. # The variables have the same names as the options, with
  16092. # dashes changed to underlines.
  16093. cache_file=/dev/null
  16094. @@ -1006,13 +993,20 @@
  16095. datarootdir=$ac_optarg ;;
  16096. -disable-* | --disable-*)
  16097. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  16098. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  16099. # Reject names that are not valid shell variable names.
  16100. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  16101. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  16102. - { (exit 1); exit 1; }; }
  16103. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  16104. - eval enable_$ac_feature=no ;;
  16105. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16106. + as_fn_error "invalid feature name: $ac_useropt"
  16107. + ac_useropt_orig=$ac_useropt
  16108. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16109. + case $ac_user_opts in
  16110. + *"
  16111. +"enable_$ac_useropt"
  16112. +"*) ;;
  16113. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  16114. + ac_unrecognized_sep=', ';;
  16115. + esac
  16116. + eval enable_$ac_useropt=no ;;
  16117. -docdir | --docdir | --docdi | --doc | --do)
  16118. ac_prev=docdir ;;
  16119. @@ -1025,13 +1019,20 @@
  16120. dvidir=$ac_optarg ;;
  16121. -enable-* | --enable-*)
  16122. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  16123. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  16124. # Reject names that are not valid shell variable names.
  16125. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  16126. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  16127. - { (exit 1); exit 1; }; }
  16128. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  16129. - eval enable_$ac_feature=\$ac_optarg ;;
  16130. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16131. + as_fn_error "invalid feature name: $ac_useropt"
  16132. + ac_useropt_orig=$ac_useropt
  16133. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16134. + case $ac_user_opts in
  16135. + *"
  16136. +"enable_$ac_useropt"
  16137. +"*) ;;
  16138. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  16139. + ac_unrecognized_sep=', ';;
  16140. + esac
  16141. + eval enable_$ac_useropt=\$ac_optarg ;;
  16142. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  16143. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  16144. @@ -1222,22 +1223,36 @@
  16145. ac_init_version=: ;;
  16146. -with-* | --with-*)
  16147. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  16148. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  16149. # Reject names that are not valid shell variable names.
  16150. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  16151. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  16152. - { (exit 1); exit 1; }; }
  16153. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  16154. - eval with_$ac_package=\$ac_optarg ;;
  16155. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16156. + as_fn_error "invalid package name: $ac_useropt"
  16157. + ac_useropt_orig=$ac_useropt
  16158. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16159. + case $ac_user_opts in
  16160. + *"
  16161. +"with_$ac_useropt"
  16162. +"*) ;;
  16163. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  16164. + ac_unrecognized_sep=', ';;
  16165. + esac
  16166. + eval with_$ac_useropt=\$ac_optarg ;;
  16167. -without-* | --without-*)
  16168. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  16169. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  16170. # Reject names that are not valid shell variable names.
  16171. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  16172. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  16173. - { (exit 1); exit 1; }; }
  16174. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  16175. - eval with_$ac_package=no ;;
  16176. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16177. + as_fn_error "invalid package name: $ac_useropt"
  16178. + ac_useropt_orig=$ac_useropt
  16179. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16180. + case $ac_user_opts in
  16181. + *"
  16182. +"with_$ac_useropt"
  16183. +"*) ;;
  16184. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  16185. + ac_unrecognized_sep=', ';;
  16186. + esac
  16187. + eval with_$ac_useropt=no ;;
  16188. --x)
  16189. # Obsolete; use --with-x.
  16190. @@ -1257,25 +1272,25 @@
  16191. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  16192. x_libraries=$ac_optarg ;;
  16193. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  16194. -Try \`$0 --help' for more information." >&2
  16195. - { (exit 1); exit 1; }; }
  16196. + -*) as_fn_error "unrecognized option: \`$ac_option'
  16197. +Try \`$0 --help' for more information."
  16198. ;;
  16199. *=*)
  16200. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  16201. # Reject names that are not valid shell variable names.
  16202. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  16203. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  16204. - { (exit 1); exit 1; }; }
  16205. + case $ac_envvar in #(
  16206. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  16207. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  16208. + esac
  16209. eval $ac_envvar=\$ac_optarg
  16210. export $ac_envvar ;;
  16211. *)
  16212. # FIXME: should be removed in autoconf 3.0.
  16213. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  16214. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  16215. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  16216. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  16217. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  16218. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  16219. ;;
  16220. @@ -1284,23 +1299,36 @@
  16221. if test -n "$ac_prev"; then
  16222. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  16223. - { echo "$as_me: error: missing argument to $ac_option" >&2
  16224. - { (exit 1); exit 1; }; }
  16225. + as_fn_error "missing argument to $ac_option"
  16226. +fi
  16227. +
  16228. +if test -n "$ac_unrecognized_opts"; then
  16229. + case $enable_option_checking in
  16230. + no) ;;
  16231. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  16232. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  16233. + esac
  16234. fi
  16235. -# Be sure to have absolute directory names.
  16236. +# Check all directory arguments for consistency.
  16237. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  16238. datadir sysconfdir sharedstatedir localstatedir includedir \
  16239. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  16240. libdir localedir mandir
  16241. do
  16242. eval ac_val=\$$ac_var
  16243. + # Remove trailing slashes.
  16244. + case $ac_val in
  16245. + */ )
  16246. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  16247. + eval $ac_var=\$ac_val;;
  16248. + esac
  16249. + # Be sure to have absolute directory names.
  16250. case $ac_val in
  16251. [\\/$]* | ?:[\\/]* ) continue;;
  16252. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  16253. esac
  16254. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  16255. - { (exit 1); exit 1; }; }
  16256. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  16257. done
  16258. # There might be people who depend on the old broken behavior: `$host'
  16259. @@ -1314,7 +1342,7 @@
  16260. if test "x$host_alias" != x; then
  16261. if test "x$build_alias" = x; then
  16262. cross_compiling=maybe
  16263. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  16264. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  16265. If a cross compiler is detected then cross compile mode will be used." >&2
  16266. elif test "x$build_alias" != "x$host_alias"; then
  16267. cross_compiling=yes
  16268. @@ -1330,23 +1358,21 @@
  16269. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  16270. ac_ls_di=`ls -di .` &&
  16271. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  16272. - { echo "$as_me: error: Working directory cannot be determined" >&2
  16273. - { (exit 1); exit 1; }; }
  16274. + as_fn_error "working directory cannot be determined"
  16275. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  16276. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  16277. - { (exit 1); exit 1; }; }
  16278. + as_fn_error "pwd does not report name of working directory"
  16279. # Find the source files, if location was not specified.
  16280. if test -z "$srcdir"; then
  16281. ac_srcdir_defaulted=yes
  16282. # Try the directory containing this script, then the parent directory.
  16283. - ac_confdir=`$as_dirname -- "$0" ||
  16284. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16285. - X"$0" : 'X\(//\)[^/]' \| \
  16286. - X"$0" : 'X\(//\)$' \| \
  16287. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16288. -echo X"$0" |
  16289. + ac_confdir=`$as_dirname -- "$as_myself" ||
  16290. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16291. + X"$as_myself" : 'X\(//\)[^/]' \| \
  16292. + X"$as_myself" : 'X\(//\)$' \| \
  16293. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  16294. +$as_echo X"$as_myself" |
  16295. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16296. s//\1/
  16297. q
  16298. @@ -1373,13 +1399,11 @@
  16299. fi
  16300. if test ! -r "$srcdir/$ac_unique_file"; then
  16301. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  16302. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  16303. - { (exit 1); exit 1; }; }
  16304. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  16305. fi
  16306. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  16307. ac_abs_confdir=`(
  16308. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  16309. - { (exit 1); exit 1; }; }
  16310. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  16311. pwd)`
  16312. # When building in place, set srcdir=.
  16313. if test "$ac_abs_confdir" = "$ac_pwd"; then
  16314. @@ -1427,9 +1451,9 @@
  16315. Installation directories:
  16316. --prefix=PREFIX install architecture-independent files in PREFIX
  16317. - [$ac_default_prefix]
  16318. + [$ac_default_prefix]
  16319. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  16320. - [PREFIX]
  16321. + [PREFIX]
  16322. By default, \`make install' will install all the files in
  16323. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  16324. @@ -1439,25 +1463,25 @@
  16325. For better control, use the options below.
  16326. Fine tuning of the installation directories:
  16327. - --bindir=DIR user executables [EPREFIX/bin]
  16328. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  16329. - --libexecdir=DIR program executables [EPREFIX/libexec]
  16330. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  16331. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  16332. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  16333. - --libdir=DIR object code libraries [EPREFIX/lib]
  16334. - --includedir=DIR C header files [PREFIX/include]
  16335. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  16336. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  16337. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  16338. - --infodir=DIR info documentation [DATAROOTDIR/info]
  16339. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  16340. - --mandir=DIR man documentation [DATAROOTDIR/man]
  16341. - --docdir=DIR documentation root [DATAROOTDIR/doc/libnet]
  16342. - --htmldir=DIR html documentation [DOCDIR]
  16343. - --dvidir=DIR dvi documentation [DOCDIR]
  16344. - --pdfdir=DIR pdf documentation [DOCDIR]
  16345. - --psdir=DIR ps documentation [DOCDIR]
  16346. + --bindir=DIR user executables [EPREFIX/bin]
  16347. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  16348. + --libexecdir=DIR program executables [EPREFIX/libexec]
  16349. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  16350. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  16351. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  16352. + --libdir=DIR object code libraries [EPREFIX/lib]
  16353. + --includedir=DIR C header files [PREFIX/include]
  16354. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  16355. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  16356. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  16357. + --infodir=DIR info documentation [DATAROOTDIR/info]
  16358. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  16359. + --mandir=DIR man documentation [DATAROOTDIR/man]
  16360. + --docdir=DIR documentation root [DATAROOTDIR/doc/libnet]
  16361. + --htmldir=DIR html documentation [DOCDIR]
  16362. + --dvidir=DIR dvi documentation [DOCDIR]
  16363. + --pdfdir=DIR pdf documentation [DOCDIR]
  16364. + --psdir=DIR ps documentation [DOCDIR]
  16365. _ACEOF
  16366. cat <<\_ACEOF
  16367. @@ -1481,6 +1505,7 @@
  16368. cat <<\_ACEOF
  16369. Optional Features:
  16370. + --disable-option-checking ignore unrecognized --enable/--with options
  16371. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  16372. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  16373. --enable-maintainer-mode enable make rules and dependencies not useful
  16374. @@ -1497,10 +1522,9 @@
  16375. Optional Packages:
  16376. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  16377. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  16378. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  16379. --with-pic try to use only PIC/non-PIC objects [default=use
  16380. both]
  16381. - --with-tags[=TAGS] include additional configurations [automatic]
  16382. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  16383. --with-link-layer when cross-compiling, one of * from libnet_link_*.c
  16384. [autodetect]
  16385. @@ -1511,18 +1535,14 @@
  16386. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  16387. nonstandard directory <lib dir>
  16388. LIBS libraries to pass to the linker, e.g. -l<library>
  16389. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  16390. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  16391. you have headers in a nonstandard directory <include dir>
  16392. CPP C preprocessor
  16393. - CXX C++ compiler command
  16394. - CXXFLAGS C++ compiler flags
  16395. - CXXCPP C++ preprocessor
  16396. - F77 Fortran 77 compiler command
  16397. - FFLAGS Fortran 77 compiler flags
  16398. Use these variables to override the choices made by `configure' or to help
  16399. it to find libraries and programs with nonstandard names/locations.
  16400. +Report bugs to the package provider.
  16401. _ACEOF
  16402. ac_status=$?
  16403. fi
  16404. @@ -1530,15 +1550,17 @@
  16405. if test "$ac_init_help" = "recursive"; then
  16406. # If there are subdirs, report their specific --help.
  16407. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  16408. - test -d "$ac_dir" || continue
  16409. + test -d "$ac_dir" ||
  16410. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  16411. + continue
  16412. ac_builddir=.
  16413. case "$ac_dir" in
  16414. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16415. *)
  16416. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  16417. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16418. # A ".." for each directory in $ac_dir_suffix.
  16419. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  16420. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16421. case $ac_top_builddir_sub in
  16422. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16423. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16424. @@ -1574,7 +1596,7 @@
  16425. echo &&
  16426. $SHELL "$ac_srcdir/configure" --help=recursive
  16427. else
  16428. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  16429. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  16430. fi || ac_status=$?
  16431. cd "$ac_pwd" || { ac_status=$?; break; }
  16432. done
  16433. @@ -1584,61 +1606,466 @@
  16434. if $ac_init_version; then
  16435. cat <<\_ACEOF
  16436. libnet configure 1.1.5
  16437. -generated by GNU Autoconf 2.61
  16438. +generated by GNU Autoconf 2.65
  16439. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  16440. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  16441. +Copyright (C) 2009 Free Software Foundation, Inc.
  16442. This configure script is free software; the Free Software Foundation
  16443. gives unlimited permission to copy, distribute and modify it.
  16444. _ACEOF
  16445. exit
  16446. fi
  16447. -cat >config.log <<_ACEOF
  16448. -This file contains any messages produced by compilers while
  16449. -running configure, to aid debugging if configure makes a mistake.
  16450. -
  16451. -It was created by libnet $as_me 1.1.5, which was
  16452. -generated by GNU Autoconf 2.61. Invocation command line was
  16453. - $ $0 $@
  16454. -
  16455. -_ACEOF
  16456. -exec 5>>config.log
  16457. +## ------------------------ ##
  16458. +## Autoconf initialization. ##
  16459. +## ------------------------ ##
  16460. +
  16461. +# ac_fn_c_try_compile LINENO
  16462. +# --------------------------
  16463. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  16464. +ac_fn_c_try_compile ()
  16465. {
  16466. -cat <<_ASUNAME
  16467. -## --------- ##
  16468. -## Platform. ##
  16469. -## --------- ##
  16470. -
  16471. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  16472. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  16473. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  16474. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  16475. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  16476. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16477. + rm -f conftest.$ac_objext
  16478. + if { { ac_try="$ac_compile"
  16479. +case "(($ac_try" in
  16480. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16481. + *) ac_try_echo=$ac_try;;
  16482. +esac
  16483. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16484. +$as_echo "$ac_try_echo"; } >&5
  16485. + (eval "$ac_compile") 2>conftest.err
  16486. + ac_status=$?
  16487. + if test -s conftest.err; then
  16488. + grep -v '^ *+' conftest.err >conftest.er1
  16489. + cat conftest.er1 >&5
  16490. + mv -f conftest.er1 conftest.err
  16491. + fi
  16492. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16493. + test $ac_status = 0; } && {
  16494. + test -z "$ac_c_werror_flag" ||
  16495. + test ! -s conftest.err
  16496. + } && test -s conftest.$ac_objext; then :
  16497. + ac_retval=0
  16498. +else
  16499. + $as_echo "$as_me: failed program was:" >&5
  16500. +sed 's/^/| /' conftest.$ac_ext >&5
  16501. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  16502. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  16503. + ac_retval=1
  16504. +fi
  16505. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16506. + as_fn_set_status $ac_retval
  16507. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  16508. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  16509. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  16510. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  16511. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  16512. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  16513. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  16514. +} # ac_fn_c_try_compile
  16515. -_ASUNAME
  16516. +# ac_fn_c_try_cpp LINENO
  16517. +# ----------------------
  16518. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  16519. +ac_fn_c_try_cpp ()
  16520. +{
  16521. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16522. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  16523. +case "(($ac_try" in
  16524. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16525. + *) ac_try_echo=$ac_try;;
  16526. +esac
  16527. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16528. +$as_echo "$ac_try_echo"; } >&5
  16529. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  16530. + ac_status=$?
  16531. + if test -s conftest.err; then
  16532. + grep -v '^ *+' conftest.err >conftest.er1
  16533. + cat conftest.er1 >&5
  16534. + mv -f conftest.er1 conftest.err
  16535. + fi
  16536. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16537. + test $ac_status = 0; } >/dev/null && {
  16538. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16539. + test ! -s conftest.err
  16540. + }; then :
  16541. + ac_retval=0
  16542. +else
  16543. + $as_echo "$as_me: failed program was:" >&5
  16544. +sed 's/^/| /' conftest.$ac_ext >&5
  16545. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16546. -for as_dir in $PATH
  16547. -do
  16548. - IFS=$as_save_IFS
  16549. - test -z "$as_dir" && as_dir=.
  16550. - echo "PATH: $as_dir"
  16551. -done
  16552. -IFS=$as_save_IFS
  16553. + ac_retval=1
  16554. +fi
  16555. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16556. + as_fn_set_status $ac_retval
  16557. -} >&5
  16558. +} # ac_fn_c_try_cpp
  16559. +
  16560. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  16561. +# -------------------------------------------------------
  16562. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  16563. +# the include files in INCLUDES and setting the cache variable VAR
  16564. +# accordingly.
  16565. +ac_fn_c_check_header_mongrel ()
  16566. +{
  16567. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16568. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16569. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16570. +$as_echo_n "checking for $2... " >&6; }
  16571. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16572. + $as_echo_n "(cached) " >&6
  16573. +fi
  16574. +eval ac_res=\$$3
  16575. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16576. +$as_echo "$ac_res" >&6; }
  16577. +else
  16578. + # Is the header compilable?
  16579. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  16580. +$as_echo_n "checking $2 usability... " >&6; }
  16581. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16582. +/* end confdefs.h. */
  16583. +$4
  16584. +#include <$2>
  16585. +_ACEOF
  16586. +if ac_fn_c_try_compile "$LINENO"; then :
  16587. + ac_header_compiler=yes
  16588. +else
  16589. + ac_header_compiler=no
  16590. +fi
  16591. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  16593. +$as_echo "$ac_header_compiler" >&6; }
  16594. +
  16595. +# Is the header present?
  16596. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  16597. +$as_echo_n "checking $2 presence... " >&6; }
  16598. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16599. +/* end confdefs.h. */
  16600. +#include <$2>
  16601. +_ACEOF
  16602. +if ac_fn_c_try_cpp "$LINENO"; then :
  16603. + ac_header_preproc=yes
  16604. +else
  16605. + ac_header_preproc=no
  16606. +fi
  16607. +rm -f conftest.err conftest.$ac_ext
  16608. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  16609. +$as_echo "$ac_header_preproc" >&6; }
  16610. +
  16611. +# So? What about this header?
  16612. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  16613. + yes:no: )
  16614. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  16615. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16616. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  16617. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  16618. + ;;
  16619. + no:yes:* )
  16620. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  16621. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  16622. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  16623. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  16624. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  16625. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  16626. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  16627. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  16628. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  16629. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  16630. + ;;
  16631. +esac
  16632. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16633. +$as_echo_n "checking for $2... " >&6; }
  16634. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16635. + $as_echo_n "(cached) " >&6
  16636. +else
  16637. + eval "$3=\$ac_header_compiler"
  16638. +fi
  16639. +eval ac_res=\$$3
  16640. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16641. +$as_echo "$ac_res" >&6; }
  16642. +fi
  16643. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16644. +
  16645. +} # ac_fn_c_check_header_mongrel
  16646. +
  16647. +# ac_fn_c_try_run LINENO
  16648. +# ----------------------
  16649. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  16650. +# that executables *can* be run.
  16651. +ac_fn_c_try_run ()
  16652. +{
  16653. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16654. + if { { ac_try="$ac_link"
  16655. +case "(($ac_try" in
  16656. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16657. + *) ac_try_echo=$ac_try;;
  16658. +esac
  16659. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16660. +$as_echo "$ac_try_echo"; } >&5
  16661. + (eval "$ac_link") 2>&5
  16662. + ac_status=$?
  16663. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16664. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  16665. + { { case "(($ac_try" in
  16666. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16667. + *) ac_try_echo=$ac_try;;
  16668. +esac
  16669. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16670. +$as_echo "$ac_try_echo"; } >&5
  16671. + (eval "$ac_try") 2>&5
  16672. + ac_status=$?
  16673. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16674. + test $ac_status = 0; }; }; then :
  16675. + ac_retval=0
  16676. +else
  16677. + $as_echo "$as_me: program exited with status $ac_status" >&5
  16678. + $as_echo "$as_me: failed program was:" >&5
  16679. +sed 's/^/| /' conftest.$ac_ext >&5
  16680. +
  16681. + ac_retval=$ac_status
  16682. +fi
  16683. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  16684. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16685. + as_fn_set_status $ac_retval
  16686. +
  16687. +} # ac_fn_c_try_run
  16688. +
  16689. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  16690. +# -------------------------------------------------------
  16691. +# Tests whether HEADER exists and can be compiled using the include files in
  16692. +# INCLUDES, setting the cache variable VAR accordingly.
  16693. +ac_fn_c_check_header_compile ()
  16694. +{
  16695. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16696. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16697. +$as_echo_n "checking for $2... " >&6; }
  16698. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16699. + $as_echo_n "(cached) " >&6
  16700. +else
  16701. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16702. +/* end confdefs.h. */
  16703. +$4
  16704. +#include <$2>
  16705. +_ACEOF
  16706. +if ac_fn_c_try_compile "$LINENO"; then :
  16707. + eval "$3=yes"
  16708. +else
  16709. + eval "$3=no"
  16710. +fi
  16711. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16712. +fi
  16713. +eval ac_res=\$$3
  16714. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16715. +$as_echo "$ac_res" >&6; }
  16716. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16717. +
  16718. +} # ac_fn_c_check_header_compile
  16719. +
  16720. +# ac_fn_c_try_link LINENO
  16721. +# -----------------------
  16722. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  16723. +ac_fn_c_try_link ()
  16724. +{
  16725. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16726. + rm -f conftest.$ac_objext conftest$ac_exeext
  16727. + if { { ac_try="$ac_link"
  16728. +case "(($ac_try" in
  16729. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16730. + *) ac_try_echo=$ac_try;;
  16731. +esac
  16732. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16733. +$as_echo "$ac_try_echo"; } >&5
  16734. + (eval "$ac_link") 2>conftest.err
  16735. + ac_status=$?
  16736. + if test -s conftest.err; then
  16737. + grep -v '^ *+' conftest.err >conftest.er1
  16738. + cat conftest.er1 >&5
  16739. + mv -f conftest.er1 conftest.err
  16740. + fi
  16741. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16742. + test $ac_status = 0; } && {
  16743. + test -z "$ac_c_werror_flag" ||
  16744. + test ! -s conftest.err
  16745. + } && test -s conftest$ac_exeext && {
  16746. + test "$cross_compiling" = yes ||
  16747. + $as_test_x conftest$ac_exeext
  16748. + }; then :
  16749. + ac_retval=0
  16750. +else
  16751. + $as_echo "$as_me: failed program was:" >&5
  16752. +sed 's/^/| /' conftest.$ac_ext >&5
  16753. +
  16754. + ac_retval=1
  16755. +fi
  16756. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  16757. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  16758. + # interfere with the next link command; also delete a directory that is
  16759. + # left behind by Apple's compiler. We do this before executing the actions.
  16760. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  16761. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16762. + as_fn_set_status $ac_retval
  16763. +
  16764. +} # ac_fn_c_try_link
  16765. +
  16766. +# ac_fn_c_check_func LINENO FUNC VAR
  16767. +# ----------------------------------
  16768. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  16769. +ac_fn_c_check_func ()
  16770. +{
  16771. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16772. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16773. +$as_echo_n "checking for $2... " >&6; }
  16774. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16775. + $as_echo_n "(cached) " >&6
  16776. +else
  16777. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16778. +/* end confdefs.h. */
  16779. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  16780. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16781. +#define $2 innocuous_$2
  16782. +
  16783. +/* System header to define __stub macros and hopefully few prototypes,
  16784. + which can conflict with char $2 (); below.
  16785. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16786. + <limits.h> exists even on freestanding compilers. */
  16787. +
  16788. +#ifdef __STDC__
  16789. +# include <limits.h>
  16790. +#else
  16791. +# include <assert.h>
  16792. +#endif
  16793. +
  16794. +#undef $2
  16795. +
  16796. +/* Override any GCC internal prototype to avoid an error.
  16797. + Use char because int might match the return type of a GCC
  16798. + builtin and then its argument prototype would still apply. */
  16799. +#ifdef __cplusplus
  16800. +extern "C"
  16801. +#endif
  16802. +char $2 ();
  16803. +/* The GNU C library defines this for functions which it implements
  16804. + to always fail with ENOSYS. Some functions are actually named
  16805. + something starting with __ and the normal name is an alias. */
  16806. +#if defined __stub_$2 || defined __stub___$2
  16807. +choke me
  16808. +#endif
  16809. +
  16810. +int
  16811. +main ()
  16812. +{
  16813. +return $2 ();
  16814. + ;
  16815. + return 0;
  16816. +}
  16817. +_ACEOF
  16818. +if ac_fn_c_try_link "$LINENO"; then :
  16819. + eval "$3=yes"
  16820. +else
  16821. + eval "$3=no"
  16822. +fi
  16823. +rm -f core conftest.err conftest.$ac_objext \
  16824. + conftest$ac_exeext conftest.$ac_ext
  16825. +fi
  16826. +eval ac_res=\$$3
  16827. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16828. +$as_echo "$ac_res" >&6; }
  16829. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16830. +
  16831. +} # ac_fn_c_check_func
  16832. +
  16833. +# ac_fn_c_find_uintX_t LINENO BITS VAR
  16834. +# ------------------------------------
  16835. +# Finds an unsigned integer type with width BITS, setting cache variable VAR
  16836. +# accordingly.
  16837. +ac_fn_c_find_uintX_t ()
  16838. +{
  16839. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16840. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  16841. +$as_echo_n "checking for uint$2_t... " >&6; }
  16842. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16843. + $as_echo_n "(cached) " >&6
  16844. +else
  16845. + eval "$3=no"
  16846. + # Order is important - never check a type that is potentially smaller
  16847. + # than half of the expected target width.
  16848. + for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  16849. + 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  16850. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16851. +/* end confdefs.h. */
  16852. +$ac_includes_default
  16853. +int
  16854. +main ()
  16855. +{
  16856. +static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  16857. +test_array [0] = 0
  16858. +
  16859. + ;
  16860. + return 0;
  16861. +}
  16862. +_ACEOF
  16863. +if ac_fn_c_try_compile "$LINENO"; then :
  16864. + case $ac_type in #(
  16865. + uint$2_t) :
  16866. + eval "$3=yes" ;; #(
  16867. + *) :
  16868. + eval "$3=\$ac_type" ;;
  16869. +esac
  16870. +fi
  16871. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16872. + eval as_val=\$$3
  16873. + if test "x$as_val" = x""no; then :
  16874. +
  16875. +else
  16876. + break
  16877. +fi
  16878. + done
  16879. +fi
  16880. +eval ac_res=\$$3
  16881. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16882. +$as_echo "$ac_res" >&6; }
  16883. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16884. +
  16885. +} # ac_fn_c_find_uintX_t
  16886. +cat >config.log <<_ACEOF
  16887. +This file contains any messages produced by compilers while
  16888. +running configure, to aid debugging if configure makes a mistake.
  16889. +
  16890. +It was created by libnet $as_me 1.1.5, which was
  16891. +generated by GNU Autoconf 2.65. Invocation command line was
  16892. +
  16893. + $ $0 $@
  16894. +
  16895. +_ACEOF
  16896. +exec 5>>config.log
  16897. +{
  16898. +cat <<_ASUNAME
  16899. +## --------- ##
  16900. +## Platform. ##
  16901. +## --------- ##
  16902. +
  16903. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  16904. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  16905. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  16906. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  16907. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  16908. +
  16909. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  16910. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  16911. +
  16912. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  16913. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  16914. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  16915. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  16916. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  16917. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  16918. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  16919. +
  16920. +_ASUNAME
  16921. +
  16922. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16923. +for as_dir in $PATH
  16924. +do
  16925. + IFS=$as_save_IFS
  16926. + test -z "$as_dir" && as_dir=.
  16927. + $as_echo "PATH: $as_dir"
  16928. + done
  16929. +IFS=$as_save_IFS
  16930. +
  16931. +} >&5
  16932. cat >&5 <<_ACEOF
  16933. @@ -1669,12 +2096,12 @@
  16934. | -silent | --silent | --silen | --sile | --sil)
  16935. continue ;;
  16936. *\'*)
  16937. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16938. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16939. esac
  16940. case $ac_pass in
  16941. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  16942. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  16943. 2)
  16944. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  16945. + as_fn_append ac_configure_args1 " '$ac_arg'"
  16946. if test $ac_must_keep_next = true; then
  16947. ac_must_keep_next=false # Got value, back to normal.
  16948. else
  16949. @@ -1690,13 +2117,13 @@
  16950. -* ) ac_must_keep_next=true ;;
  16951. esac
  16952. fi
  16953. - ac_configure_args="$ac_configure_args '$ac_arg'"
  16954. + as_fn_append ac_configure_args " '$ac_arg'"
  16955. ;;
  16956. esac
  16957. done
  16958. done
  16959. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  16960. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  16961. +{ ac_configure_args0=; unset ac_configure_args0;}
  16962. +{ ac_configure_args1=; unset ac_configure_args1;}
  16963. # When interrupted or exit'd, cleanup temporary files, and complete
  16964. # config.log. We remove comments because anyway the quotes in there
  16965. @@ -1721,12 +2148,13 @@
  16966. case $ac_val in #(
  16967. *${as_nl}*)
  16968. case $ac_var in #(
  16969. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  16970. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  16971. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16972. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16973. esac
  16974. case $ac_var in #(
  16975. _ | IFS | as_nl) ;; #(
  16976. - *) $as_unset $ac_var ;;
  16977. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16978. + *) { eval $ac_var=; unset $ac_var;} ;;
  16979. esac ;;
  16980. esac
  16981. done
  16982. @@ -1755,9 +2183,9 @@
  16983. do
  16984. eval ac_val=\$$ac_var
  16985. case $ac_val in
  16986. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16987. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16988. esac
  16989. - echo "$ac_var='\''$ac_val'\''"
  16990. + $as_echo "$ac_var='\''$ac_val'\''"
  16991. done | sort
  16992. echo
  16993. @@ -1772,9 +2200,9 @@
  16994. do
  16995. eval ac_val=\$$ac_var
  16996. case $ac_val in
  16997. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16998. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16999. esac
  17000. - echo "$ac_var='\''$ac_val'\''"
  17001. + $as_echo "$ac_var='\''$ac_val'\''"
  17002. done | sort
  17003. echo
  17004. fi
  17005. @@ -1790,83 +2218,88 @@
  17006. echo
  17007. fi
  17008. test "$ac_signal" != 0 &&
  17009. - echo "$as_me: caught signal $ac_signal"
  17010. - echo "$as_me: exit $exit_status"
  17011. + $as_echo "$as_me: caught signal $ac_signal"
  17012. + $as_echo "$as_me: exit $exit_status"
  17013. } >&5
  17014. rm -f core *.core core.conftest.* &&
  17015. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  17016. exit $exit_status
  17017. ' 0
  17018. for ac_signal in 1 2 13 15; do
  17019. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  17020. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  17021. done
  17022. ac_signal=0
  17023. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  17024. rm -f -r conftest* confdefs.h
  17025. +$as_echo "/* confdefs.h */" > confdefs.h
  17026. +
  17027. # Predefined preprocessor variables.
  17028. cat >>confdefs.h <<_ACEOF
  17029. #define PACKAGE_NAME "$PACKAGE_NAME"
  17030. _ACEOF
  17031. -
  17032. cat >>confdefs.h <<_ACEOF
  17033. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  17034. _ACEOF
  17035. -
  17036. cat >>confdefs.h <<_ACEOF
  17037. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  17038. _ACEOF
  17039. -
  17040. cat >>confdefs.h <<_ACEOF
  17041. #define PACKAGE_STRING "$PACKAGE_STRING"
  17042. _ACEOF
  17043. -
  17044. cat >>confdefs.h <<_ACEOF
  17045. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  17046. _ACEOF
  17047. +cat >>confdefs.h <<_ACEOF
  17048. +#define PACKAGE_URL "$PACKAGE_URL"
  17049. +_ACEOF
  17050. +
  17051. # Let the site file select an alternate cache file if it wants to.
  17052. -# Prefer explicitly selected file to automatically selected ones.
  17053. +# Prefer an explicitly selected file to automatically selected ones.
  17054. +ac_site_file1=NONE
  17055. +ac_site_file2=NONE
  17056. if test -n "$CONFIG_SITE"; then
  17057. - set x "$CONFIG_SITE"
  17058. + ac_site_file1=$CONFIG_SITE
  17059. elif test "x$prefix" != xNONE; then
  17060. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  17061. + ac_site_file1=$prefix/share/config.site
  17062. + ac_site_file2=$prefix/etc/config.site
  17063. else
  17064. - set x "$ac_default_prefix/share/config.site" \
  17065. - "$ac_default_prefix/etc/config.site"
  17066. + ac_site_file1=$ac_default_prefix/share/config.site
  17067. + ac_site_file2=$ac_default_prefix/etc/config.site
  17068. fi
  17069. -shift
  17070. -for ac_site_file
  17071. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  17072. do
  17073. - if test -r "$ac_site_file"; then
  17074. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  17075. -echo "$as_me: loading site script $ac_site_file" >&6;}
  17076. + test "x$ac_site_file" = xNONE && continue
  17077. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  17078. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  17079. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  17080. sed 's/^/| /' "$ac_site_file" >&5
  17081. . "$ac_site_file"
  17082. fi
  17083. done
  17084. if test -r "$cache_file"; then
  17085. - # Some versions of bash will fail to source /dev/null (special
  17086. - # files actually), so we avoid doing that.
  17087. - if test -f "$cache_file"; then
  17088. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  17089. -echo "$as_me: loading cache $cache_file" >&6;}
  17090. + # Some versions of bash will fail to source /dev/null (special files
  17091. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  17092. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  17093. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  17094. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  17095. case $cache_file in
  17096. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  17097. *) . "./$cache_file";;
  17098. esac
  17099. fi
  17100. else
  17101. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  17102. -echo "$as_me: creating cache $cache_file" >&6;}
  17103. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  17104. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  17105. >$cache_file
  17106. fi
  17107. @@ -1880,68 +2313,56 @@
  17108. eval ac_new_val=\$ac_env_${ac_var}_value
  17109. case $ac_old_set,$ac_new_set in
  17110. set,)
  17111. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  17112. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  17113. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  17114. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  17115. ac_cache_corrupted=: ;;
  17116. ,set)
  17117. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  17118. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  17119. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  17120. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  17121. ac_cache_corrupted=: ;;
  17122. ,);;
  17123. *)
  17124. if test "x$ac_old_val" != "x$ac_new_val"; then
  17125. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  17126. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  17127. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  17128. -echo "$as_me: former value: $ac_old_val" >&2;}
  17129. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  17130. -echo "$as_me: current value: $ac_new_val" >&2;}
  17131. - ac_cache_corrupted=:
  17132. + # differences in whitespace do not lead to failure.
  17133. + ac_old_val_w=`echo x $ac_old_val`
  17134. + ac_new_val_w=`echo x $ac_new_val`
  17135. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  17136. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  17137. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  17138. + ac_cache_corrupted=:
  17139. + else
  17140. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  17141. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  17142. + eval $ac_var=\$ac_old_val
  17143. + fi
  17144. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  17145. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  17146. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  17147. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  17148. fi;;
  17149. esac
  17150. # Pass precious variables to config.status.
  17151. if test "$ac_new_set" = set; then
  17152. case $ac_new_val in
  17153. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  17154. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  17155. *) ac_arg=$ac_var=$ac_new_val ;;
  17156. esac
  17157. case " $ac_configure_args " in
  17158. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  17159. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  17160. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  17161. esac
  17162. fi
  17163. done
  17164. if $ac_cache_corrupted; then
  17165. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  17166. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  17167. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  17168. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  17169. - { (exit 1); exit 1; }; }
  17170. -fi
  17171. -
  17172. -
  17173. -
  17174. -
  17175. -
  17176. -
  17177. -
  17178. -
  17179. -
  17180. -
  17181. -
  17182. -
  17183. -
  17184. -
  17185. -
  17186. -
  17187. -
  17188. -
  17189. -
  17190. -
  17191. -
  17192. -
  17193. -
  17194. -
  17195. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17196. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17197. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  17198. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  17199. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  17200. +fi
  17201. +## -------------------- ##
  17202. +## Main body of script. ##
  17203. +## -------------------- ##
  17204. ac_ext=c
  17205. ac_cpp='$CPP $CPPFLAGS'
  17206. @@ -1950,28 +2371,20 @@
  17207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17208. -{ echo "$as_me:$LINENO: result: beginning autoconfiguration process for libnet-${PACKAGE_VERSION} ..." >&5
  17209. -echo "${ECHO_T}beginning autoconfiguration process for libnet-${PACKAGE_VERSION} ..." >&6; }
  17210. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: beginning autoconfiguration process for libnet-${PACKAGE_VERSION} ..." >&5
  17211. +$as_echo "beginning autoconfiguration process for libnet-${PACKAGE_VERSION} ..." >&6; }
  17212. ac_aux_dir=
  17213. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  17214. - if test -f "$ac_dir/install-sh"; then
  17215. - ac_aux_dir=$ac_dir
  17216. - ac_install_sh="$ac_aux_dir/install-sh -c"
  17217. - break
  17218. - elif test -f "$ac_dir/install.sh"; then
  17219. - ac_aux_dir=$ac_dir
  17220. - ac_install_sh="$ac_aux_dir/install.sh -c"
  17221. - break
  17222. - elif test -f "$ac_dir/shtool"; then
  17223. - ac_aux_dir=$ac_dir
  17224. - ac_install_sh="$ac_aux_dir/shtool install -c"
  17225. - break
  17226. - fi
  17227. + for ac_t in install-sh install.sh shtool; do
  17228. + if test -f "$ac_dir/$ac_t"; then
  17229. + ac_aux_dir=$ac_dir
  17230. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  17231. + break 2
  17232. + fi
  17233. + done
  17234. done
  17235. if test -z "$ac_aux_dir"; then
  17236. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  17237. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  17238. - { (exit 1); exit 1; }; }
  17239. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  17240. fi
  17241. # These three variables are undocumented and unsupported,
  17242. @@ -1985,35 +2398,27 @@
  17243. # Make sure we can run config.sub.
  17244. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  17245. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  17246. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  17247. - { (exit 1); exit 1; }; }
  17248. -
  17249. -{ echo "$as_me:$LINENO: checking build system type" >&5
  17250. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  17251. -if test "${ac_cv_build+set}" = set; then
  17252. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17253. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  17254. +
  17255. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  17256. +$as_echo_n "checking build system type... " >&6; }
  17257. +if test "${ac_cv_build+set}" = set; then :
  17258. + $as_echo_n "(cached) " >&6
  17259. else
  17260. ac_build_alias=$build_alias
  17261. test "x$ac_build_alias" = x &&
  17262. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  17263. test "x$ac_build_alias" = x &&
  17264. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  17265. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  17266. - { (exit 1); exit 1; }; }
  17267. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  17268. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  17269. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  17270. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  17271. - { (exit 1); exit 1; }; }
  17272. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  17273. fi
  17274. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  17275. -echo "${ECHO_T}$ac_cv_build" >&6; }
  17276. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  17277. +$as_echo "$ac_cv_build" >&6; }
  17278. case $ac_cv_build in
  17279. *-*-*) ;;
  17280. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  17281. -echo "$as_me: error: invalid value of canonical build" >&2;}
  17282. - { (exit 1); exit 1; }; };;
  17283. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  17284. esac
  17285. build=$ac_cv_build
  17286. ac_save_IFS=$IFS; IFS='-'
  17287. @@ -2029,28 +2434,24 @@
  17288. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  17289. -{ echo "$as_me:$LINENO: checking host system type" >&5
  17290. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  17291. -if test "${ac_cv_host+set}" = set; then
  17292. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17293. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  17294. +$as_echo_n "checking host system type... " >&6; }
  17295. +if test "${ac_cv_host+set}" = set; then :
  17296. + $as_echo_n "(cached) " >&6
  17297. else
  17298. if test "x$host_alias" = x; then
  17299. ac_cv_host=$ac_cv_build
  17300. else
  17301. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  17302. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  17303. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  17304. - { (exit 1); exit 1; }; }
  17305. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  17306. fi
  17307. fi
  17308. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  17309. -echo "${ECHO_T}$ac_cv_host" >&6; }
  17310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  17311. +$as_echo "$ac_cv_host" >&6; }
  17312. case $ac_cv_host in
  17313. *-*-*) ;;
  17314. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  17315. -echo "$as_me: error: invalid value of canonical host" >&2;}
  17316. - { (exit 1); exit 1; }; };;
  17317. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  17318. esac
  17319. host=$ac_cv_host
  17320. ac_save_IFS=$IFS; IFS='-'
  17321. @@ -2066,28 +2467,24 @@
  17322. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  17323. -{ echo "$as_me:$LINENO: checking target system type" >&5
  17324. -echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  17325. -if test "${ac_cv_target+set}" = set; then
  17326. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17327. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  17328. +$as_echo_n "checking target system type... " >&6; }
  17329. +if test "${ac_cv_target+set}" = set; then :
  17330. + $as_echo_n "(cached) " >&6
  17331. else
  17332. if test "x$target_alias" = x; then
  17333. ac_cv_target=$ac_cv_host
  17334. else
  17335. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  17336. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  17337. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  17338. - { (exit 1); exit 1; }; }
  17339. + as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  17340. fi
  17341. fi
  17342. -{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  17343. -echo "${ECHO_T}$ac_cv_target" >&6; }
  17344. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  17345. +$as_echo "$ac_cv_target" >&6; }
  17346. case $ac_cv_target in
  17347. *-*-*) ;;
  17348. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  17349. -echo "$as_me: error: invalid value of canonical target" >&2;}
  17350. - { (exit 1); exit 1; }; };;
  17351. +*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  17352. esac
  17353. target=$ac_cv_target
  17354. ac_save_IFS=$IFS; IFS='-'
  17355. @@ -2111,7 +2508,8 @@
  17356. program_prefix=${target_alias}-
  17357. -am__api_version='1.10'
  17358. +
  17359. +am__api_version='1.11'
  17360. # Find a good install program. We prefer a C program (faster),
  17361. # so one script is as good as another. But avoid the broken or
  17362. @@ -2126,22 +2524,23 @@
  17363. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17364. # OS/2's system install, which has a completely different semantic
  17365. # ./install, which can be erroneously created by make from ./install.sh.
  17366. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17367. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  17368. +# Reject install programs that cannot install multiple files.
  17369. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  17370. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  17371. if test -z "$INSTALL"; then
  17372. -if test "${ac_cv_path_install+set}" = set; then
  17373. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17374. +if test "${ac_cv_path_install+set}" = set; then :
  17375. + $as_echo_n "(cached) " >&6
  17376. else
  17377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17378. for as_dir in $PATH
  17379. do
  17380. IFS=$as_save_IFS
  17381. test -z "$as_dir" && as_dir=.
  17382. - # Account for people who put trailing slashes in PATH elements.
  17383. -case $as_dir/ in
  17384. - ./ | .// | /cC/* | \
  17385. + # Account for people who put trailing slashes in PATH elements.
  17386. +case $as_dir/ in #((
  17387. + ./ | .// | /[cC]/* | \
  17388. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17389. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17390. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  17391. /usr/ucb/* ) ;;
  17392. *)
  17393. # OSF1 and SCO ODT 3.0 have their own names for install.
  17394. @@ -2159,17 +2558,29 @@
  17395. # program-specific install script used by HP pwplus--don't use.
  17396. :
  17397. else
  17398. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17399. - break 3
  17400. + rm -rf conftest.one conftest.two conftest.dir
  17401. + echo one > conftest.one
  17402. + echo two > conftest.two
  17403. + mkdir conftest.dir
  17404. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  17405. + test -s conftest.one && test -s conftest.two &&
  17406. + test -s conftest.dir/conftest.one &&
  17407. + test -s conftest.dir/conftest.two
  17408. + then
  17409. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17410. + break 3
  17411. + fi
  17412. fi
  17413. fi
  17414. done
  17415. done
  17416. ;;
  17417. esac
  17418. -done
  17419. +
  17420. + done
  17421. IFS=$as_save_IFS
  17422. +rm -rf conftest.one conftest.two conftest.dir
  17423. fi
  17424. if test "${ac_cv_path_install+set}" = set; then
  17425. @@ -2182,8 +2593,8 @@
  17426. INSTALL=$ac_install_sh
  17427. fi
  17428. fi
  17429. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  17430. -echo "${ECHO_T}$INSTALL" >&6; }
  17431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  17432. +$as_echo "$INSTALL" >&6; }
  17433. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17434. # It thinks the first close brace ends the variable substitution.
  17435. @@ -2193,21 +2604,34 @@
  17436. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17437. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  17438. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  17439. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  17440. +$as_echo_n "checking whether build environment is sane... " >&6; }
  17441. # Just in case
  17442. sleep 1
  17443. echo timestamp > conftest.file
  17444. +# Reject unsafe characters in $srcdir or the absolute working directory
  17445. +# name. Accept space and tab only in the latter.
  17446. +am_lf='
  17447. +'
  17448. +case `pwd` in
  17449. + *[\\\"\#\$\&\'\`$am_lf]*)
  17450. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  17451. +esac
  17452. +case $srcdir in
  17453. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  17454. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  17455. +esac
  17456. +
  17457. # Do `set' in a subshell so we don't clobber the current shell's
  17458. # arguments. Must try -L first in case configure is actually a
  17459. # symlink; some systems play weird games with the mod time of symlinks
  17460. # (eg FreeBSD returns the mod time of the symlink's containing
  17461. # directory).
  17462. if (
  17463. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  17464. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  17465. if test "$*" = "X"; then
  17466. # -L didn't work.
  17467. - set X `ls -t $srcdir/configure conftest.file`
  17468. + set X `ls -t "$srcdir/configure" conftest.file`
  17469. fi
  17470. rm -f conftest.file
  17471. if test "$*" != "X $srcdir/configure conftest.file" \
  17472. @@ -2217,11 +2641,8 @@
  17473. # if, for instance, CONFIG_SHELL is bash and it inherits a
  17474. # broken ls alias from the environment. This has actually
  17475. # happened. Such a system could not be considered "sane".
  17476. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  17477. -alias in your environment" >&5
  17478. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  17479. -alias in your environment" >&2;}
  17480. - { (exit 1); exit 1; }; }
  17481. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  17482. +alias in your environment" "$LINENO" 5
  17483. fi
  17484. test "$2" = conftest.file
  17485. @@ -2230,53 +2651,163 @@
  17486. # Ok.
  17487. :
  17488. else
  17489. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  17490. -Check your system clock" >&5
  17491. -echo "$as_me: error: newly created file is older than distributed files!
  17492. -Check your system clock" >&2;}
  17493. - { (exit 1); exit 1; }; }
  17494. + as_fn_error "newly created file is older than distributed files!
  17495. +Check your system clock" "$LINENO" 5
  17496. fi
  17497. -{ echo "$as_me:$LINENO: result: yes" >&5
  17498. -echo "${ECHO_T}yes" >&6; }
  17499. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17500. +$as_echo "yes" >&6; }
  17501. test "$program_prefix" != NONE &&
  17502. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  17503. # Use a double $ so make ignores it.
  17504. test "$program_suffix" != NONE &&
  17505. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  17506. -# Double any \ or $. echo might interpret backslashes.
  17507. +# Double any \ or $.
  17508. # By default was `s,x,x', remove it if useless.
  17509. -cat <<\_ACEOF >conftest.sed
  17510. -s/[\\$]/&&/g;s/;s,x,x,$//
  17511. -_ACEOF
  17512. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  17513. -rm -f conftest.sed
  17514. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  17515. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  17516. # expand $ac_aux_dir to an absolute path
  17517. am_aux_dir=`cd $ac_aux_dir && pwd`
  17518. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  17519. +if test x"${MISSING+set}" != xset; then
  17520. + case $am_aux_dir in
  17521. + *\ * | *\ *)
  17522. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  17523. + *)
  17524. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  17525. + esac
  17526. +fi
  17527. # Use eval to expand $SHELL
  17528. if eval "$MISSING --run true"; then
  17529. am_missing_run="$MISSING --run "
  17530. else
  17531. am_missing_run=
  17532. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  17533. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17534. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  17535. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17536. fi
  17537. -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  17538. -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  17539. -if test -z "$MKDIR_P"; then
  17540. - if test "${ac_cv_path_mkdir+set}" = set; then
  17541. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17542. +if test x"${install_sh}" != xset; then
  17543. + case $am_aux_dir in
  17544. + *\ * | *\ *)
  17545. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  17546. + *)
  17547. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  17548. + esac
  17549. +fi
  17550. +
  17551. +# Installed binaries are usually stripped using `strip' when the user
  17552. +# run `make install-strip'. However `strip' might not be the right
  17553. +# tool to use in cross-compilation environments, therefore Automake
  17554. +# will honor the `STRIP' environment variable to overrule this program.
  17555. +if test "$cross_compiling" != no; then
  17556. + if test -n "$ac_tool_prefix"; then
  17557. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17558. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  17559. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17560. +$as_echo_n "checking for $ac_word... " >&6; }
  17561. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  17562. + $as_echo_n "(cached) " >&6
  17563. else
  17564. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17565. -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  17566. -do
  17567. - IFS=$as_save_IFS
  17568. - test -z "$as_dir" && as_dir=.
  17569. - for ac_prog in mkdir gmkdir; do
  17570. - for ac_exec_ext in '' $ac_executable_extensions; do
  17571. + if test -n "$STRIP"; then
  17572. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17573. +else
  17574. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17575. +for as_dir in $PATH
  17576. +do
  17577. + IFS=$as_save_IFS
  17578. + test -z "$as_dir" && as_dir=.
  17579. + for ac_exec_ext in '' $ac_executable_extensions; do
  17580. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17581. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17582. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17583. + break 2
  17584. + fi
  17585. +done
  17586. + done
  17587. +IFS=$as_save_IFS
  17588. +
  17589. +fi
  17590. +fi
  17591. +STRIP=$ac_cv_prog_STRIP
  17592. +if test -n "$STRIP"; then
  17593. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  17594. +$as_echo "$STRIP" >&6; }
  17595. +else
  17596. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17597. +$as_echo "no" >&6; }
  17598. +fi
  17599. +
  17600. +
  17601. +fi
  17602. +if test -z "$ac_cv_prog_STRIP"; then
  17603. + ac_ct_STRIP=$STRIP
  17604. + # Extract the first word of "strip", so it can be a program name with args.
  17605. +set dummy strip; ac_word=$2
  17606. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17607. +$as_echo_n "checking for $ac_word... " >&6; }
  17608. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  17609. + $as_echo_n "(cached) " >&6
  17610. +else
  17611. + if test -n "$ac_ct_STRIP"; then
  17612. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17613. +else
  17614. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17615. +for as_dir in $PATH
  17616. +do
  17617. + IFS=$as_save_IFS
  17618. + test -z "$as_dir" && as_dir=.
  17619. + for ac_exec_ext in '' $ac_executable_extensions; do
  17620. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17621. + ac_cv_prog_ac_ct_STRIP="strip"
  17622. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17623. + break 2
  17624. + fi
  17625. +done
  17626. + done
  17627. +IFS=$as_save_IFS
  17628. +
  17629. +fi
  17630. +fi
  17631. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17632. +if test -n "$ac_ct_STRIP"; then
  17633. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  17634. +$as_echo "$ac_ct_STRIP" >&6; }
  17635. +else
  17636. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17637. +$as_echo "no" >&6; }
  17638. +fi
  17639. +
  17640. + if test "x$ac_ct_STRIP" = x; then
  17641. + STRIP=":"
  17642. + else
  17643. + case $cross_compiling:$ac_tool_warned in
  17644. +yes:)
  17645. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17646. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17647. +ac_tool_warned=yes ;;
  17648. +esac
  17649. + STRIP=$ac_ct_STRIP
  17650. + fi
  17651. +else
  17652. + STRIP="$ac_cv_prog_STRIP"
  17653. +fi
  17654. +
  17655. +fi
  17656. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  17657. +
  17658. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  17659. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  17660. +if test -z "$MKDIR_P"; then
  17661. + if test "${ac_cv_path_mkdir+set}" = set; then :
  17662. + $as_echo_n "(cached) " >&6
  17663. +else
  17664. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17665. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  17666. +do
  17667. + IFS=$as_save_IFS
  17668. + test -z "$as_dir" && as_dir=.
  17669. + for ac_prog in mkdir gmkdir; do
  17670. + for ac_exec_ext in '' $ac_executable_extensions; do
  17671. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  17672. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  17673. 'mkdir (GNU coreutils) '* | \
  17674. @@ -2287,11 +2818,12 @@
  17675. esac
  17676. done
  17677. done
  17678. -done
  17679. + done
  17680. IFS=$as_save_IFS
  17681. fi
  17682. + test -d ./--version && rmdir ./--version
  17683. if test "${ac_cv_path_mkdir+set}" = set; then
  17684. MKDIR_P="$ac_cv_path_mkdir -p"
  17685. else
  17686. @@ -2299,12 +2831,11 @@
  17687. # value for MKDIR_P within a source directory, because that will
  17688. # break other packages using the cache if that directory is
  17689. # removed, or if the value is a relative name.
  17690. - test -d ./--version && rmdir ./--version
  17691. MKDIR_P="$ac_install_sh -d"
  17692. fi
  17693. fi
  17694. -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  17695. -echo "${ECHO_T}$MKDIR_P" >&6; }
  17696. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  17697. +$as_echo "$MKDIR_P" >&6; }
  17698. mkdir_p="$MKDIR_P"
  17699. case $mkdir_p in
  17700. @@ -2316,10 +2847,10 @@
  17701. do
  17702. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17703. set dummy $ac_prog; ac_word=$2
  17704. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17705. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17706. -if test "${ac_cv_prog_AWK+set}" = set; then
  17707. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17708. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17709. +$as_echo_n "checking for $ac_word... " >&6; }
  17710. +if test "${ac_cv_prog_AWK+set}" = set; then :
  17711. + $as_echo_n "(cached) " >&6
  17712. else
  17713. if test -n "$AWK"; then
  17714. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17715. @@ -2329,36 +2860,37 @@
  17716. do
  17717. IFS=$as_save_IFS
  17718. test -z "$as_dir" && as_dir=.
  17719. - for ac_exec_ext in '' $ac_executable_extensions; do
  17720. + for ac_exec_ext in '' $ac_executable_extensions; do
  17721. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17722. ac_cv_prog_AWK="$ac_prog"
  17723. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17724. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17725. break 2
  17726. fi
  17727. done
  17728. -done
  17729. + done
  17730. IFS=$as_save_IFS
  17731. fi
  17732. fi
  17733. AWK=$ac_cv_prog_AWK
  17734. if test -n "$AWK"; then
  17735. - { echo "$as_me:$LINENO: result: $AWK" >&5
  17736. -echo "${ECHO_T}$AWK" >&6; }
  17737. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  17738. +$as_echo "$AWK" >&6; }
  17739. else
  17740. - { echo "$as_me:$LINENO: result: no" >&5
  17741. -echo "${ECHO_T}no" >&6; }
  17742. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17743. +$as_echo "no" >&6; }
  17744. fi
  17745. test -n "$AWK" && break
  17746. done
  17747. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17748. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  17749. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17750. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  17751. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17752. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17753. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  17754. +set x ${MAKE-make}
  17755. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17756. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  17757. + $as_echo_n "(cached) " >&6
  17758. else
  17759. cat >conftest.make <<\_ACEOF
  17760. SHELL = /bin/sh
  17761. @@ -2375,12 +2907,12 @@
  17762. rm -f conftest.make
  17763. fi
  17764. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  17765. - { echo "$as_me:$LINENO: result: yes" >&5
  17766. -echo "${ECHO_T}yes" >&6; }
  17767. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17768. +$as_echo "yes" >&6; }
  17769. SET_MAKE=
  17770. else
  17771. - { echo "$as_me:$LINENO: result: no" >&5
  17772. -echo "${ECHO_T}no" >&6; }
  17773. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17774. +$as_echo "no" >&6; }
  17775. SET_MAKE="MAKE=${MAKE-make}"
  17776. fi
  17777. @@ -2399,9 +2931,7 @@
  17778. am__isrc=' -I$(srcdir)'
  17779. # test to see if srcdir already configured
  17780. if test -f $srcdir/config.status; then
  17781. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  17782. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  17783. - { (exit 1); exit 1; }; }
  17784. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  17785. fi
  17786. fi
  17787. @@ -2445,112 +2975,6 @@
  17788. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  17789. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  17790. -
  17791. -# Installed binaries are usually stripped using `strip' when the user
  17792. -# run `make install-strip'. However `strip' might not be the right
  17793. -# tool to use in cross-compilation environments, therefore Automake
  17794. -# will honor the `STRIP' environment variable to overrule this program.
  17795. -if test "$cross_compiling" != no; then
  17796. - if test -n "$ac_tool_prefix"; then
  17797. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17798. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  17799. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17800. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17801. -if test "${ac_cv_prog_STRIP+set}" = set; then
  17802. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17803. -else
  17804. - if test -n "$STRIP"; then
  17805. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17806. -else
  17807. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17808. -for as_dir in $PATH
  17809. -do
  17810. - IFS=$as_save_IFS
  17811. - test -z "$as_dir" && as_dir=.
  17812. - for ac_exec_ext in '' $ac_executable_extensions; do
  17813. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17814. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17815. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17816. - break 2
  17817. - fi
  17818. -done
  17819. -done
  17820. -IFS=$as_save_IFS
  17821. -
  17822. -fi
  17823. -fi
  17824. -STRIP=$ac_cv_prog_STRIP
  17825. -if test -n "$STRIP"; then
  17826. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  17827. -echo "${ECHO_T}$STRIP" >&6; }
  17828. -else
  17829. - { echo "$as_me:$LINENO: result: no" >&5
  17830. -echo "${ECHO_T}no" >&6; }
  17831. -fi
  17832. -
  17833. -
  17834. -fi
  17835. -if test -z "$ac_cv_prog_STRIP"; then
  17836. - ac_ct_STRIP=$STRIP
  17837. - # Extract the first word of "strip", so it can be a program name with args.
  17838. -set dummy strip; ac_word=$2
  17839. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17840. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17841. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17842. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17843. -else
  17844. - if test -n "$ac_ct_STRIP"; then
  17845. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17846. -else
  17847. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17848. -for as_dir in $PATH
  17849. -do
  17850. - IFS=$as_save_IFS
  17851. - test -z "$as_dir" && as_dir=.
  17852. - for ac_exec_ext in '' $ac_executable_extensions; do
  17853. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17854. - ac_cv_prog_ac_ct_STRIP="strip"
  17855. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17856. - break 2
  17857. - fi
  17858. -done
  17859. -done
  17860. -IFS=$as_save_IFS
  17861. -
  17862. -fi
  17863. -fi
  17864. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17865. -if test -n "$ac_ct_STRIP"; then
  17866. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17867. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  17868. -else
  17869. - { echo "$as_me:$LINENO: result: no" >&5
  17870. -echo "${ECHO_T}no" >&6; }
  17871. -fi
  17872. -
  17873. - if test "x$ac_ct_STRIP" = x; then
  17874. - STRIP=":"
  17875. - else
  17876. - case $cross_compiling:$ac_tool_warned in
  17877. -yes:)
  17878. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17879. -whose name does not start with the host triplet. If you think this
  17880. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17881. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17882. -whose name does not start with the host triplet. If you think this
  17883. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17884. -ac_tool_warned=yes ;;
  17885. -esac
  17886. - STRIP=$ac_ct_STRIP
  17887. - fi
  17888. -else
  17889. - STRIP="$ac_cv_prog_STRIP"
  17890. -fi
  17891. -
  17892. -fi
  17893. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  17894. -
  17895. # We need awk for the "check" target. The system "awk" is bad on
  17896. # some platforms.
  17897. # Always define AMTAR for backward compatibility.
  17898. @@ -2565,17 +2989,18 @@
  17899. ac_config_headers="$ac_config_headers include/config.h"
  17900. -{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17901. -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  17902. +
  17903. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17904. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  17905. # Check whether --enable-maintainer-mode was given.
  17906. -if test "${enable_maintainer_mode+set}" = set; then
  17907. +if test "${enable_maintainer_mode+set}" = set; then :
  17908. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  17909. else
  17910. USE_MAINTAINER_MODE=no
  17911. fi
  17912. - { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  17913. -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  17914. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  17915. +$as_echo "$USE_MAINTAINER_MODE" >&6; }
  17916. if test $USE_MAINTAINER_MODE = yes; then
  17917. MAINTAINER_MODE_TRUE=
  17918. MAINTAINER_MODE_FALSE='#'
  17919. @@ -2596,10 +3021,10 @@
  17920. if test -n "$ac_tool_prefix"; then
  17921. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17922. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17923. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17924. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17925. -if test "${ac_cv_prog_CC+set}" = set; then
  17926. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17927. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17928. +$as_echo_n "checking for $ac_word... " >&6; }
  17929. +if test "${ac_cv_prog_CC+set}" = set; then :
  17930. + $as_echo_n "(cached) " >&6
  17931. else
  17932. if test -n "$CC"; then
  17933. ac_cv_prog_CC="$CC" # Let the user override the test.
  17934. @@ -2609,25 +3034,25 @@
  17935. do
  17936. IFS=$as_save_IFS
  17937. test -z "$as_dir" && as_dir=.
  17938. - for ac_exec_ext in '' $ac_executable_extensions; do
  17939. + for ac_exec_ext in '' $ac_executable_extensions; do
  17940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17941. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17942. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17943. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17944. break 2
  17945. fi
  17946. done
  17947. -done
  17948. + done
  17949. IFS=$as_save_IFS
  17950. fi
  17951. fi
  17952. CC=$ac_cv_prog_CC
  17953. if test -n "$CC"; then
  17954. - { echo "$as_me:$LINENO: result: $CC" >&5
  17955. -echo "${ECHO_T}$CC" >&6; }
  17956. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17957. +$as_echo "$CC" >&6; }
  17958. else
  17959. - { echo "$as_me:$LINENO: result: no" >&5
  17960. -echo "${ECHO_T}no" >&6; }
  17961. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17962. +$as_echo "no" >&6; }
  17963. fi
  17964. @@ -2636,10 +3061,10 @@
  17965. ac_ct_CC=$CC
  17966. # Extract the first word of "gcc", so it can be a program name with args.
  17967. set dummy gcc; ac_word=$2
  17968. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17969. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17970. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17971. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17972. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17973. +$as_echo_n "checking for $ac_word... " >&6; }
  17974. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  17975. + $as_echo_n "(cached) " >&6
  17976. else
  17977. if test -n "$ac_ct_CC"; then
  17978. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17979. @@ -2649,25 +3074,25 @@
  17980. do
  17981. IFS=$as_save_IFS
  17982. test -z "$as_dir" && as_dir=.
  17983. - for ac_exec_ext in '' $ac_executable_extensions; do
  17984. + for ac_exec_ext in '' $ac_executable_extensions; do
  17985. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17986. ac_cv_prog_ac_ct_CC="gcc"
  17987. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17988. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17989. break 2
  17990. fi
  17991. done
  17992. -done
  17993. + done
  17994. IFS=$as_save_IFS
  17995. fi
  17996. fi
  17997. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17998. if test -n "$ac_ct_CC"; then
  17999. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  18000. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  18001. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  18002. +$as_echo "$ac_ct_CC" >&6; }
  18003. else
  18004. - { echo "$as_me:$LINENO: result: no" >&5
  18005. -echo "${ECHO_T}no" >&6; }
  18006. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18007. +$as_echo "no" >&6; }
  18008. fi
  18009. if test "x$ac_ct_CC" = x; then
  18010. @@ -2675,12 +3100,8 @@
  18011. else
  18012. case $cross_compiling:$ac_tool_warned in
  18013. yes:)
  18014. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18015. -whose name does not start with the host triplet. If you think this
  18016. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  18017. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18018. -whose name does not start with the host triplet. If you think this
  18019. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18020. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18021. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18022. ac_tool_warned=yes ;;
  18023. esac
  18024. CC=$ac_ct_CC
  18025. @@ -2693,10 +3114,10 @@
  18026. if test -n "$ac_tool_prefix"; then
  18027. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  18028. set dummy ${ac_tool_prefix}cc; ac_word=$2
  18029. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18030. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18031. -if test "${ac_cv_prog_CC+set}" = set; then
  18032. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18033. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18034. +$as_echo_n "checking for $ac_word... " >&6; }
  18035. +if test "${ac_cv_prog_CC+set}" = set; then :
  18036. + $as_echo_n "(cached) " >&6
  18037. else
  18038. if test -n "$CC"; then
  18039. ac_cv_prog_CC="$CC" # Let the user override the test.
  18040. @@ -2706,25 +3127,25 @@
  18041. do
  18042. IFS=$as_save_IFS
  18043. test -z "$as_dir" && as_dir=.
  18044. - for ac_exec_ext in '' $ac_executable_extensions; do
  18045. + for ac_exec_ext in '' $ac_executable_extensions; do
  18046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18047. ac_cv_prog_CC="${ac_tool_prefix}cc"
  18048. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18049. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18050. break 2
  18051. fi
  18052. done
  18053. -done
  18054. + done
  18055. IFS=$as_save_IFS
  18056. fi
  18057. fi
  18058. CC=$ac_cv_prog_CC
  18059. if test -n "$CC"; then
  18060. - { echo "$as_me:$LINENO: result: $CC" >&5
  18061. -echo "${ECHO_T}$CC" >&6; }
  18062. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18063. +$as_echo "$CC" >&6; }
  18064. else
  18065. - { echo "$as_me:$LINENO: result: no" >&5
  18066. -echo "${ECHO_T}no" >&6; }
  18067. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18068. +$as_echo "no" >&6; }
  18069. fi
  18070. @@ -2733,10 +3154,10 @@
  18071. if test -z "$CC"; then
  18072. # Extract the first word of "cc", so it can be a program name with args.
  18073. set dummy cc; ac_word=$2
  18074. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18075. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18076. -if test "${ac_cv_prog_CC+set}" = set; then
  18077. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18078. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18079. +$as_echo_n "checking for $ac_word... " >&6; }
  18080. +if test "${ac_cv_prog_CC+set}" = set; then :
  18081. + $as_echo_n "(cached) " >&6
  18082. else
  18083. if test -n "$CC"; then
  18084. ac_cv_prog_CC="$CC" # Let the user override the test.
  18085. @@ -2747,18 +3168,18 @@
  18086. do
  18087. IFS=$as_save_IFS
  18088. test -z "$as_dir" && as_dir=.
  18089. - for ac_exec_ext in '' $ac_executable_extensions; do
  18090. + for ac_exec_ext in '' $ac_executable_extensions; do
  18091. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18092. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  18093. ac_prog_rejected=yes
  18094. continue
  18095. fi
  18096. ac_cv_prog_CC="cc"
  18097. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18098. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18099. break 2
  18100. fi
  18101. done
  18102. -done
  18103. + done
  18104. IFS=$as_save_IFS
  18105. if test $ac_prog_rejected = yes; then
  18106. @@ -2777,11 +3198,11 @@
  18107. fi
  18108. CC=$ac_cv_prog_CC
  18109. if test -n "$CC"; then
  18110. - { echo "$as_me:$LINENO: result: $CC" >&5
  18111. -echo "${ECHO_T}$CC" >&6; }
  18112. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18113. +$as_echo "$CC" >&6; }
  18114. else
  18115. - { echo "$as_me:$LINENO: result: no" >&5
  18116. -echo "${ECHO_T}no" >&6; }
  18117. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18118. +$as_echo "no" >&6; }
  18119. fi
  18120. @@ -2792,10 +3213,10 @@
  18121. do
  18122. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18123. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18124. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18125. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18126. -if test "${ac_cv_prog_CC+set}" = set; then
  18127. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18128. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18129. +$as_echo_n "checking for $ac_word... " >&6; }
  18130. +if test "${ac_cv_prog_CC+set}" = set; then :
  18131. + $as_echo_n "(cached) " >&6
  18132. else
  18133. if test -n "$CC"; then
  18134. ac_cv_prog_CC="$CC" # Let the user override the test.
  18135. @@ -2805,25 +3226,25 @@
  18136. do
  18137. IFS=$as_save_IFS
  18138. test -z "$as_dir" && as_dir=.
  18139. - for ac_exec_ext in '' $ac_executable_extensions; do
  18140. + for ac_exec_ext in '' $ac_executable_extensions; do
  18141. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18142. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  18143. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18144. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18145. break 2
  18146. fi
  18147. done
  18148. -done
  18149. + done
  18150. IFS=$as_save_IFS
  18151. fi
  18152. fi
  18153. CC=$ac_cv_prog_CC
  18154. if test -n "$CC"; then
  18155. - { echo "$as_me:$LINENO: result: $CC" >&5
  18156. -echo "${ECHO_T}$CC" >&6; }
  18157. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18158. +$as_echo "$CC" >&6; }
  18159. else
  18160. - { echo "$as_me:$LINENO: result: no" >&5
  18161. -echo "${ECHO_T}no" >&6; }
  18162. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18163. +$as_echo "no" >&6; }
  18164. fi
  18165. @@ -2836,10 +3257,10 @@
  18166. do
  18167. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18168. set dummy $ac_prog; ac_word=$2
  18169. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18170. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18171. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  18172. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18173. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18174. +$as_echo_n "checking for $ac_word... " >&6; }
  18175. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  18176. + $as_echo_n "(cached) " >&6
  18177. else
  18178. if test -n "$ac_ct_CC"; then
  18179. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  18180. @@ -2849,25 +3270,25 @@
  18181. do
  18182. IFS=$as_save_IFS
  18183. test -z "$as_dir" && as_dir=.
  18184. - for ac_exec_ext in '' $ac_executable_extensions; do
  18185. + for ac_exec_ext in '' $ac_executable_extensions; do
  18186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18187. ac_cv_prog_ac_ct_CC="$ac_prog"
  18188. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18189. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18190. break 2
  18191. fi
  18192. done
  18193. -done
  18194. + done
  18195. IFS=$as_save_IFS
  18196. fi
  18197. fi
  18198. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  18199. if test -n "$ac_ct_CC"; then
  18200. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  18201. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  18202. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  18203. +$as_echo "$ac_ct_CC" >&6; }
  18204. else
  18205. - { echo "$as_me:$LINENO: result: no" >&5
  18206. -echo "${ECHO_T}no" >&6; }
  18207. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18208. +$as_echo "no" >&6; }
  18209. fi
  18210. @@ -2879,12 +3300,8 @@
  18211. else
  18212. case $cross_compiling:$ac_tool_warned in
  18213. yes:)
  18214. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18215. -whose name does not start with the host triplet. If you think this
  18216. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  18217. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18218. -whose name does not start with the host triplet. If you think this
  18219. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18220. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18221. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18222. ac_tool_warned=yes ;;
  18223. esac
  18224. CC=$ac_ct_CC
  18225. @@ -2894,51 +3311,37 @@
  18226. fi
  18227. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  18228. -See \`config.log' for more details." >&5
  18229. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  18230. -See \`config.log' for more details." >&2;}
  18231. - { (exit 1); exit 1; }; }
  18232. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18233. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18234. +as_fn_error "no acceptable C compiler found in \$PATH
  18235. +See \`config.log' for more details." "$LINENO" 5; }
  18236. # Provide some information about the compiler.
  18237. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  18238. -ac_compiler=`set X $ac_compile; echo $2`
  18239. -{ (ac_try="$ac_compiler --version >&5"
  18240. -case "(($ac_try" in
  18241. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18242. - *) ac_try_echo=$ac_try;;
  18243. -esac
  18244. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18245. - (eval "$ac_compiler --version >&5") 2>&5
  18246. - ac_status=$?
  18247. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18248. - (exit $ac_status); }
  18249. -{ (ac_try="$ac_compiler -v >&5"
  18250. -case "(($ac_try" in
  18251. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18252. - *) ac_try_echo=$ac_try;;
  18253. -esac
  18254. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18255. - (eval "$ac_compiler -v >&5") 2>&5
  18256. - ac_status=$?
  18257. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18258. - (exit $ac_status); }
  18259. -{ (ac_try="$ac_compiler -V >&5"
  18260. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  18261. +set X $ac_compile
  18262. +ac_compiler=$2
  18263. +for ac_option in --version -v -V -qversion; do
  18264. + { { ac_try="$ac_compiler $ac_option >&5"
  18265. case "(($ac_try" in
  18266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18267. *) ac_try_echo=$ac_try;;
  18268. esac
  18269. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18270. - (eval "$ac_compiler -V >&5") 2>&5
  18271. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18272. +$as_echo "$ac_try_echo"; } >&5
  18273. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  18274. ac_status=$?
  18275. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18276. - (exit $ac_status); }
  18277. + if test -s conftest.err; then
  18278. + sed '10a\
  18279. +... rest of stderr output deleted ...
  18280. + 10q' conftest.err >conftest.er1
  18281. + cat conftest.er1 >&5
  18282. + fi
  18283. + rm -f conftest.er1 conftest.err
  18284. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18285. + test $ac_status = 0; }
  18286. +done
  18287. -cat >conftest.$ac_ext <<_ACEOF
  18288. -/* confdefs.h. */
  18289. -_ACEOF
  18290. -cat confdefs.h >>conftest.$ac_ext
  18291. -cat >>conftest.$ac_ext <<_ACEOF
  18292. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18293. /* end confdefs.h. */
  18294. int
  18295. @@ -2950,42 +3353,38 @@
  18296. }
  18297. _ACEOF
  18298. ac_clean_files_save=$ac_clean_files
  18299. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  18300. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  18301. # Try to create an executable without -o first, disregard a.out.
  18302. # It will help us diagnose broken compilers, and finding out an intuition
  18303. # of exeext.
  18304. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  18305. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  18306. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  18307. -#
  18308. -# List of possible output files, starting from the most likely.
  18309. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  18310. -# only as a last resort. b.out is created by i960 compilers.
  18311. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  18312. -#
  18313. -# The IRIX 6 linker writes into existing files which may not be
  18314. -# executable, retaining their permissions. Remove them first so a
  18315. -# subsequent execution test works.
  18316. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  18317. +$as_echo_n "checking whether the C compiler works... " >&6; }
  18318. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  18319. +
  18320. +# The possible output files:
  18321. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  18322. +
  18323. ac_rmfiles=
  18324. for ac_file in $ac_files
  18325. do
  18326. case $ac_file in
  18327. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  18328. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  18329. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  18330. esac
  18331. done
  18332. rm -f $ac_rmfiles
  18333. -if { (ac_try="$ac_link_default"
  18334. +if { { ac_try="$ac_link_default"
  18335. case "(($ac_try" in
  18336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18337. *) ac_try_echo=$ac_try;;
  18338. esac
  18339. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18340. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18341. +$as_echo "$ac_try_echo"; } >&5
  18342. (eval "$ac_link_default") 2>&5
  18343. ac_status=$?
  18344. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18345. - (exit $ac_status); }; then
  18346. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18347. + test $ac_status = 0; }; then :
  18348. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  18349. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  18350. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  18351. @@ -2995,14 +3394,14 @@
  18352. do
  18353. test -f "$ac_file" || continue
  18354. case $ac_file in
  18355. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  18356. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  18357. ;;
  18358. [ab].out )
  18359. # We found the default executable, but exeext='' is most
  18360. # certainly right.
  18361. break;;
  18362. *.* )
  18363. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  18364. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  18365. then :; else
  18366. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  18367. fi
  18368. @@ -3021,78 +3420,42 @@
  18369. else
  18370. ac_file=''
  18371. fi
  18372. -
  18373. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  18374. -echo "${ECHO_T}$ac_file" >&6; }
  18375. -if test -z "$ac_file"; then
  18376. - echo "$as_me: failed program was:" >&5
  18377. -sed 's/^/| /' conftest.$ac_ext >&5
  18378. -
  18379. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  18380. -See \`config.log' for more details." >&5
  18381. -echo "$as_me: error: C compiler cannot create executables
  18382. -See \`config.log' for more details." >&2;}
  18383. - { (exit 77); exit 77; }; }
  18384. -fi
  18385. -
  18386. +if test -z "$ac_file"; then :
  18387. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18388. +$as_echo "no" >&6; }
  18389. +$as_echo "$as_me: failed program was:" >&5
  18390. +sed 's/^/| /' conftest.$ac_ext >&5
  18391. +
  18392. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18393. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18394. +{ as_fn_set_status 77
  18395. +as_fn_error "C compiler cannot create executables
  18396. +See \`config.log' for more details." "$LINENO" 5; }; }
  18397. +else
  18398. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18399. +$as_echo "yes" >&6; }
  18400. +fi
  18401. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  18402. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  18403. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  18404. +$as_echo "$ac_file" >&6; }
  18405. ac_exeext=$ac_cv_exeext
  18406. -# Check that the compiler produces executables we can run. If not, either
  18407. -# the compiler is broken, or we cross compile.
  18408. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  18409. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  18410. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  18411. -# If not cross compiling, check that we can run a simple program.
  18412. -if test "$cross_compiling" != yes; then
  18413. - if { ac_try='./$ac_file'
  18414. - { (case "(($ac_try" in
  18415. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18416. - *) ac_try_echo=$ac_try;;
  18417. -esac
  18418. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18419. - (eval "$ac_try") 2>&5
  18420. - ac_status=$?
  18421. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18422. - (exit $ac_status); }; }; then
  18423. - cross_compiling=no
  18424. - else
  18425. - if test "$cross_compiling" = maybe; then
  18426. - cross_compiling=yes
  18427. - else
  18428. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  18429. -If you meant to cross compile, use \`--host'.
  18430. -See \`config.log' for more details." >&5
  18431. -echo "$as_me: error: cannot run C compiled programs.
  18432. -If you meant to cross compile, use \`--host'.
  18433. -See \`config.log' for more details." >&2;}
  18434. - { (exit 1); exit 1; }; }
  18435. - fi
  18436. - fi
  18437. -fi
  18438. -{ echo "$as_me:$LINENO: result: yes" >&5
  18439. -echo "${ECHO_T}yes" >&6; }
  18440. -
  18441. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  18442. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  18443. ac_clean_files=$ac_clean_files_save
  18444. -# Check that the compiler produces executables we can run. If not, either
  18445. -# the compiler is broken, or we cross compile.
  18446. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  18447. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  18448. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  18449. -echo "${ECHO_T}$cross_compiling" >&6; }
  18450. -
  18451. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  18452. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  18453. -if { (ac_try="$ac_link"
  18454. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  18455. +$as_echo_n "checking for suffix of executables... " >&6; }
  18456. +if { { ac_try="$ac_link"
  18457. case "(($ac_try" in
  18458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18459. *) ac_try_echo=$ac_try;;
  18460. esac
  18461. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18462. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18463. +$as_echo "$ac_try_echo"; } >&5
  18464. (eval "$ac_link") 2>&5
  18465. ac_status=$?
  18466. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18467. - (exit $ac_status); }; then
  18468. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18469. + test $ac_status = 0; }; then :
  18470. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  18471. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  18472. # work properly (i.e., refer to `conftest.exe'), while it won't with
  18473. @@ -3100,154 +3463,182 @@
  18474. for ac_file in conftest.exe conftest conftest.*; do
  18475. test -f "$ac_file" || continue
  18476. case $ac_file in
  18477. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  18478. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  18479. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  18480. break;;
  18481. * ) break;;
  18482. esac
  18483. done
  18484. else
  18485. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  18486. -See \`config.log' for more details." >&5
  18487. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  18488. -See \`config.log' for more details." >&2;}
  18489. - { (exit 1); exit 1; }; }
  18490. -fi
  18491. -
  18492. -rm -f conftest$ac_cv_exeext
  18493. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  18494. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  18495. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18496. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18497. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  18498. +See \`config.log' for more details." "$LINENO" 5; }
  18499. +fi
  18500. +rm -f conftest conftest$ac_cv_exeext
  18501. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  18502. +$as_echo "$ac_cv_exeext" >&6; }
  18503. rm -f conftest.$ac_ext
  18504. EXEEXT=$ac_cv_exeext
  18505. ac_exeext=$EXEEXT
  18506. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  18507. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  18508. -if test "${ac_cv_objext+set}" = set; then
  18509. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18510. -else
  18511. - cat >conftest.$ac_ext <<_ACEOF
  18512. -/* confdefs.h. */
  18513. -_ACEOF
  18514. -cat confdefs.h >>conftest.$ac_ext
  18515. -cat >>conftest.$ac_ext <<_ACEOF
  18516. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18517. /* end confdefs.h. */
  18518. -
  18519. +#include <stdio.h>
  18520. int
  18521. main ()
  18522. {
  18523. +FILE *f = fopen ("conftest.out", "w");
  18524. + return ferror (f) || fclose (f) != 0;
  18525. ;
  18526. return 0;
  18527. }
  18528. _ACEOF
  18529. -rm -f conftest.o conftest.obj
  18530. -if { (ac_try="$ac_compile"
  18531. +ac_clean_files="$ac_clean_files conftest.out"
  18532. +# Check that the compiler produces executables we can run. If not, either
  18533. +# the compiler is broken, or we cross compile.
  18534. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  18535. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  18536. +if test "$cross_compiling" != yes; then
  18537. + { { ac_try="$ac_link"
  18538. case "(($ac_try" in
  18539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18540. *) ac_try_echo=$ac_try;;
  18541. esac
  18542. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18543. - (eval "$ac_compile") 2>&5
  18544. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18545. +$as_echo "$ac_try_echo"; } >&5
  18546. + (eval "$ac_link") 2>&5
  18547. ac_status=$?
  18548. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18549. - (exit $ac_status); }; then
  18550. - for ac_file in conftest.o conftest.obj conftest.*; do
  18551. - test -f "$ac_file" || continue;
  18552. - case $ac_file in
  18553. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  18554. - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  18555. - break;;
  18556. - esac
  18557. -done
  18558. -else
  18559. - echo "$as_me: failed program was:" >&5
  18560. -sed 's/^/| /' conftest.$ac_ext >&5
  18561. -
  18562. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  18563. -See \`config.log' for more details." >&5
  18564. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  18565. -See \`config.log' for more details." >&2;}
  18566. - { (exit 1); exit 1; }; }
  18567. -fi
  18568. -
  18569. -rm -f conftest.$ac_cv_objext conftest.$ac_ext
  18570. -fi
  18571. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  18572. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  18573. -OBJEXT=$ac_cv_objext
  18574. -ac_objext=$OBJEXT
  18575. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  18576. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  18577. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  18578. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18579. -else
  18580. - cat >conftest.$ac_ext <<_ACEOF
  18581. -/* confdefs.h. */
  18582. -_ACEOF
  18583. -cat confdefs.h >>conftest.$ac_ext
  18584. -cat >>conftest.$ac_ext <<_ACEOF
  18585. -/* end confdefs.h. */
  18586. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18587. + test $ac_status = 0; }
  18588. + if { ac_try='./conftest$ac_cv_exeext'
  18589. + { { case "(($ac_try" in
  18590. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18591. + *) ac_try_echo=$ac_try;;
  18592. +esac
  18593. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18594. +$as_echo "$ac_try_echo"; } >&5
  18595. + (eval "$ac_try") 2>&5
  18596. + ac_status=$?
  18597. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18598. + test $ac_status = 0; }; }; then
  18599. + cross_compiling=no
  18600. + else
  18601. + if test "$cross_compiling" = maybe; then
  18602. + cross_compiling=yes
  18603. + else
  18604. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18605. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18606. +as_fn_error "cannot run C compiled programs.
  18607. +If you meant to cross compile, use \`--host'.
  18608. +See \`config.log' for more details." "$LINENO" 5; }
  18609. + fi
  18610. + fi
  18611. +fi
  18612. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  18613. +$as_echo "$cross_compiling" >&6; }
  18614. +
  18615. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  18616. +ac_clean_files=$ac_clean_files_save
  18617. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  18618. +$as_echo_n "checking for suffix of object files... " >&6; }
  18619. +if test "${ac_cv_objext+set}" = set; then :
  18620. + $as_echo_n "(cached) " >&6
  18621. +else
  18622. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18623. +/* end confdefs.h. */
  18624. int
  18625. main ()
  18626. {
  18627. -#ifndef __GNUC__
  18628. - choke me
  18629. -#endif
  18630. ;
  18631. return 0;
  18632. }
  18633. _ACEOF
  18634. -rm -f conftest.$ac_objext
  18635. -if { (ac_try="$ac_compile"
  18636. +rm -f conftest.o conftest.obj
  18637. +if { { ac_try="$ac_compile"
  18638. case "(($ac_try" in
  18639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18640. *) ac_try_echo=$ac_try;;
  18641. esac
  18642. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18643. - (eval "$ac_compile") 2>conftest.er1
  18644. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18645. +$as_echo "$ac_try_echo"; } >&5
  18646. + (eval "$ac_compile") 2>&5
  18647. ac_status=$?
  18648. - grep -v '^ *+' conftest.er1 >conftest.err
  18649. - rm -f conftest.er1
  18650. - cat conftest.err >&5
  18651. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18652. - (exit $ac_status); } && {
  18653. - test -z "$ac_c_werror_flag" ||
  18654. - test ! -s conftest.err
  18655. - } && test -s conftest.$ac_objext; then
  18656. - ac_compiler_gnu=yes
  18657. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18658. + test $ac_status = 0; }; then :
  18659. + for ac_file in conftest.o conftest.obj conftest.*; do
  18660. + test -f "$ac_file" || continue;
  18661. + case $ac_file in
  18662. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  18663. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  18664. + break;;
  18665. + esac
  18666. +done
  18667. else
  18668. - echo "$as_me: failed program was:" >&5
  18669. + $as_echo "$as_me: failed program was:" >&5
  18670. sed 's/^/| /' conftest.$ac_ext >&5
  18671. - ac_compiler_gnu=no
  18672. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18673. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18674. +as_fn_error "cannot compute suffix of object files: cannot compile
  18675. +See \`config.log' for more details." "$LINENO" 5; }
  18676. +fi
  18677. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  18678. fi
  18679. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  18680. +$as_echo "$ac_cv_objext" >&6; }
  18681. +OBJEXT=$ac_cv_objext
  18682. +ac_objext=$OBJEXT
  18683. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  18684. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  18685. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  18686. + $as_echo_n "(cached) " >&6
  18687. +else
  18688. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18689. +/* end confdefs.h. */
  18690. +int
  18691. +main ()
  18692. +{
  18693. +#ifndef __GNUC__
  18694. + choke me
  18695. +#endif
  18696. +
  18697. + ;
  18698. + return 0;
  18699. +}
  18700. +_ACEOF
  18701. +if ac_fn_c_try_compile "$LINENO"; then :
  18702. + ac_compiler_gnu=yes
  18703. +else
  18704. + ac_compiler_gnu=no
  18705. +fi
  18706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18707. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  18708. fi
  18709. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  18710. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  18711. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  18712. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  18713. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  18714. +if test $ac_compiler_gnu = yes; then
  18715. + GCC=yes
  18716. +else
  18717. + GCC=
  18718. +fi
  18719. ac_test_CFLAGS=${CFLAGS+set}
  18720. ac_save_CFLAGS=$CFLAGS
  18721. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  18722. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  18723. -if test "${ac_cv_prog_cc_g+set}" = set; then
  18724. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  18726. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  18727. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  18728. + $as_echo_n "(cached) " >&6
  18729. else
  18730. ac_save_c_werror_flag=$ac_c_werror_flag
  18731. ac_c_werror_flag=yes
  18732. ac_cv_prog_cc_g=no
  18733. CFLAGS="-g"
  18734. - cat >conftest.$ac_ext <<_ACEOF
  18735. -/* confdefs.h. */
  18736. -_ACEOF
  18737. -cat confdefs.h >>conftest.$ac_ext
  18738. -cat >>conftest.$ac_ext <<_ACEOF
  18739. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18740. /* end confdefs.h. */
  18741. int
  18742. @@ -3258,34 +3649,11 @@
  18743. return 0;
  18744. }
  18745. _ACEOF
  18746. -rm -f conftest.$ac_objext
  18747. -if { (ac_try="$ac_compile"
  18748. -case "(($ac_try" in
  18749. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18750. - *) ac_try_echo=$ac_try;;
  18751. -esac
  18752. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18753. - (eval "$ac_compile") 2>conftest.er1
  18754. - ac_status=$?
  18755. - grep -v '^ *+' conftest.er1 >conftest.err
  18756. - rm -f conftest.er1
  18757. - cat conftest.err >&5
  18758. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18759. - (exit $ac_status); } && {
  18760. - test -z "$ac_c_werror_flag" ||
  18761. - test ! -s conftest.err
  18762. - } && test -s conftest.$ac_objext; then
  18763. +if ac_fn_c_try_compile "$LINENO"; then :
  18764. ac_cv_prog_cc_g=yes
  18765. else
  18766. - echo "$as_me: failed program was:" >&5
  18767. -sed 's/^/| /' conftest.$ac_ext >&5
  18768. -
  18769. - CFLAGS=""
  18770. - cat >conftest.$ac_ext <<_ACEOF
  18771. -/* confdefs.h. */
  18772. -_ACEOF
  18773. -cat confdefs.h >>conftest.$ac_ext
  18774. -cat >>conftest.$ac_ext <<_ACEOF
  18775. + CFLAGS=""
  18776. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18777. /* end confdefs.h. */
  18778. int
  18779. @@ -3296,35 +3664,12 @@
  18780. return 0;
  18781. }
  18782. _ACEOF
  18783. -rm -f conftest.$ac_objext
  18784. -if { (ac_try="$ac_compile"
  18785. -case "(($ac_try" in
  18786. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18787. - *) ac_try_echo=$ac_try;;
  18788. -esac
  18789. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18790. - (eval "$ac_compile") 2>conftest.er1
  18791. - ac_status=$?
  18792. - grep -v '^ *+' conftest.er1 >conftest.err
  18793. - rm -f conftest.er1
  18794. - cat conftest.err >&5
  18795. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18796. - (exit $ac_status); } && {
  18797. - test -z "$ac_c_werror_flag" ||
  18798. - test ! -s conftest.err
  18799. - } && test -s conftest.$ac_objext; then
  18800. - :
  18801. -else
  18802. - echo "$as_me: failed program was:" >&5
  18803. -sed 's/^/| /' conftest.$ac_ext >&5
  18804. +if ac_fn_c_try_compile "$LINENO"; then :
  18805. - ac_c_werror_flag=$ac_save_c_werror_flag
  18806. +else
  18807. + ac_c_werror_flag=$ac_save_c_werror_flag
  18808. CFLAGS="-g"
  18809. - cat >conftest.$ac_ext <<_ACEOF
  18810. -/* confdefs.h. */
  18811. -_ACEOF
  18812. -cat confdefs.h >>conftest.$ac_ext
  18813. -cat >>conftest.$ac_ext <<_ACEOF
  18814. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18815. /* end confdefs.h. */
  18816. int
  18817. @@ -3335,42 +3680,18 @@
  18818. return 0;
  18819. }
  18820. _ACEOF
  18821. -rm -f conftest.$ac_objext
  18822. -if { (ac_try="$ac_compile"
  18823. -case "(($ac_try" in
  18824. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18825. - *) ac_try_echo=$ac_try;;
  18826. -esac
  18827. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18828. - (eval "$ac_compile") 2>conftest.er1
  18829. - ac_status=$?
  18830. - grep -v '^ *+' conftest.er1 >conftest.err
  18831. - rm -f conftest.er1
  18832. - cat conftest.err >&5
  18833. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18834. - (exit $ac_status); } && {
  18835. - test -z "$ac_c_werror_flag" ||
  18836. - test ! -s conftest.err
  18837. - } && test -s conftest.$ac_objext; then
  18838. +if ac_fn_c_try_compile "$LINENO"; then :
  18839. ac_cv_prog_cc_g=yes
  18840. -else
  18841. - echo "$as_me: failed program was:" >&5
  18842. -sed 's/^/| /' conftest.$ac_ext >&5
  18843. -
  18844. -
  18845. fi
  18846. -
  18847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18848. fi
  18849. -
  18850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18851. fi
  18852. -
  18853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18854. ac_c_werror_flag=$ac_save_c_werror_flag
  18855. fi
  18856. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  18857. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  18858. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  18859. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  18860. if test "$ac_test_CFLAGS" = set; then
  18861. CFLAGS=$ac_save_CFLAGS
  18862. elif test $ac_cv_prog_cc_g = yes; then
  18863. @@ -3386,18 +3707,14 @@
  18864. CFLAGS=
  18865. fi
  18866. fi
  18867. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18868. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  18869. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  18870. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18871. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  18872. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  18873. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  18874. + $as_echo_n "(cached) " >&6
  18875. else
  18876. ac_cv_prog_cc_c89=no
  18877. ac_save_CC=$CC
  18878. -cat >conftest.$ac_ext <<_ACEOF
  18879. -/* confdefs.h. */
  18880. -_ACEOF
  18881. -cat confdefs.h >>conftest.$ac_ext
  18882. -cat >>conftest.$ac_ext <<_ACEOF
  18883. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18884. /* end confdefs.h. */
  18885. #include <stdarg.h>
  18886. #include <stdio.h>
  18887. @@ -3454,31 +3771,9 @@
  18888. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18889. do
  18890. CC="$ac_save_CC $ac_arg"
  18891. - rm -f conftest.$ac_objext
  18892. -if { (ac_try="$ac_compile"
  18893. -case "(($ac_try" in
  18894. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18895. - *) ac_try_echo=$ac_try;;
  18896. -esac
  18897. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18898. - (eval "$ac_compile") 2>conftest.er1
  18899. - ac_status=$?
  18900. - grep -v '^ *+' conftest.er1 >conftest.err
  18901. - rm -f conftest.er1
  18902. - cat conftest.err >&5
  18903. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18904. - (exit $ac_status); } && {
  18905. - test -z "$ac_c_werror_flag" ||
  18906. - test ! -s conftest.err
  18907. - } && test -s conftest.$ac_objext; then
  18908. + if ac_fn_c_try_compile "$LINENO"; then :
  18909. ac_cv_prog_cc_c89=$ac_arg
  18910. -else
  18911. - echo "$as_me: failed program was:" >&5
  18912. -sed 's/^/| /' conftest.$ac_ext >&5
  18913. -
  18914. -
  18915. fi
  18916. -
  18917. rm -f core conftest.err conftest.$ac_objext
  18918. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18919. done
  18920. @@ -3489,17 +3784,19 @@
  18921. # AC_CACHE_VAL
  18922. case "x$ac_cv_prog_cc_c89" in
  18923. x)
  18924. - { echo "$as_me:$LINENO: result: none needed" >&5
  18925. -echo "${ECHO_T}none needed" >&6; } ;;
  18926. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  18927. +$as_echo "none needed" >&6; } ;;
  18928. xno)
  18929. - { echo "$as_me:$LINENO: result: unsupported" >&5
  18930. -echo "${ECHO_T}unsupported" >&6; } ;;
  18931. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  18932. +$as_echo "unsupported" >&6; } ;;
  18933. *)
  18934. CC="$CC $ac_cv_prog_cc_c89"
  18935. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18936. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18937. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  18938. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  18939. esac
  18940. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  18941. +fi
  18942. ac_ext=c
  18943. ac_cpp='$CPP $CPPFLAGS'
  18944. @@ -3514,44 +3811,44 @@
  18945. am_make=${MAKE-make}
  18946. cat > confinc << 'END'
  18947. am__doit:
  18948. - @echo done
  18949. + @echo this is the am__doit target
  18950. .PHONY: am__doit
  18951. END
  18952. # If we don't find an include directive, just comment out the code.
  18953. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  18954. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  18955. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  18956. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  18957. am__include="#"
  18958. am__quote=
  18959. _am_result=none
  18960. # First try GNU make style include.
  18961. echo "include confinc" > confmf
  18962. -# We grep out `Entering directory' and `Leaving directory'
  18963. -# messages which can occur if `w' ends up in MAKEFLAGS.
  18964. -# In particular we don't look at `^make:' because GNU make might
  18965. -# be invoked under some other name (usually "gmake"), in which
  18966. -# case it prints its new name instead of `make'.
  18967. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  18968. - am__include=include
  18969. - am__quote=
  18970. - _am_result=GNU
  18971. -fi
  18972. +# Ignore all kinds of additional output from `make'.
  18973. +case `$am_make -s -f confmf 2> /dev/null` in #(
  18974. +*the\ am__doit\ target*)
  18975. + am__include=include
  18976. + am__quote=
  18977. + _am_result=GNU
  18978. + ;;
  18979. +esac
  18980. # Now try BSD make style include.
  18981. if test "$am__include" = "#"; then
  18982. echo '.include "confinc"' > confmf
  18983. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  18984. - am__include=.include
  18985. - am__quote="\""
  18986. - _am_result=BSD
  18987. - fi
  18988. + case `$am_make -s -f confmf 2> /dev/null` in #(
  18989. + *the\ am__doit\ target*)
  18990. + am__include=.include
  18991. + am__quote="\""
  18992. + _am_result=BSD
  18993. + ;;
  18994. + esac
  18995. fi
  18996. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  18997. -echo "${ECHO_T}$_am_result" >&6; }
  18998. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  18999. +$as_echo "$_am_result" >&6; }
  19000. rm -f confinc confmf
  19001. # Check whether --enable-dependency-tracking was given.
  19002. -if test "${enable_dependency_tracking+set}" = set; then
  19003. +if test "${enable_dependency_tracking+set}" = set; then :
  19004. enableval=$enable_dependency_tracking;
  19005. fi
  19006. @@ -3571,10 +3868,10 @@
  19007. depcc="$CC" am_compiler_list=
  19008. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  19009. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  19010. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  19011. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19012. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  19013. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  19014. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  19015. + $as_echo_n "(cached) " >&6
  19016. else
  19017. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  19018. # We make a subdir and do the tests there. Otherwise we can end up
  19019. @@ -3599,6 +3896,11 @@
  19020. if test "$am_compiler_list" = ""; then
  19021. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  19022. fi
  19023. + am__universal=false
  19024. + case " $depcc " in #(
  19025. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  19026. + esac
  19027. +
  19028. for depmode in $am_compiler_list; do
  19029. # Setup a source with many dependencies, because some compilers
  19030. # like to wrap large dependency lists on column 80 (with \), and
  19031. @@ -3616,7 +3918,17 @@
  19032. done
  19033. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  19034. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  19035. + # mode. It turns out that the SunPro C++ compiler does not properly
  19036. + # handle `-M -o', and we need to detect this. Also, some Intel
  19037. + # versions had trouble with output in subdirs
  19038. + am__obj=sub/conftest.${OBJEXT-o}
  19039. + am__minus_obj="-o $am__obj"
  19040. case $depmode in
  19041. + gcc)
  19042. + # This depmode causes a compiler race in universal mode.
  19043. + test "$am__universal" = false || continue
  19044. + ;;
  19045. nosideeffect)
  19046. # after this tag, mechanisms are not by side-effect, so they'll
  19047. # only be used when explicitly requested
  19048. @@ -3626,19 +3938,23 @@
  19049. break
  19050. fi
  19051. ;;
  19052. + msvisualcpp | msvcmsys)
  19053. + # This compiler won't grok `-c -o', but also, the minuso test has
  19054. + # not run yet. These depmodes are late enough in the game, and
  19055. + # so weak that their functioning should not be impacted.
  19056. + am__obj=conftest.${OBJEXT-o}
  19057. + am__minus_obj=
  19058. + ;;
  19059. none) break ;;
  19060. esac
  19061. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  19062. - # mode. It turns out that the SunPro C++ compiler does not properly
  19063. - # handle `-M -o', and we need to detect this.
  19064. if depmode=$depmode \
  19065. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  19066. + source=sub/conftest.c object=$am__obj \
  19067. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  19068. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  19069. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  19070. >/dev/null 2>conftest.err &&
  19071. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  19072. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  19073. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  19074. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  19075. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  19076. # icc doesn't choke on unknown options, it will just issue warnings
  19077. # or remarks (even with -Werror). So we grep stderr for any message
  19078. @@ -3662,8 +3978,8 @@
  19079. fi
  19080. fi
  19081. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  19082. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  19083. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  19084. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  19085. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  19086. if
  19087. @@ -3677,91 +3993,6 @@
  19088. fi
  19089. -# Find a good install program. We prefer a C program (faster),
  19090. -# so one script is as good as another. But avoid the broken or
  19091. -# incompatible versions:
  19092. -# SysV /etc/install, /usr/sbin/install
  19093. -# SunOS /usr/etc/install
  19094. -# IRIX /sbin/install
  19095. -# AIX /bin/install
  19096. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  19097. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  19098. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  19099. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  19100. -# OS/2's system install, which has a completely different semantic
  19101. -# ./install, which can be erroneously created by make from ./install.sh.
  19102. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  19103. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  19104. -if test -z "$INSTALL"; then
  19105. -if test "${ac_cv_path_install+set}" = set; then
  19106. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19107. -else
  19108. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19109. -for as_dir in $PATH
  19110. -do
  19111. - IFS=$as_save_IFS
  19112. - test -z "$as_dir" && as_dir=.
  19113. - # Account for people who put trailing slashes in PATH elements.
  19114. -case $as_dir/ in
  19115. - ./ | .// | /cC/* | \
  19116. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  19117. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  19118. - /usr/ucb/* ) ;;
  19119. - *)
  19120. - # OSF1 and SCO ODT 3.0 have their own names for install.
  19121. - # Don't use installbsd from OSF since it installs stuff as root
  19122. - # by default.
  19123. - for ac_prog in ginstall scoinst install; do
  19124. - for ac_exec_ext in '' $ac_executable_extensions; do
  19125. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  19126. - if test $ac_prog = install &&
  19127. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19128. - # AIX install. It has an incompatible calling convention.
  19129. - :
  19130. - elif test $ac_prog = install &&
  19131. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19132. - # program-specific install script used by HP pwplus--don't use.
  19133. - :
  19134. - else
  19135. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  19136. - break 3
  19137. - fi
  19138. - fi
  19139. - done
  19140. - done
  19141. - ;;
  19142. -esac
  19143. -done
  19144. -IFS=$as_save_IFS
  19145. -
  19146. -
  19147. -fi
  19148. - if test "${ac_cv_path_install+set}" = set; then
  19149. - INSTALL=$ac_cv_path_install
  19150. - else
  19151. - # As a last resort, use the slow shell script. Don't cache a
  19152. - # value for INSTALL within a source directory, because that will
  19153. - # break other packages using the cache if that directory is
  19154. - # removed, or if the value is a relative name.
  19155. - INSTALL=$ac_install_sh
  19156. - fi
  19157. -fi
  19158. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  19159. -echo "${ECHO_T}$INSTALL" >&6; }
  19160. -
  19161. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  19162. -# It thinks the first close brace ends the variable substitution.
  19163. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  19164. -
  19165. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  19166. -
  19167. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  19168. -
  19169. -
  19170. -cat >>confdefs.h <<\_ACEOF
  19171. -#define _GNU_SOURCE 1
  19172. -_ACEOF
  19173. -
  19174. ac_ext=c
  19175. @@ -3769,15 +4000,15 @@
  19176. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19177. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19178. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19179. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  19180. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  19181. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  19182. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  19183. # On Suns, sometimes $CPP names a directory.
  19184. if test -n "$CPP" && test -d "$CPP"; then
  19185. CPP=
  19186. fi
  19187. if test -z "$CPP"; then
  19188. - if test "${ac_cv_prog_CPP+set}" = set; then
  19189. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19190. + if test "${ac_cv_prog_CPP+set}" = set; then :
  19191. + $as_echo_n "(cached) " >&6
  19192. else
  19193. # Double quotes because CPP needs to be expanded
  19194. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  19195. @@ -3791,11 +4022,7 @@
  19196. # <limits.h> exists even on freestanding compilers.
  19197. # On the NeXT, cc -E runs the code through the compiler's parser,
  19198. # not just through cpp. "Syntax error" is here to catch this case.
  19199. - cat >conftest.$ac_ext <<_ACEOF
  19200. -/* confdefs.h. */
  19201. -_ACEOF
  19202. -cat confdefs.h >>conftest.$ac_ext
  19203. -cat >>conftest.$ac_ext <<_ACEOF
  19204. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19205. /* end confdefs.h. */
  19206. #ifdef __STDC__
  19207. # include <limits.h>
  19208. @@ -3804,76 +4031,34 @@
  19209. #endif
  19210. Syntax error
  19211. _ACEOF
  19212. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19213. -case "(($ac_try" in
  19214. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19215. - *) ac_try_echo=$ac_try;;
  19216. -esac
  19217. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19218. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19219. - ac_status=$?
  19220. - grep -v '^ *+' conftest.er1 >conftest.err
  19221. - rm -f conftest.er1
  19222. - cat conftest.err >&5
  19223. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19224. - (exit $ac_status); } >/dev/null && {
  19225. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19226. - test ! -s conftest.err
  19227. - }; then
  19228. - :
  19229. -else
  19230. - echo "$as_me: failed program was:" >&5
  19231. -sed 's/^/| /' conftest.$ac_ext >&5
  19232. +if ac_fn_c_try_cpp "$LINENO"; then :
  19233. +else
  19234. # Broken: fails on valid input.
  19235. continue
  19236. fi
  19237. -
  19238. rm -f conftest.err conftest.$ac_ext
  19239. # OK, works on sane cases. Now check whether nonexistent headers
  19240. # can be detected and how.
  19241. - cat >conftest.$ac_ext <<_ACEOF
  19242. -/* confdefs.h. */
  19243. -_ACEOF
  19244. -cat confdefs.h >>conftest.$ac_ext
  19245. -cat >>conftest.$ac_ext <<_ACEOF
  19246. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19247. /* end confdefs.h. */
  19248. #include <ac_nonexistent.h>
  19249. _ACEOF
  19250. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19251. -case "(($ac_try" in
  19252. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19253. - *) ac_try_echo=$ac_try;;
  19254. -esac
  19255. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19256. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19257. - ac_status=$?
  19258. - grep -v '^ *+' conftest.er1 >conftest.err
  19259. - rm -f conftest.er1
  19260. - cat conftest.err >&5
  19261. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19262. - (exit $ac_status); } >/dev/null && {
  19263. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19264. - test ! -s conftest.err
  19265. - }; then
  19266. +if ac_fn_c_try_cpp "$LINENO"; then :
  19267. # Broken: success on invalid input.
  19268. continue
  19269. else
  19270. - echo "$as_me: failed program was:" >&5
  19271. -sed 's/^/| /' conftest.$ac_ext >&5
  19272. -
  19273. # Passes both tests.
  19274. ac_preproc_ok=:
  19275. break
  19276. fi
  19277. -
  19278. rm -f conftest.err conftest.$ac_ext
  19279. done
  19280. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19281. rm -f conftest.err conftest.$ac_ext
  19282. -if $ac_preproc_ok; then
  19283. +if $ac_preproc_ok; then :
  19284. break
  19285. fi
  19286. @@ -3885,8 +4070,8 @@
  19287. else
  19288. ac_cv_prog_CPP=$CPP
  19289. fi
  19290. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  19291. -echo "${ECHO_T}$CPP" >&6; }
  19292. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  19293. +$as_echo "$CPP" >&6; }
  19294. ac_preproc_ok=false
  19295. for ac_c_preproc_warn_flag in '' yes
  19296. do
  19297. @@ -3896,11 +4081,7 @@
  19298. # <limits.h> exists even on freestanding compilers.
  19299. # On the NeXT, cc -E runs the code through the compiler's parser,
  19300. # not just through cpp. "Syntax error" is here to catch this case.
  19301. - cat >conftest.$ac_ext <<_ACEOF
  19302. -/* confdefs.h. */
  19303. -_ACEOF
  19304. -cat confdefs.h >>conftest.$ac_ext
  19305. -cat >>conftest.$ac_ext <<_ACEOF
  19306. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19307. /* end confdefs.h. */
  19308. #ifdef __STDC__
  19309. # include <limits.h>
  19310. @@ -3909,83 +4090,40 @@
  19311. #endif
  19312. Syntax error
  19313. _ACEOF
  19314. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19315. -case "(($ac_try" in
  19316. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19317. - *) ac_try_echo=$ac_try;;
  19318. -esac
  19319. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19320. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19321. - ac_status=$?
  19322. - grep -v '^ *+' conftest.er1 >conftest.err
  19323. - rm -f conftest.er1
  19324. - cat conftest.err >&5
  19325. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19326. - (exit $ac_status); } >/dev/null && {
  19327. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19328. - test ! -s conftest.err
  19329. - }; then
  19330. - :
  19331. -else
  19332. - echo "$as_me: failed program was:" >&5
  19333. -sed 's/^/| /' conftest.$ac_ext >&5
  19334. +if ac_fn_c_try_cpp "$LINENO"; then :
  19335. +else
  19336. # Broken: fails on valid input.
  19337. continue
  19338. fi
  19339. -
  19340. rm -f conftest.err conftest.$ac_ext
  19341. # OK, works on sane cases. Now check whether nonexistent headers
  19342. # can be detected and how.
  19343. - cat >conftest.$ac_ext <<_ACEOF
  19344. -/* confdefs.h. */
  19345. -_ACEOF
  19346. -cat confdefs.h >>conftest.$ac_ext
  19347. -cat >>conftest.$ac_ext <<_ACEOF
  19348. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19349. /* end confdefs.h. */
  19350. #include <ac_nonexistent.h>
  19351. _ACEOF
  19352. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19353. -case "(($ac_try" in
  19354. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19355. - *) ac_try_echo=$ac_try;;
  19356. -esac
  19357. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19358. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19359. - ac_status=$?
  19360. - grep -v '^ *+' conftest.er1 >conftest.err
  19361. - rm -f conftest.er1
  19362. - cat conftest.err >&5
  19363. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19364. - (exit $ac_status); } >/dev/null && {
  19365. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19366. - test ! -s conftest.err
  19367. - }; then
  19368. +if ac_fn_c_try_cpp "$LINENO"; then :
  19369. # Broken: success on invalid input.
  19370. continue
  19371. else
  19372. - echo "$as_me: failed program was:" >&5
  19373. -sed 's/^/| /' conftest.$ac_ext >&5
  19374. -
  19375. # Passes both tests.
  19376. ac_preproc_ok=:
  19377. break
  19378. fi
  19379. -
  19380. rm -f conftest.err conftest.$ac_ext
  19381. done
  19382. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19383. rm -f conftest.err conftest.$ac_ext
  19384. -if $ac_preproc_ok; then
  19385. - :
  19386. +if $ac_preproc_ok; then :
  19387. +
  19388. else
  19389. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  19390. -See \`config.log' for more details." >&5
  19391. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  19392. -See \`config.log' for more details." >&2;}
  19393. - { (exit 1); exit 1; }; }
  19394. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19395. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19396. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  19397. +See \`config.log' for more details." "$LINENO" 5; }
  19398. fi
  19399. ac_ext=c
  19400. @@ -3995,45 +4133,40 @@
  19401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19402. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  19403. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  19404. -if test "${ac_cv_path_GREP+set}" = set; then
  19405. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19406. -else
  19407. - # Extract the first word of "grep ggrep" to use in msg output
  19408. -if test -z "$GREP"; then
  19409. -set dummy grep ggrep; ac_prog_name=$2
  19410. -if test "${ac_cv_path_GREP+set}" = set; then
  19411. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19412. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  19413. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  19414. +if test "${ac_cv_path_GREP+set}" = set; then :
  19415. + $as_echo_n "(cached) " >&6
  19416. else
  19417. + if test -z "$GREP"; then
  19418. ac_path_GREP_found=false
  19419. -# Loop through the user's path and test for each of PROGNAME-LIST
  19420. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19421. + # Loop through the user's path and test for each of PROGNAME-LIST
  19422. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19423. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19424. do
  19425. IFS=$as_save_IFS
  19426. test -z "$as_dir" && as_dir=.
  19427. - for ac_prog in grep ggrep; do
  19428. - for ac_exec_ext in '' $ac_executable_extensions; do
  19429. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  19430. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  19431. - # Check for GNU ac_path_GREP and select it if it is found.
  19432. + for ac_prog in grep ggrep; do
  19433. + for ac_exec_ext in '' $ac_executable_extensions; do
  19434. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  19435. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  19436. +# Check for GNU ac_path_GREP and select it if it is found.
  19437. # Check for GNU $ac_path_GREP
  19438. case `"$ac_path_GREP" --version 2>&1` in
  19439. *GNU*)
  19440. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  19441. *)
  19442. ac_count=0
  19443. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19444. + $as_echo_n 0123456789 >"conftest.in"
  19445. while :
  19446. do
  19447. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19448. mv "conftest.tmp" "conftest.in"
  19449. cp "conftest.in" "conftest.nl"
  19450. - echo 'GREP' >> "conftest.nl"
  19451. + $as_echo 'GREP' >> "conftest.nl"
  19452. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19453. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19454. - ac_count=`expr $ac_count + 1`
  19455. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19456. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  19457. # Best one so far, save it but keep looking for a better one
  19458. ac_cv_path_GREP="$ac_path_GREP"
  19459. @@ -4045,77 +4178,61 @@
  19460. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19461. esac
  19462. -
  19463. - $ac_path_GREP_found && break 3
  19464. + $ac_path_GREP_found && break 3
  19465. + done
  19466. + done
  19467. done
  19468. -done
  19469. -
  19470. -done
  19471. IFS=$as_save_IFS
  19472. -
  19473. -
  19474. -fi
  19475. -
  19476. -GREP="$ac_cv_path_GREP"
  19477. -if test -z "$GREP"; then
  19478. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  19479. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  19480. - { (exit 1); exit 1; }; }
  19481. -fi
  19482. -
  19483. + if test -z "$ac_cv_path_GREP"; then
  19484. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19485. + fi
  19486. else
  19487. ac_cv_path_GREP=$GREP
  19488. fi
  19489. -
  19490. fi
  19491. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  19492. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  19493. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  19494. +$as_echo "$ac_cv_path_GREP" >&6; }
  19495. GREP="$ac_cv_path_GREP"
  19496. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  19497. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  19498. -if test "${ac_cv_path_EGREP+set}" = set; then
  19499. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19500. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  19501. +$as_echo_n "checking for egrep... " >&6; }
  19502. +if test "${ac_cv_path_EGREP+set}" = set; then :
  19503. + $as_echo_n "(cached) " >&6
  19504. else
  19505. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  19506. then ac_cv_path_EGREP="$GREP -E"
  19507. else
  19508. - # Extract the first word of "egrep" to use in msg output
  19509. -if test -z "$EGREP"; then
  19510. -set dummy egrep; ac_prog_name=$2
  19511. -if test "${ac_cv_path_EGREP+set}" = set; then
  19512. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19513. -else
  19514. + if test -z "$EGREP"; then
  19515. ac_path_EGREP_found=false
  19516. -# Loop through the user's path and test for each of PROGNAME-LIST
  19517. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19518. + # Loop through the user's path and test for each of PROGNAME-LIST
  19519. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19520. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19521. do
  19522. IFS=$as_save_IFS
  19523. test -z "$as_dir" && as_dir=.
  19524. - for ac_prog in egrep; do
  19525. - for ac_exec_ext in '' $ac_executable_extensions; do
  19526. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  19527. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  19528. - # Check for GNU ac_path_EGREP and select it if it is found.
  19529. + for ac_prog in egrep; do
  19530. + for ac_exec_ext in '' $ac_executable_extensions; do
  19531. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  19532. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  19533. +# Check for GNU ac_path_EGREP and select it if it is found.
  19534. # Check for GNU $ac_path_EGREP
  19535. case `"$ac_path_EGREP" --version 2>&1` in
  19536. *GNU*)
  19537. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  19538. *)
  19539. ac_count=0
  19540. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19541. + $as_echo_n 0123456789 >"conftest.in"
  19542. while :
  19543. do
  19544. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19545. mv "conftest.tmp" "conftest.in"
  19546. cp "conftest.in" "conftest.nl"
  19547. - echo 'EGREP' >> "conftest.nl"
  19548. + $as_echo 'EGREP' >> "conftest.nl"
  19549. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19550. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19551. - ac_count=`expr $ac_count + 1`
  19552. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19553. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  19554. # Best one so far, save it but keep looking for a better one
  19555. ac_cv_path_EGREP="$ac_path_EGREP"
  19556. @@ -4127,75 +4244,31 @@
  19557. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19558. esac
  19559. -
  19560. - $ac_path_EGREP_found && break 3
  19561. + $ac_path_EGREP_found && break 3
  19562. + done
  19563. + done
  19564. done
  19565. -done
  19566. -
  19567. -done
  19568. IFS=$as_save_IFS
  19569. -
  19570. -
  19571. -fi
  19572. -
  19573. -EGREP="$ac_cv_path_EGREP"
  19574. -if test -z "$EGREP"; then
  19575. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  19576. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  19577. - { (exit 1); exit 1; }; }
  19578. -fi
  19579. -
  19580. + if test -z "$ac_cv_path_EGREP"; then
  19581. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19582. + fi
  19583. else
  19584. ac_cv_path_EGREP=$EGREP
  19585. fi
  19586. -
  19587. fi
  19588. fi
  19589. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  19590. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  19591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  19592. +$as_echo "$ac_cv_path_EGREP" >&6; }
  19593. EGREP="$ac_cv_path_EGREP"
  19594. -
  19595. -{ echo "$as_me:$LINENO: checking for AIX" >&5
  19596. -echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  19597. -cat >conftest.$ac_ext <<_ACEOF
  19598. -/* confdefs.h. */
  19599. -_ACEOF
  19600. -cat confdefs.h >>conftest.$ac_ext
  19601. -cat >>conftest.$ac_ext <<_ACEOF
  19602. -/* end confdefs.h. */
  19603. -#ifdef _AIX
  19604. - yes
  19605. -#endif
  19606. -
  19607. -_ACEOF
  19608. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19609. - $EGREP "yes" >/dev/null 2>&1; then
  19610. - { echo "$as_me:$LINENO: result: yes" >&5
  19611. -echo "${ECHO_T}yes" >&6; }
  19612. -cat >>confdefs.h <<\_ACEOF
  19613. -#define _ALL_SOURCE 1
  19614. -_ACEOF
  19615. -
  19616. -else
  19617. - { echo "$as_me:$LINENO: result: no" >&5
  19618. -echo "${ECHO_T}no" >&6; }
  19619. -fi
  19620. -rm -f conftest*
  19621. -
  19622. -
  19623. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19624. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  19625. -if test "${ac_cv_header_stdc+set}" = set; then
  19626. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  19628. +$as_echo_n "checking for ANSI C header files... " >&6; }
  19629. +if test "${ac_cv_header_stdc+set}" = set; then :
  19630. + $as_echo_n "(cached) " >&6
  19631. else
  19632. - cat >conftest.$ac_ext <<_ACEOF
  19633. -/* confdefs.h. */
  19634. -_ACEOF
  19635. -cat confdefs.h >>conftest.$ac_ext
  19636. -cat >>conftest.$ac_ext <<_ACEOF
  19637. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19638. /* end confdefs.h. */
  19639. #include <stdlib.h>
  19640. #include <stdarg.h>
  19641. @@ -4210,47 +4283,23 @@
  19642. return 0;
  19643. }
  19644. _ACEOF
  19645. -rm -f conftest.$ac_objext
  19646. -if { (ac_try="$ac_compile"
  19647. -case "(($ac_try" in
  19648. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19649. - *) ac_try_echo=$ac_try;;
  19650. -esac
  19651. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19652. - (eval "$ac_compile") 2>conftest.er1
  19653. - ac_status=$?
  19654. - grep -v '^ *+' conftest.er1 >conftest.err
  19655. - rm -f conftest.er1
  19656. - cat conftest.err >&5
  19657. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19658. - (exit $ac_status); } && {
  19659. - test -z "$ac_c_werror_flag" ||
  19660. - test ! -s conftest.err
  19661. - } && test -s conftest.$ac_objext; then
  19662. +if ac_fn_c_try_compile "$LINENO"; then :
  19663. ac_cv_header_stdc=yes
  19664. else
  19665. - echo "$as_me: failed program was:" >&5
  19666. -sed 's/^/| /' conftest.$ac_ext >&5
  19667. -
  19668. - ac_cv_header_stdc=no
  19669. + ac_cv_header_stdc=no
  19670. fi
  19671. -
  19672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19673. if test $ac_cv_header_stdc = yes; then
  19674. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19675. - cat >conftest.$ac_ext <<_ACEOF
  19676. -/* confdefs.h. */
  19677. -_ACEOF
  19678. -cat confdefs.h >>conftest.$ac_ext
  19679. -cat >>conftest.$ac_ext <<_ACEOF
  19680. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19681. /* end confdefs.h. */
  19682. #include <string.h>
  19683. _ACEOF
  19684. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19685. - $EGREP "memchr" >/dev/null 2>&1; then
  19686. - :
  19687. + $EGREP "memchr" >/dev/null 2>&1; then :
  19688. +
  19689. else
  19690. ac_cv_header_stdc=no
  19691. fi
  19692. @@ -4260,18 +4309,14 @@
  19693. if test $ac_cv_header_stdc = yes; then
  19694. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19695. - cat >conftest.$ac_ext <<_ACEOF
  19696. -/* confdefs.h. */
  19697. -_ACEOF
  19698. -cat confdefs.h >>conftest.$ac_ext
  19699. -cat >>conftest.$ac_ext <<_ACEOF
  19700. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19701. /* end confdefs.h. */
  19702. #include <stdlib.h>
  19703. _ACEOF
  19704. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19705. - $EGREP "free" >/dev/null 2>&1; then
  19706. - :
  19707. + $EGREP "free" >/dev/null 2>&1; then :
  19708. +
  19709. else
  19710. ac_cv_header_stdc=no
  19711. fi
  19712. @@ -4281,14 +4326,10 @@
  19713. if test $ac_cv_header_stdc = yes; then
  19714. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19715. - if test "$cross_compiling" = yes; then
  19716. + if test "$cross_compiling" = yes; then :
  19717. :
  19718. else
  19719. - cat >conftest.$ac_ext <<_ACEOF
  19720. -/* confdefs.h. */
  19721. -_ACEOF
  19722. -cat confdefs.h >>conftest.$ac_ext
  19723. -cat >>conftest.$ac_ext <<_ACEOF
  19724. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19725. /* end confdefs.h. */
  19726. #include <ctype.h>
  19727. #include <stdlib.h>
  19728. @@ -4315,269 +4356,120 @@
  19729. return 0;
  19730. }
  19731. _ACEOF
  19732. -rm -f conftest$ac_exeext
  19733. -if { (ac_try="$ac_link"
  19734. -case "(($ac_try" in
  19735. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19736. - *) ac_try_echo=$ac_try;;
  19737. -esac
  19738. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19739. - (eval "$ac_link") 2>&5
  19740. - ac_status=$?
  19741. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19742. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19743. - { (case "(($ac_try" in
  19744. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19745. - *) ac_try_echo=$ac_try;;
  19746. -esac
  19747. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19748. - (eval "$ac_try") 2>&5
  19749. - ac_status=$?
  19750. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19751. - (exit $ac_status); }; }; then
  19752. - :
  19753. -else
  19754. - echo "$as_me: program exited with status $ac_status" >&5
  19755. -echo "$as_me: failed program was:" >&5
  19756. -sed 's/^/| /' conftest.$ac_ext >&5
  19757. +if ac_fn_c_try_run "$LINENO"; then :
  19758. -( exit $ac_status )
  19759. -ac_cv_header_stdc=no
  19760. +else
  19761. + ac_cv_header_stdc=no
  19762. fi
  19763. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19764. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19765. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  19766. fi
  19767. -
  19768. fi
  19769. fi
  19770. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19771. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  19772. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  19773. +$as_echo "$ac_cv_header_stdc" >&6; }
  19774. if test $ac_cv_header_stdc = yes; then
  19775. -cat >>confdefs.h <<\_ACEOF
  19776. -#define STDC_HEADERS 1
  19777. -_ACEOF
  19778. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  19779. fi
  19780. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  19781. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  19782. + inttypes.h stdint.h unistd.h
  19783. +do :
  19784. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19785. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  19786. +"
  19787. +eval as_val=\$$as_ac_Header
  19788. + if test "x$as_val" = x""yes; then :
  19789. + cat >>confdefs.h <<_ACEOF
  19790. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19791. +_ACEOF
  19792. +fi
  19793. +done
  19794. + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  19795. +if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  19796. + MINIX=yes
  19797. +else
  19798. + MINIX=
  19799. +fi
  19800. + if test "$MINIX" = yes; then
  19801. +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  19802. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  19803. - inttypes.h stdint.h unistd.h
  19804. -do
  19805. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19806. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  19807. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19808. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19809. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19810. -else
  19811. - cat >conftest.$ac_ext <<_ACEOF
  19812. -/* confdefs.h. */
  19813. -_ACEOF
  19814. -cat confdefs.h >>conftest.$ac_ext
  19815. -cat >>conftest.$ac_ext <<_ACEOF
  19816. -/* end confdefs.h. */
  19817. -$ac_includes_default
  19818. -
  19819. -#include <$ac_header>
  19820. -_ACEOF
  19821. -rm -f conftest.$ac_objext
  19822. -if { (ac_try="$ac_compile"
  19823. -case "(($ac_try" in
  19824. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19825. - *) ac_try_echo=$ac_try;;
  19826. -esac
  19827. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19828. - (eval "$ac_compile") 2>conftest.er1
  19829. - ac_status=$?
  19830. - grep -v '^ *+' conftest.er1 >conftest.err
  19831. - rm -f conftest.er1
  19832. - cat conftest.err >&5
  19833. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19834. - (exit $ac_status); } && {
  19835. - test -z "$ac_c_werror_flag" ||
  19836. - test ! -s conftest.err
  19837. - } && test -s conftest.$ac_objext; then
  19838. - eval "$as_ac_Header=yes"
  19839. -else
  19840. - echo "$as_me: failed program was:" >&5
  19841. -sed 's/^/| /' conftest.$ac_ext >&5
  19842. - eval "$as_ac_Header=no"
  19843. -fi
  19844. +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  19845. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19846. -fi
  19847. -ac_res=`eval echo '${'$as_ac_Header'}'`
  19848. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  19849. -echo "${ECHO_T}$ac_res" >&6; }
  19850. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19851. - cat >>confdefs.h <<_ACEOF
  19852. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19853. -_ACEOF
  19854. -fi
  19855. +$as_echo "#define _MINIX 1" >>confdefs.h
  19856. -done
  19857. + fi
  19858. -if test "${ac_cv_header_minix_config_h+set}" = set; then
  19859. - { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  19860. -echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  19861. -if test "${ac_cv_header_minix_config_h+set}" = set; then
  19862. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19863. -fi
  19864. -{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  19865. -echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  19866. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  19867. +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  19868. +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  19869. + $as_echo_n "(cached) " >&6
  19870. else
  19871. - # Is the header compilable?
  19872. -{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  19873. -echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  19874. -cat >conftest.$ac_ext <<_ACEOF
  19875. -/* confdefs.h. */
  19876. -_ACEOF
  19877. -cat confdefs.h >>conftest.$ac_ext
  19878. -cat >>conftest.$ac_ext <<_ACEOF
  19879. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19880. /* end confdefs.h. */
  19881. -$ac_includes_default
  19882. -#include <minix/config.h>
  19883. +
  19884. +# define __EXTENSIONS__ 1
  19885. + $ac_includes_default
  19886. +int
  19887. +main ()
  19888. +{
  19889. +
  19890. + ;
  19891. + return 0;
  19892. +}
  19893. _ACEOF
  19894. -rm -f conftest.$ac_objext
  19895. -if { (ac_try="$ac_compile"
  19896. -case "(($ac_try" in
  19897. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19898. - *) ac_try_echo=$ac_try;;
  19899. -esac
  19900. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19901. - (eval "$ac_compile") 2>conftest.er1
  19902. - ac_status=$?
  19903. - grep -v '^ *+' conftest.er1 >conftest.err
  19904. - rm -f conftest.er1
  19905. - cat conftest.err >&5
  19906. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19907. - (exit $ac_status); } && {
  19908. - test -z "$ac_c_werror_flag" ||
  19909. - test ! -s conftest.err
  19910. - } && test -s conftest.$ac_objext; then
  19911. - ac_header_compiler=yes
  19912. +if ac_fn_c_try_compile "$LINENO"; then :
  19913. + ac_cv_safe_to_define___extensions__=yes
  19914. else
  19915. - echo "$as_me: failed program was:" >&5
  19916. -sed 's/^/| /' conftest.$ac_ext >&5
  19917. -
  19918. - ac_header_compiler=no
  19919. + ac_cv_safe_to_define___extensions__=no
  19920. fi
  19921. -
  19922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19923. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19924. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  19925. +fi
  19926. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  19927. +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  19928. + test $ac_cv_safe_to_define___extensions__ = yes &&
  19929. + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  19930. -# Is the header present?
  19931. -{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  19932. -echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  19933. -cat >conftest.$ac_ext <<_ACEOF
  19934. -/* confdefs.h. */
  19935. -_ACEOF
  19936. -cat confdefs.h >>conftest.$ac_ext
  19937. -cat >>conftest.$ac_ext <<_ACEOF
  19938. -/* end confdefs.h. */
  19939. -#include <minix/config.h>
  19940. -_ACEOF
  19941. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19942. -case "(($ac_try" in
  19943. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19944. - *) ac_try_echo=$ac_try;;
  19945. -esac
  19946. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19947. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19948. - ac_status=$?
  19949. - grep -v '^ *+' conftest.er1 >conftest.err
  19950. - rm -f conftest.er1
  19951. - cat conftest.err >&5
  19952. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19953. - (exit $ac_status); } >/dev/null && {
  19954. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19955. - test ! -s conftest.err
  19956. - }; then
  19957. - ac_header_preproc=yes
  19958. -else
  19959. - echo "$as_me: failed program was:" >&5
  19960. -sed 's/^/| /' conftest.$ac_ext >&5
  19961. + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  19962. - ac_header_preproc=no
  19963. -fi
  19964. + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  19965. -rm -f conftest.err conftest.$ac_ext
  19966. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19967. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  19968. + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  19969. -# So? What about this header?
  19970. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19971. - yes:no: )
  19972. - { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19973. -echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19974. - { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  19975. -echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  19976. - ac_header_preproc=yes
  19977. - ;;
  19978. - no:yes:* )
  19979. - { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  19980. -echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  19981. - { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  19982. -echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  19983. - { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  19984. -echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  19985. - { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  19986. -echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19987. - { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  19988. -echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  19989. - { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  19990. -echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  19991. + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  19992. - ;;
  19993. +
  19994. +case `pwd` in
  19995. + *\ * | *\ *)
  19996. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  19997. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  19998. esac
  19999. -{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
  20000. -echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  20001. -if test "${ac_cv_header_minix_config_h+set}" = set; then
  20002. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20003. -else
  20004. - ac_cv_header_minix_config_h=$ac_header_preproc
  20005. -fi
  20006. -{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  20007. -echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  20008. -fi
  20009. -if test $ac_cv_header_minix_config_h = yes; then
  20010. - MINIX=yes
  20011. -else
  20012. - MINIX=
  20013. -fi
  20014. -if test "$MINIX" = yes; then
  20015. +macro_version='2.2.6b'
  20016. +macro_revision='1.3017'
  20017. -cat >>confdefs.h <<\_ACEOF
  20018. -#define _POSIX_SOURCE 1
  20019. -_ACEOF
  20020. -cat >>confdefs.h <<\_ACEOF
  20021. -#define _POSIX_1_SOURCE 2
  20022. -_ACEOF
  20023. -cat >>confdefs.h <<\_ACEOF
  20024. -#define _MINIX 1
  20025. -_ACEOF
  20026. -fi
  20027. @@ -4585,209 +4477,179 @@
  20028. +ltmain="$ac_aux_dir/ltmain.sh"
  20029. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  20030. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  20031. +if test "${ac_cv_path_SED+set}" = set; then :
  20032. + $as_echo_n "(cached) " >&6
  20033. +else
  20034. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  20035. + for ac_i in 1 2 3 4 5 6 7; do
  20036. + ac_script="$ac_script$as_nl$ac_script"
  20037. + done
  20038. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  20039. + { ac_script=; unset ac_script;}
  20040. + if test -z "$SED"; then
  20041. + ac_path_SED_found=false
  20042. + # Loop through the user's path and test for each of PROGNAME-LIST
  20043. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20044. +for as_dir in $PATH
  20045. +do
  20046. + IFS=$as_save_IFS
  20047. + test -z "$as_dir" && as_dir=.
  20048. + for ac_prog in sed gsed; do
  20049. + for ac_exec_ext in '' $ac_executable_extensions; do
  20050. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  20051. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  20052. +# Check for GNU ac_path_SED and select it if it is found.
  20053. + # Check for GNU $ac_path_SED
  20054. +case `"$ac_path_SED" --version 2>&1` in
  20055. +*GNU*)
  20056. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  20057. +*)
  20058. + ac_count=0
  20059. + $as_echo_n 0123456789 >"conftest.in"
  20060. + while :
  20061. + do
  20062. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20063. + mv "conftest.tmp" "conftest.in"
  20064. + cp "conftest.in" "conftest.nl"
  20065. + $as_echo '' >> "conftest.nl"
  20066. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20067. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20068. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20069. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  20070. + # Best one so far, save it but keep looking for a better one
  20071. + ac_cv_path_SED="$ac_path_SED"
  20072. + ac_path_SED_max=$ac_count
  20073. + fi
  20074. + # 10*(2^10) chars as input seems more than enough
  20075. + test $ac_count -gt 10 && break
  20076. + done
  20077. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20078. +esac
  20079. + $ac_path_SED_found && break 3
  20080. + done
  20081. + done
  20082. + done
  20083. +IFS=$as_save_IFS
  20084. + if test -z "$ac_cv_path_SED"; then
  20085. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  20086. + fi
  20087. +else
  20088. + ac_cv_path_SED=$SED
  20089. +fi
  20090. +fi
  20091. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  20092. +$as_echo "$ac_cv_path_SED" >&6; }
  20093. + SED="$ac_cv_path_SED"
  20094. + rm -f conftest.sed
  20095. - { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  20096. -echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  20097. -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  20098. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20099. -else
  20100. - cat >conftest.$ac_ext <<_ACEOF
  20101. -/* confdefs.h. */
  20102. -_ACEOF
  20103. -cat confdefs.h >>conftest.$ac_ext
  20104. -cat >>conftest.$ac_ext <<_ACEOF
  20105. -/* end confdefs.h. */
  20106. +test -z "$SED" && SED=sed
  20107. +Xsed="$SED -e 1s/^X//"
  20108. -# define __EXTENSIONS__ 1
  20109. - $ac_includes_default
  20110. -int
  20111. -main ()
  20112. -{
  20113. - ;
  20114. - return 0;
  20115. -}
  20116. -_ACEOF
  20117. -rm -f conftest.$ac_objext
  20118. -if { (ac_try="$ac_compile"
  20119. -case "(($ac_try" in
  20120. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20121. - *) ac_try_echo=$ac_try;;
  20122. -esac
  20123. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20124. - (eval "$ac_compile") 2>conftest.er1
  20125. - ac_status=$?
  20126. - grep -v '^ *+' conftest.er1 >conftest.err
  20127. - rm -f conftest.er1
  20128. - cat conftest.err >&5
  20129. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20130. - (exit $ac_status); } && {
  20131. - test -z "$ac_c_werror_flag" ||
  20132. - test ! -s conftest.err
  20133. - } && test -s conftest.$ac_objext; then
  20134. - ac_cv_safe_to_define___extensions__=yes
  20135. -else
  20136. - echo "$as_me: failed program was:" >&5
  20137. -sed 's/^/| /' conftest.$ac_ext >&5
  20138. - ac_cv_safe_to_define___extensions__=no
  20139. -fi
  20140. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20141. -fi
  20142. -{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  20143. -echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  20144. - test $ac_cv_safe_to_define___extensions__ = yes &&
  20145. - cat >>confdefs.h <<\_ACEOF
  20146. -#define __EXTENSIONS__ 1
  20147. -_ACEOF
  20148. - cat >>confdefs.h <<\_ACEOF
  20149. -#define _POSIX_PTHREAD_SEMANTICS 1
  20150. -_ACEOF
  20151. - cat >>confdefs.h <<\_ACEOF
  20152. -#define _TANDEM_SOURCE 1
  20153. -_ACEOF
  20154. -# Check whether --enable-shared was given.
  20155. -if test "${enable_shared+set}" = set; then
  20156. - enableval=$enable_shared; p=${PACKAGE-default}
  20157. - case $enableval in
  20158. - yes) enable_shared=yes ;;
  20159. - no) enable_shared=no ;;
  20160. - *)
  20161. - enable_shared=no
  20162. - # Look at the argument we got. We use all the common list separators.
  20163. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20164. - for pkg in $enableval; do
  20165. - IFS="$lt_save_ifs"
  20166. - if test "X$pkg" = "X$p"; then
  20167. - enable_shared=yes
  20168. - fi
  20169. - done
  20170. - IFS="$lt_save_ifs"
  20171. - ;;
  20172. - esac
  20173. -else
  20174. - enable_shared=yes
  20175. -fi
  20176. -
  20177. -
  20178. -# Check whether --enable-static was given.
  20179. -if test "${enable_static+set}" = set; then
  20180. - enableval=$enable_static; p=${PACKAGE-default}
  20181. - case $enableval in
  20182. - yes) enable_static=yes ;;
  20183. - no) enable_static=no ;;
  20184. - *)
  20185. - enable_static=no
  20186. - # Look at the argument we got. We use all the common list separators.
  20187. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20188. - for pkg in $enableval; do
  20189. - IFS="$lt_save_ifs"
  20190. - if test "X$pkg" = "X$p"; then
  20191. - enable_static=yes
  20192. - fi
  20193. - done
  20194. - IFS="$lt_save_ifs"
  20195. - ;;
  20196. - esac
  20197. -else
  20198. - enable_static=yes
  20199. -fi
  20200. -# Check whether --enable-fast-install was given.
  20201. -if test "${enable_fast_install+set}" = set; then
  20202. - enableval=$enable_fast_install; p=${PACKAGE-default}
  20203. - case $enableval in
  20204. - yes) enable_fast_install=yes ;;
  20205. - no) enable_fast_install=no ;;
  20206. - *)
  20207. - enable_fast_install=no
  20208. - # Look at the argument we got. We use all the common list separators.
  20209. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20210. - for pkg in $enableval; do
  20211. - IFS="$lt_save_ifs"
  20212. - if test "X$pkg" = "X$p"; then
  20213. - enable_fast_install=yes
  20214. - fi
  20215. - done
  20216. - IFS="$lt_save_ifs"
  20217. - ;;
  20218. - esac
  20219. -else
  20220. - enable_fast_install=yes
  20221. -fi
  20222. -
  20223. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  20224. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  20225. -if test "${lt_cv_path_SED+set}" = set; then
  20226. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20227. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  20228. +$as_echo_n "checking for fgrep... " >&6; }
  20229. +if test "${ac_cv_path_FGREP+set}" = set; then :
  20230. + $as_echo_n "(cached) " >&6
  20231. else
  20232. - # Loop through the user's path and test for sed and gsed.
  20233. -# Then use that list of sed's as ones to test for truncation.
  20234. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20235. -for as_dir in $PATH
  20236. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  20237. + then ac_cv_path_FGREP="$GREP -F"
  20238. + else
  20239. + if test -z "$FGREP"; then
  20240. + ac_path_FGREP_found=false
  20241. + # Loop through the user's path and test for each of PROGNAME-LIST
  20242. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20243. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20244. do
  20245. IFS=$as_save_IFS
  20246. test -z "$as_dir" && as_dir=.
  20247. - for lt_ac_prog in sed gsed; do
  20248. + for ac_prog in fgrep; do
  20249. for ac_exec_ext in '' $ac_executable_extensions; do
  20250. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  20251. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  20252. - fi
  20253. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  20254. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  20255. +# Check for GNU ac_path_FGREP and select it if it is found.
  20256. + # Check for GNU $ac_path_FGREP
  20257. +case `"$ac_path_FGREP" --version 2>&1` in
  20258. +*GNU*)
  20259. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  20260. +*)
  20261. + ac_count=0
  20262. + $as_echo_n 0123456789 >"conftest.in"
  20263. + while :
  20264. + do
  20265. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20266. + mv "conftest.tmp" "conftest.in"
  20267. + cp "conftest.in" "conftest.nl"
  20268. + $as_echo 'FGREP' >> "conftest.nl"
  20269. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20270. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20271. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20272. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  20273. + # Best one so far, save it but keep looking for a better one
  20274. + ac_cv_path_FGREP="$ac_path_FGREP"
  20275. + ac_path_FGREP_max=$ac_count
  20276. + fi
  20277. + # 10*(2^10) chars as input seems more than enough
  20278. + test $ac_count -gt 10 && break
  20279. + done
  20280. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20281. +esac
  20282. +
  20283. + $ac_path_FGREP_found && break 3
  20284. done
  20285. done
  20286. -done
  20287. + done
  20288. IFS=$as_save_IFS
  20289. -lt_ac_max=0
  20290. -lt_ac_count=0
  20291. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  20292. -# along with /bin/sed that truncates output.
  20293. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  20294. - test ! -f $lt_ac_sed && continue
  20295. - cat /dev/null > conftest.in
  20296. - lt_ac_count=0
  20297. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  20298. - # Check for GNU sed and select it if it is found.
  20299. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  20300. - lt_cv_path_SED=$lt_ac_sed
  20301. - break
  20302. + if test -z "$ac_cv_path_FGREP"; then
  20303. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20304. fi
  20305. - while true; do
  20306. - cat conftest.in conftest.in >conftest.tmp
  20307. - mv conftest.tmp conftest.in
  20308. - cp conftest.in conftest.nl
  20309. - echo >>conftest.nl
  20310. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  20311. - cmp -s conftest.out conftest.nl || break
  20312. - # 10000 chars as input seems more than enough
  20313. - test $lt_ac_count -gt 10 && break
  20314. - lt_ac_count=`expr $lt_ac_count + 1`
  20315. - if test $lt_ac_count -gt $lt_ac_max; then
  20316. - lt_ac_max=$lt_ac_count
  20317. - lt_cv_path_SED=$lt_ac_sed
  20318. - fi
  20319. - done
  20320. -done
  20321. +else
  20322. + ac_cv_path_FGREP=$FGREP
  20323. +fi
  20324. + fi
  20325. fi
  20326. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  20327. +$as_echo "$ac_cv_path_FGREP" >&6; }
  20328. + FGREP="$ac_cv_path_FGREP"
  20329. +
  20330. +
  20331. +test -z "$GREP" && GREP=grep
  20332. +
  20333. +
  20334. +
  20335. +
  20336. +
  20337. +
  20338. +
  20339. +
  20340. +
  20341. +
  20342. +
  20343. +
  20344. +
  20345. +
  20346. +
  20347. -SED=$lt_cv_path_SED
  20348. -{ echo "$as_me:$LINENO: result: $SED" >&5
  20349. -echo "${ECHO_T}$SED" >&6; }
  20350. # Check whether --with-gnu-ld was given.
  20351. -if test "${with_gnu_ld+set}" = set; then
  20352. +if test "${with_gnu_ld+set}" = set; then :
  20353. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  20354. else
  20355. with_gnu_ld=no
  20356. @@ -4796,8 +4658,8 @@
  20357. ac_prog=ld
  20358. if test "$GCC" = yes; then
  20359. # Check if gcc -print-prog-name=ld gives a path.
  20360. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  20361. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  20362. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  20363. +$as_echo_n "checking for ld used by $CC... " >&6; }
  20364. case $host in
  20365. *-*-mingw*)
  20366. # gcc leaves a trailing carriage return which upsets mingw
  20367. @@ -4810,9 +4672,9 @@
  20368. [\\/]* | ?:[\\/]*)
  20369. re_direlt='/[^/][^/]*/\.\./'
  20370. # Canonicalize the pathname of ld
  20371. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  20372. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  20373. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  20374. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  20375. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  20376. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  20377. done
  20378. test -z "$LD" && LD="$ac_prog"
  20379. ;;
  20380. @@ -4826,14 +4688,14 @@
  20381. ;;
  20382. esac
  20383. elif test "$with_gnu_ld" = yes; then
  20384. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  20385. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  20386. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  20387. +$as_echo_n "checking for GNU ld... " >&6; }
  20388. else
  20389. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  20390. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  20391. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  20392. +$as_echo_n "checking for non-GNU ld... " >&6; }
  20393. fi
  20394. -if test "${lt_cv_path_LD+set}" = set; then
  20395. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20396. +if test "${lt_cv_path_LD+set}" = set; then :
  20397. + $as_echo_n "(cached) " >&6
  20398. else
  20399. if test -z "$LD"; then
  20400. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20401. @@ -4863,19 +4725,17 @@
  20402. LD="$lt_cv_path_LD"
  20403. if test -n "$LD"; then
  20404. - { echo "$as_me:$LINENO: result: $LD" >&5
  20405. -echo "${ECHO_T}$LD" >&6; }
  20406. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  20407. +$as_echo "$LD" >&6; }
  20408. else
  20409. - { echo "$as_me:$LINENO: result: no" >&5
  20410. -echo "${ECHO_T}no" >&6; }
  20411. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20412. +$as_echo "no" >&6; }
  20413. fi
  20414. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  20415. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  20416. - { (exit 1); exit 1; }; }
  20417. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  20418. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  20419. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  20420. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20421. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  20422. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  20423. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  20424. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  20425. + $as_echo_n "(cached) " >&6
  20426. else
  20427. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  20428. case `$LD -v 2>&1 </dev/null` in
  20429. @@ -4887,40 +4747,22 @@
  20430. ;;
  20431. esac
  20432. fi
  20433. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  20434. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  20435. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  20436. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  20437. with_gnu_ld=$lt_cv_prog_gnu_ld
  20438. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  20439. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  20440. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  20441. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20442. -else
  20443. - lt_cv_ld_reload_flag='-r'
  20444. -fi
  20445. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  20446. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  20447. -reload_flag=$lt_cv_ld_reload_flag
  20448. -case $reload_flag in
  20449. -"" | " "*) ;;
  20450. -*) reload_flag=" $reload_flag" ;;
  20451. -esac
  20452. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20453. -case $host_os in
  20454. - darwin*)
  20455. - if test "$GCC" = yes; then
  20456. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  20457. - else
  20458. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20459. - fi
  20460. - ;;
  20461. -esac
  20462. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  20463. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  20464. -if test "${lt_cv_path_NM+set}" = set; then
  20465. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20466. +
  20467. +
  20468. +
  20469. +
  20470. +
  20471. +
  20472. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  20473. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  20474. +if test "${lt_cv_path_NM+set}" = set; then :
  20475. + $as_echo_n "(cached) " >&6
  20476. else
  20477. if test -n "$NM"; then
  20478. # Let the user override the test.
  20479. @@ -4963,1684 +4805,1070 @@
  20480. done
  20481. IFS="$lt_save_ifs"
  20482. done
  20483. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  20484. + : ${lt_cv_path_NM=no}
  20485. fi
  20486. fi
  20487. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  20488. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  20489. -NM="$lt_cv_path_NM"
  20490. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  20491. +$as_echo "$lt_cv_path_NM" >&6; }
  20492. +if test "$lt_cv_path_NM" != "no"; then
  20493. + NM="$lt_cv_path_NM"
  20494. +else
  20495. + # Didn't find any BSD compatible name lister, look for dumpbin.
  20496. + if test -n "$ac_tool_prefix"; then
  20497. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20498. + do
  20499. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20500. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20501. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20502. +$as_echo_n "checking for $ac_word... " >&6; }
  20503. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  20504. + $as_echo_n "(cached) " >&6
  20505. +else
  20506. + if test -n "$DUMPBIN"; then
  20507. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  20508. +else
  20509. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20510. +for as_dir in $PATH
  20511. +do
  20512. + IFS=$as_save_IFS
  20513. + test -z "$as_dir" && as_dir=.
  20514. + for ac_exec_ext in '' $ac_executable_extensions; do
  20515. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20516. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  20517. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20518. + break 2
  20519. + fi
  20520. +done
  20521. + done
  20522. +IFS=$as_save_IFS
  20523. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  20524. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  20525. -LN_S=$as_ln_s
  20526. -if test "$LN_S" = "ln -s"; then
  20527. - { echo "$as_me:$LINENO: result: yes" >&5
  20528. -echo "${ECHO_T}yes" >&6; }
  20529. +fi
  20530. +fi
  20531. +DUMPBIN=$ac_cv_prog_DUMPBIN
  20532. +if test -n "$DUMPBIN"; then
  20533. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  20534. +$as_echo "$DUMPBIN" >&6; }
  20535. else
  20536. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  20537. -echo "${ECHO_T}no, using $LN_S" >&6; }
  20538. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20539. +$as_echo "no" >&6; }
  20540. fi
  20541. -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  20542. -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  20543. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  20544. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20545. -else
  20546. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  20547. -lt_cv_file_magic_test_file=
  20548. -lt_cv_deplibs_check_method='unknown'
  20549. -# Need to set the preceding variable on all platforms that support
  20550. -# interlibrary dependencies.
  20551. -# 'none' -- dependencies not supported.
  20552. -# `unknown' -- same as none, but documents that we really don't know.
  20553. -# 'pass_all' -- all dependencies passed with no checks.
  20554. -# 'test_compile' -- check by making test program.
  20555. -# 'file_magic [[regex]]' -- check by looking for files in library path
  20556. -# which responds to the $file_magic_cmd with a given extended regex.
  20557. -# If you have `file' or equivalent on your system and you're not sure
  20558. -# whether `pass_all' will *always* work, you probably want this one.
  20559. -case $host_os in
  20560. -aix4* | aix5*)
  20561. - lt_cv_deplibs_check_method=pass_all
  20562. - ;;
  20563. + test -n "$DUMPBIN" && break
  20564. + done
  20565. +fi
  20566. +if test -z "$DUMPBIN"; then
  20567. + ac_ct_DUMPBIN=$DUMPBIN
  20568. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20569. +do
  20570. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  20571. +set dummy $ac_prog; ac_word=$2
  20572. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20573. +$as_echo_n "checking for $ac_word... " >&6; }
  20574. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  20575. + $as_echo_n "(cached) " >&6
  20576. +else
  20577. + if test -n "$ac_ct_DUMPBIN"; then
  20578. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  20579. +else
  20580. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20581. +for as_dir in $PATH
  20582. +do
  20583. + IFS=$as_save_IFS
  20584. + test -z "$as_dir" && as_dir=.
  20585. + for ac_exec_ext in '' $ac_executable_extensions; do
  20586. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20587. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  20588. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20589. + break 2
  20590. + fi
  20591. +done
  20592. + done
  20593. +IFS=$as_save_IFS
  20594. -beos*)
  20595. - lt_cv_deplibs_check_method=pass_all
  20596. - ;;
  20597. +fi
  20598. +fi
  20599. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  20600. +if test -n "$ac_ct_DUMPBIN"; then
  20601. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  20602. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  20603. +else
  20604. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20605. +$as_echo "no" >&6; }
  20606. +fi
  20607. -bsdi[45]*)
  20608. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  20609. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  20610. - lt_cv_file_magic_test_file=/shlib/libc.so
  20611. - ;;
  20612. -cygwin*)
  20613. - # func_win32_libid is a shell function defined in ltmain.sh
  20614. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20615. - lt_cv_file_magic_cmd='func_win32_libid'
  20616. - ;;
  20617. + test -n "$ac_ct_DUMPBIN" && break
  20618. +done
  20619. -mingw* | pw32*)
  20620. - # Base MSYS/MinGW do not provide the 'file' command needed by
  20621. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  20622. - # unless we find 'file', for example because we are cross-compiling.
  20623. - if ( file / ) >/dev/null 2>&1; then
  20624. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20625. - lt_cv_file_magic_cmd='func_win32_libid'
  20626. + if test "x$ac_ct_DUMPBIN" = x; then
  20627. + DUMPBIN=":"
  20628. else
  20629. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  20630. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  20631. + case $cross_compiling:$ac_tool_warned in
  20632. +yes:)
  20633. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20634. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20635. +ac_tool_warned=yes ;;
  20636. +esac
  20637. + DUMPBIN=$ac_ct_DUMPBIN
  20638. fi
  20639. - ;;
  20640. +fi
  20641. -darwin* | rhapsody*)
  20642. - lt_cv_deplibs_check_method=pass_all
  20643. - ;;
  20644. -freebsd* | dragonfly*)
  20645. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  20646. - case $host_cpu in
  20647. - i*86 )
  20648. - # Not sure whether the presence of OpenBSD here was a mistake.
  20649. - # Let's accept both of them until this is cleared up.
  20650. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  20651. - lt_cv_file_magic_cmd=/usr/bin/file
  20652. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  20653. - ;;
  20654. - esac
  20655. - else
  20656. - lt_cv_deplibs_check_method=pass_all
  20657. + if test "$DUMPBIN" != ":"; then
  20658. + NM="$DUMPBIN"
  20659. fi
  20660. - ;;
  20661. +fi
  20662. +test -z "$NM" && NM=nm
  20663. -gnu*)
  20664. - lt_cv_deplibs_check_method=pass_all
  20665. - ;;
  20666. -hpux10.20* | hpux11*)
  20667. - lt_cv_file_magic_cmd=/usr/bin/file
  20668. - case $host_cpu in
  20669. - ia64*)
  20670. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  20671. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  20672. - ;;
  20673. - hppa*64*)
  20674. - 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]'
  20675. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  20676. - ;;
  20677. - *)
  20678. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  20679. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  20680. - ;;
  20681. - esac
  20682. - ;;
  20683. -interix[3-9]*)
  20684. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  20685. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  20686. - ;;
  20687. -irix5* | irix6* | nonstopux*)
  20688. - case $LD in
  20689. - *-32|*"-32 ") libmagic=32-bit;;
  20690. - *-n32|*"-n32 ") libmagic=N32;;
  20691. - *-64|*"-64 ") libmagic=64-bit;;
  20692. - *) libmagic=never-match;;
  20693. - esac
  20694. - lt_cv_deplibs_check_method=pass_all
  20695. - ;;
  20696. -# This must be Linux ELF.
  20697. -linux* | k*bsd*-gnu)
  20698. - lt_cv_deplibs_check_method=pass_all
  20699. - ;;
  20700. -netbsd* | netbsdelf*-gnu)
  20701. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  20702. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20703. - else
  20704. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  20705. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  20706. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  20707. +if test "${lt_cv_nm_interface+set}" = set; then :
  20708. + $as_echo_n "(cached) " >&6
  20709. +else
  20710. + lt_cv_nm_interface="BSD nm"
  20711. + echo "int some_variable = 0;" > conftest.$ac_ext
  20712. + (eval echo "\"\$as_me:4936: $ac_compile\"" >&5)
  20713. + (eval "$ac_compile" 2>conftest.err)
  20714. + cat conftest.err >&5
  20715. + (eval echo "\"\$as_me:4939: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  20716. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  20717. + cat conftest.err >&5
  20718. + (eval echo "\"\$as_me:4942: output\"" >&5)
  20719. + cat conftest.out >&5
  20720. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  20721. + lt_cv_nm_interface="MS dumpbin"
  20722. fi
  20723. - ;;
  20724. + rm -f conftest*
  20725. +fi
  20726. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  20727. +$as_echo "$lt_cv_nm_interface" >&6; }
  20728. -newos6*)
  20729. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  20730. - lt_cv_file_magic_cmd=/usr/bin/file
  20731. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  20732. - ;;
  20733. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  20734. +$as_echo_n "checking whether ln -s works... " >&6; }
  20735. +LN_S=$as_ln_s
  20736. +if test "$LN_S" = "ln -s"; then
  20737. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20738. +$as_echo "yes" >&6; }
  20739. +else
  20740. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  20741. +$as_echo "no, using $LN_S" >&6; }
  20742. +fi
  20743. -nto-qnx*)
  20744. - lt_cv_deplibs_check_method=unknown
  20745. - ;;
  20746. +# find the maximum length of command line arguments
  20747. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  20748. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  20749. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  20750. + $as_echo_n "(cached) " >&6
  20751. +else
  20752. + i=0
  20753. + teststring="ABCD"
  20754. -openbsd*)
  20755. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20756. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  20757. - else
  20758. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20759. - fi
  20760. - ;;
  20761. + case $build_os in
  20762. + msdosdjgpp*)
  20763. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  20764. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  20765. + # during glob expansion). Even if it were fixed, the result of this
  20766. + # check would be larger than it should be.
  20767. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  20768. + ;;
  20769. -osf3* | osf4* | osf5*)
  20770. - lt_cv_deplibs_check_method=pass_all
  20771. - ;;
  20772. + gnu*)
  20773. + # Under GNU Hurd, this test is not required because there is
  20774. + # no limit to the length of command line arguments.
  20775. + # Libtool will interpret -1 as no limit whatsoever
  20776. + lt_cv_sys_max_cmd_len=-1;
  20777. + ;;
  20778. -rdos*)
  20779. - lt_cv_deplibs_check_method=pass_all
  20780. - ;;
  20781. + cygwin* | mingw* | cegcc*)
  20782. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  20783. + # about 5 minutes as the teststring grows exponentially.
  20784. + # Worse, since 9x/ME are not pre-emptively multitasking,
  20785. + # you end up with a "frozen" computer, even though with patience
  20786. + # the test eventually succeeds (with a max line length of 256k).
  20787. + # Instead, let's just punt: use the minimum linelength reported by
  20788. + # all of the supported platforms: 8192 (on NT/2K/XP).
  20789. + lt_cv_sys_max_cmd_len=8192;
  20790. + ;;
  20791. -solaris*)
  20792. - lt_cv_deplibs_check_method=pass_all
  20793. - ;;
  20794. + amigaos*)
  20795. + # On AmigaOS with pdksh, this test takes hours, literally.
  20796. + # So we just punt and use a minimum line length of 8192.
  20797. + lt_cv_sys_max_cmd_len=8192;
  20798. + ;;
  20799. -sysv4 | sysv4.3*)
  20800. - case $host_vendor in
  20801. - motorola)
  20802. - 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]'
  20803. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  20804. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  20805. + # This has been around since 386BSD, at least. Likely further.
  20806. + if test -x /sbin/sysctl; then
  20807. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  20808. + elif test -x /usr/sbin/sysctl; then
  20809. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  20810. + else
  20811. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  20812. + fi
  20813. + # And add a safety zone
  20814. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  20815. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  20816. ;;
  20817. - ncr)
  20818. - lt_cv_deplibs_check_method=pass_all
  20819. +
  20820. + interix*)
  20821. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  20822. + lt_cv_sys_max_cmd_len=196608
  20823. ;;
  20824. - sequent)
  20825. - lt_cv_file_magic_cmd='/bin/file'
  20826. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  20827. +
  20828. + osf*)
  20829. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  20830. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  20831. + # nice to cause kernel panics so lets avoid the loop below.
  20832. + # First set a reasonable default.
  20833. + lt_cv_sys_max_cmd_len=16384
  20834. + #
  20835. + if test -x /sbin/sysconfig; then
  20836. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  20837. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  20838. + esac
  20839. + fi
  20840. ;;
  20841. - sni)
  20842. - lt_cv_file_magic_cmd='/bin/file'
  20843. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  20844. - lt_cv_file_magic_test_file=/lib/libc.so
  20845. + sco3.2v5*)
  20846. + lt_cv_sys_max_cmd_len=102400
  20847. ;;
  20848. - siemens)
  20849. - lt_cv_deplibs_check_method=pass_all
  20850. + sysv5* | sco5v6* | sysv4.2uw2*)
  20851. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  20852. + if test -n "$kargmax"; then
  20853. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  20854. + else
  20855. + lt_cv_sys_max_cmd_len=32768
  20856. + fi
  20857. ;;
  20858. - pc)
  20859. - lt_cv_deplibs_check_method=pass_all
  20860. + *)
  20861. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  20862. + if test -n "$lt_cv_sys_max_cmd_len"; then
  20863. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  20864. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  20865. + else
  20866. + # Make teststring a little bigger before we do anything with it.
  20867. + # a 1K string should be a reasonable start.
  20868. + for i in 1 2 3 4 5 6 7 8 ; do
  20869. + teststring=$teststring$teststring
  20870. + done
  20871. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  20872. + # If test is not a shell built-in, we'll probably end up computing a
  20873. + # maximum length that is only half of the actual maximum length, but
  20874. + # we can't tell.
  20875. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  20876. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  20877. + test $i != 17 # 1/2 MB should be enough
  20878. + do
  20879. + i=`expr $i + 1`
  20880. + teststring=$teststring$teststring
  20881. + done
  20882. + # Only check the string length outside the loop.
  20883. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  20884. + teststring=
  20885. + # Add a significant safety factor because C++ compilers can tack on
  20886. + # massive amounts of additional arguments before passing them to the
  20887. + # linker. It appears as though 1/2 is a usable value.
  20888. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  20889. + fi
  20890. ;;
  20891. esac
  20892. - ;;
  20893. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  20894. - lt_cv_deplibs_check_method=pass_all
  20895. - ;;
  20896. -esac
  20897. +fi
  20898. +if test -n $lt_cv_sys_max_cmd_len ; then
  20899. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  20900. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  20901. +else
  20902. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  20903. +$as_echo "none" >&6; }
  20904. fi
  20905. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  20906. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  20907. -file_magic_cmd=$lt_cv_file_magic_cmd
  20908. -deplibs_check_method=$lt_cv_deplibs_check_method
  20909. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  20910. +max_cmd_len=$lt_cv_sys_max_cmd_len
  20911. -# If no C compiler was specified, use CC.
  20912. -LTCC=${LTCC-"$CC"}
  20913. -# If no C compiler flags were specified, use CFLAGS.
  20914. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  20915. -# Allow CC to be a program name with arguments.
  20916. -compiler=$CC
  20917. +: ${CP="cp -f"}
  20918. +: ${MV="mv -f"}
  20919. +: ${RM="rm -f"}
  20920. +
  20921. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  20922. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  20923. +# Try some XSI features
  20924. +xsi_shell=no
  20925. +( _lt_dummy="a/b/c"
  20926. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  20927. + = c,a/b,, \
  20928. + && eval 'test $(( 1 + 1 )) -eq 2 \
  20929. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  20930. + && xsi_shell=yes
  20931. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  20932. +$as_echo "$xsi_shell" >&6; }
  20933. +
  20934. +
  20935. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  20936. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  20937. +lt_shell_append=no
  20938. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  20939. + >/dev/null 2>&1 \
  20940. + && lt_shell_append=yes
  20941. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  20942. +$as_echo "$lt_shell_append" >&6; }
  20943. -# Check whether --enable-libtool-lock was given.
  20944. -if test "${enable_libtool_lock+set}" = set; then
  20945. - enableval=$enable_libtool_lock;
  20946. +
  20947. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20948. + lt_unset=unset
  20949. +else
  20950. + lt_unset=false
  20951. fi
  20952. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  20953. -# Some flags need to be propagated to the compiler or linker for good
  20954. -# libtool support.
  20955. -case $host in
  20956. -ia64-*-hpux*)
  20957. - # Find out which ABI we are using.
  20958. - echo 'int i;' > conftest.$ac_ext
  20959. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20960. - (eval $ac_compile) 2>&5
  20961. - ac_status=$?
  20962. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20963. - (exit $ac_status); }; then
  20964. - case `/usr/bin/file conftest.$ac_objext` in
  20965. - *ELF-32*)
  20966. - HPUX_IA64_MODE="32"
  20967. - ;;
  20968. - *ELF-64*)
  20969. - HPUX_IA64_MODE="64"
  20970. - ;;
  20971. - esac
  20972. - fi
  20973. - rm -rf conftest*
  20974. +
  20975. +
  20976. +
  20977. +# test EBCDIC or ASCII
  20978. +case `echo X|tr X '\101'` in
  20979. + A) # ASCII based system
  20980. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  20981. + lt_SP2NL='tr \040 \012'
  20982. + lt_NL2SP='tr \015\012 \040\040'
  20983. ;;
  20984. -*-*-irix6*)
  20985. - # Find out which ABI we are using.
  20986. - echo '#line 5219 "configure"' > conftest.$ac_ext
  20987. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20988. - (eval $ac_compile) 2>&5
  20989. - ac_status=$?
  20990. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20991. - (exit $ac_status); }; then
  20992. - if test "$lt_cv_prog_gnu_ld" = yes; then
  20993. - case `/usr/bin/file conftest.$ac_objext` in
  20994. - *32-bit*)
  20995. - LD="${LD-ld} -melf32bsmip"
  20996. - ;;
  20997. - *N32*)
  20998. - LD="${LD-ld} -melf32bmipn32"
  20999. - ;;
  21000. - *64-bit*)
  21001. - LD="${LD-ld} -melf64bmip"
  21002. - ;;
  21003. - esac
  21004. - else
  21005. - case `/usr/bin/file conftest.$ac_objext` in
  21006. - *32-bit*)
  21007. - LD="${LD-ld} -32"
  21008. - ;;
  21009. - *N32*)
  21010. - LD="${LD-ld} -n32"
  21011. - ;;
  21012. - *64-bit*)
  21013. - LD="${LD-ld} -64"
  21014. - ;;
  21015. - esac
  21016. - fi
  21017. - fi
  21018. - rm -rf conftest*
  21019. + *) # EBCDIC based system
  21020. + lt_SP2NL='tr \100 \n'
  21021. + lt_NL2SP='tr \r\n \100\100'
  21022. ;;
  21023. +esac
  21024. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  21025. -s390*-*linux*|sparc*-*linux*)
  21026. - # Find out which ABI we are using.
  21027. - echo 'int i;' > conftest.$ac_ext
  21028. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21029. - (eval $ac_compile) 2>&5
  21030. - ac_status=$?
  21031. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21032. - (exit $ac_status); }; then
  21033. - case `/usr/bin/file conftest.o` in
  21034. - *32-bit*)
  21035. - case $host in
  21036. - x86_64-*kfreebsd*-gnu)
  21037. - LD="${LD-ld} -m elf_i386_fbsd"
  21038. - ;;
  21039. - x86_64-*linux*)
  21040. - LD="${LD-ld} -m elf_i386"
  21041. - ;;
  21042. - ppc64-*linux*|powerpc64-*linux*)
  21043. - LD="${LD-ld} -m elf32ppclinux"
  21044. - ;;
  21045. - s390x-*linux*)
  21046. - LD="${LD-ld} -m elf_s390"
  21047. - ;;
  21048. - sparc64-*linux*)
  21049. - LD="${LD-ld} -m elf32_sparc"
  21050. - ;;
  21051. - esac
  21052. - ;;
  21053. - *64-bit*)
  21054. - case $host in
  21055. - x86_64-*kfreebsd*-gnu)
  21056. - LD="${LD-ld} -m elf_x86_64_fbsd"
  21057. - ;;
  21058. - x86_64-*linux*)
  21059. - LD="${LD-ld} -m elf_x86_64"
  21060. - ;;
  21061. - ppc*-*linux*|powerpc*-*linux*)
  21062. - LD="${LD-ld} -m elf64ppc"
  21063. - ;;
  21064. - s390*-*linux*)
  21065. - LD="${LD-ld} -m elf64_s390"
  21066. - ;;
  21067. - sparc*-*linux*)
  21068. - LD="${LD-ld} -m elf64_sparc"
  21069. - ;;
  21070. - esac
  21071. - ;;
  21072. - esac
  21073. - fi
  21074. - rm -rf conftest*
  21075. - ;;
  21076. -*-*-sco3.2v5*)
  21077. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  21078. - SAVE_CFLAGS="$CFLAGS"
  21079. - CFLAGS="$CFLAGS -belf"
  21080. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  21081. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  21082. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  21083. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21084. -else
  21085. - ac_ext=c
  21086. -ac_cpp='$CPP $CPPFLAGS'
  21087. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21088. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21089. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21090. - cat >conftest.$ac_ext <<_ACEOF
  21091. -/* confdefs.h. */
  21092. -_ACEOF
  21093. -cat confdefs.h >>conftest.$ac_ext
  21094. -cat >>conftest.$ac_ext <<_ACEOF
  21095. -/* end confdefs.h. */
  21096. -int
  21097. -main ()
  21098. -{
  21099. - ;
  21100. - return 0;
  21101. -}
  21102. -_ACEOF
  21103. -rm -f conftest.$ac_objext conftest$ac_exeext
  21104. -if { (ac_try="$ac_link"
  21105. -case "(($ac_try" in
  21106. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21107. - *) ac_try_echo=$ac_try;;
  21108. -esac
  21109. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21110. - (eval "$ac_link") 2>conftest.er1
  21111. - ac_status=$?
  21112. - grep -v '^ *+' conftest.er1 >conftest.err
  21113. - rm -f conftest.er1
  21114. - cat conftest.err >&5
  21115. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21116. - (exit $ac_status); } && {
  21117. - test -z "$ac_c_werror_flag" ||
  21118. - test ! -s conftest.err
  21119. - } && test -s conftest$ac_exeext &&
  21120. - $as_test_x conftest$ac_exeext; then
  21121. - lt_cv_cc_needs_belf=yes
  21122. -else
  21123. - echo "$as_me: failed program was:" >&5
  21124. -sed 's/^/| /' conftest.$ac_ext >&5
  21125. -
  21126. - lt_cv_cc_needs_belf=no
  21127. -fi
  21128. -
  21129. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21130. - conftest$ac_exeext conftest.$ac_ext
  21131. - ac_ext=c
  21132. -ac_cpp='$CPP $CPPFLAGS'
  21133. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21134. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21135. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21136. -
  21137. -fi
  21138. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  21139. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  21140. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  21141. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  21142. - CFLAGS="$SAVE_CFLAGS"
  21143. - fi
  21144. - ;;
  21145. -sparc*-*solaris*)
  21146. - # Find out which ABI we are using.
  21147. - echo 'int i;' > conftest.$ac_ext
  21148. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21149. - (eval $ac_compile) 2>&5
  21150. - ac_status=$?
  21151. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21152. - (exit $ac_status); }; then
  21153. - case `/usr/bin/file conftest.o` in
  21154. - *64-bit*)
  21155. - case $lt_cv_prog_gnu_ld in
  21156. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  21157. - *) LD="${LD-ld} -64" ;;
  21158. - esac
  21159. - ;;
  21160. - esac
  21161. - fi
  21162. - rm -rf conftest*
  21163. - ;;
  21164. -
  21165. -
  21166. -esac
  21167. -need_locks="$enable_libtool_lock"
  21168. -for ac_header in dlfcn.h
  21169. -do
  21170. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21171. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21172. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21173. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21174. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21175. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21176. -fi
  21177. -ac_res=`eval echo '${'$as_ac_Header'}'`
  21178. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  21179. -echo "${ECHO_T}$ac_res" >&6; }
  21180. -else
  21181. - # Is the header compilable?
  21182. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21183. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  21184. -cat >conftest.$ac_ext <<_ACEOF
  21185. -/* confdefs.h. */
  21186. -_ACEOF
  21187. -cat confdefs.h >>conftest.$ac_ext
  21188. -cat >>conftest.$ac_ext <<_ACEOF
  21189. -/* end confdefs.h. */
  21190. -$ac_includes_default
  21191. -#include <$ac_header>
  21192. -_ACEOF
  21193. -rm -f conftest.$ac_objext
  21194. -if { (ac_try="$ac_compile"
  21195. -case "(($ac_try" in
  21196. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21197. - *) ac_try_echo=$ac_try;;
  21198. -esac
  21199. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21200. - (eval "$ac_compile") 2>conftest.er1
  21201. - ac_status=$?
  21202. - grep -v '^ *+' conftest.er1 >conftest.err
  21203. - rm -f conftest.er1
  21204. - cat conftest.err >&5
  21205. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21206. - (exit $ac_status); } && {
  21207. - test -z "$ac_c_werror_flag" ||
  21208. - test ! -s conftest.err
  21209. - } && test -s conftest.$ac_objext; then
  21210. - ac_header_compiler=yes
  21211. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  21212. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  21213. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  21214. + $as_echo_n "(cached) " >&6
  21215. else
  21216. - echo "$as_me: failed program was:" >&5
  21217. -sed 's/^/| /' conftest.$ac_ext >&5
  21218. -
  21219. - ac_header_compiler=no
  21220. + lt_cv_ld_reload_flag='-r'
  21221. fi
  21222. -
  21223. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21224. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21225. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  21226. -
  21227. -# Is the header present?
  21228. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21229. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  21230. -cat >conftest.$ac_ext <<_ACEOF
  21231. -/* confdefs.h. */
  21232. -_ACEOF
  21233. -cat confdefs.h >>conftest.$ac_ext
  21234. -cat >>conftest.$ac_ext <<_ACEOF
  21235. -/* end confdefs.h. */
  21236. -#include <$ac_header>
  21237. -_ACEOF
  21238. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21239. -case "(($ac_try" in
  21240. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21241. - *) ac_try_echo=$ac_try;;
  21242. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  21243. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  21244. +reload_flag=$lt_cv_ld_reload_flag
  21245. +case $reload_flag in
  21246. +"" | " "*) ;;
  21247. +*) reload_flag=" $reload_flag" ;;
  21248. +esac
  21249. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21250. +case $host_os in
  21251. + darwin*)
  21252. + if test "$GCC" = yes; then
  21253. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  21254. + else
  21255. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21256. + fi
  21257. + ;;
  21258. esac
  21259. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21260. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21261. - ac_status=$?
  21262. - grep -v '^ *+' conftest.er1 >conftest.err
  21263. - rm -f conftest.er1
  21264. - cat conftest.err >&5
  21265. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21266. - (exit $ac_status); } >/dev/null && {
  21267. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21268. - test ! -s conftest.err
  21269. - }; then
  21270. - ac_header_preproc=yes
  21271. -else
  21272. - echo "$as_me: failed program was:" >&5
  21273. -sed 's/^/| /' conftest.$ac_ext >&5
  21274. - ac_header_preproc=no
  21275. -fi
  21276. -rm -f conftest.err conftest.$ac_ext
  21277. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21278. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  21279. -# So? What about this header?
  21280. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21281. - yes:no: )
  21282. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21283. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21284. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21285. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21286. - ac_header_preproc=yes
  21287. - ;;
  21288. - no:yes:* )
  21289. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21290. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21291. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21292. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21293. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21294. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21295. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21296. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21297. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21298. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21299. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21300. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21301. - ;;
  21302. -esac
  21303. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  21304. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21305. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21306. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21307. -else
  21308. - eval "$as_ac_Header=\$ac_header_preproc"
  21309. -fi
  21310. -ac_res=`eval echo '${'$as_ac_Header'}'`
  21311. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  21312. -echo "${ECHO_T}$ac_res" >&6; }
  21313. -fi
  21314. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21315. - cat >>confdefs.h <<_ACEOF
  21316. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21317. -_ACEOF
  21318. -fi
  21319. -done
  21320. -ac_ext=cpp
  21321. -ac_cpp='$CXXCPP $CPPFLAGS'
  21322. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21323. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21324. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21325. -if test -z "$CXX"; then
  21326. - if test -n "$CCC"; then
  21327. - CXX=$CCC
  21328. - else
  21329. - if test -n "$ac_tool_prefix"; then
  21330. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  21331. - do
  21332. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21333. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21334. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21335. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21336. -if test "${ac_cv_prog_CXX+set}" = set; then
  21337. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21338. +
  21339. +if test -n "$ac_tool_prefix"; then
  21340. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  21341. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  21342. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21343. +$as_echo_n "checking for $ac_word... " >&6; }
  21344. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  21345. + $as_echo_n "(cached) " >&6
  21346. else
  21347. - if test -n "$CXX"; then
  21348. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  21349. + if test -n "$OBJDUMP"; then
  21350. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  21351. else
  21352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21353. for as_dir in $PATH
  21354. do
  21355. IFS=$as_save_IFS
  21356. test -z "$as_dir" && as_dir=.
  21357. - for ac_exec_ext in '' $ac_executable_extensions; do
  21358. + for ac_exec_ext in '' $ac_executable_extensions; do
  21359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21360. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  21361. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21362. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  21363. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21364. break 2
  21365. fi
  21366. done
  21367. -done
  21368. + done
  21369. IFS=$as_save_IFS
  21370. fi
  21371. fi
  21372. -CXX=$ac_cv_prog_CXX
  21373. -if test -n "$CXX"; then
  21374. - { echo "$as_me:$LINENO: result: $CXX" >&5
  21375. -echo "${ECHO_T}$CXX" >&6; }
  21376. +OBJDUMP=$ac_cv_prog_OBJDUMP
  21377. +if test -n "$OBJDUMP"; then
  21378. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  21379. +$as_echo "$OBJDUMP" >&6; }
  21380. else
  21381. - { echo "$as_me:$LINENO: result: no" >&5
  21382. -echo "${ECHO_T}no" >&6; }
  21383. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21384. +$as_echo "no" >&6; }
  21385. fi
  21386. - test -n "$CXX" && break
  21387. - done
  21388. fi
  21389. -if test -z "$CXX"; then
  21390. - ac_ct_CXX=$CXX
  21391. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  21392. -do
  21393. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  21394. -set dummy $ac_prog; ac_word=$2
  21395. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21396. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21397. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  21398. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21399. +if test -z "$ac_cv_prog_OBJDUMP"; then
  21400. + ac_ct_OBJDUMP=$OBJDUMP
  21401. + # Extract the first word of "objdump", so it can be a program name with args.
  21402. +set dummy objdump; ac_word=$2
  21403. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21404. +$as_echo_n "checking for $ac_word... " >&6; }
  21405. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  21406. + $as_echo_n "(cached) " >&6
  21407. else
  21408. - if test -n "$ac_ct_CXX"; then
  21409. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  21410. + if test -n "$ac_ct_OBJDUMP"; then
  21411. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  21412. else
  21413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21414. for as_dir in $PATH
  21415. do
  21416. IFS=$as_save_IFS
  21417. test -z "$as_dir" && as_dir=.
  21418. - for ac_exec_ext in '' $ac_executable_extensions; do
  21419. + for ac_exec_ext in '' $ac_executable_extensions; do
  21420. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21421. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  21422. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21423. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  21424. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21425. break 2
  21426. fi
  21427. done
  21428. -done
  21429. + done
  21430. IFS=$as_save_IFS
  21431. fi
  21432. fi
  21433. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  21434. -if test -n "$ac_ct_CXX"; then
  21435. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  21436. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  21437. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  21438. +if test -n "$ac_ct_OBJDUMP"; then
  21439. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  21440. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  21441. else
  21442. - { echo "$as_me:$LINENO: result: no" >&5
  21443. -echo "${ECHO_T}no" >&6; }
  21444. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21445. +$as_echo "no" >&6; }
  21446. fi
  21447. -
  21448. - test -n "$ac_ct_CXX" && break
  21449. -done
  21450. -
  21451. - if test "x$ac_ct_CXX" = x; then
  21452. - CXX="g++"
  21453. + if test "x$ac_ct_OBJDUMP" = x; then
  21454. + OBJDUMP="false"
  21455. else
  21456. case $cross_compiling:$ac_tool_warned in
  21457. yes:)
  21458. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21459. -whose name does not start with the host triplet. If you think this
  21460. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21461. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21462. -whose name does not start with the host triplet. If you think this
  21463. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21464. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21465. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21466. ac_tool_warned=yes ;;
  21467. esac
  21468. - CXX=$ac_ct_CXX
  21469. + OBJDUMP=$ac_ct_OBJDUMP
  21470. fi
  21471. -fi
  21472. -
  21473. - fi
  21474. -fi
  21475. -# Provide some information about the compiler.
  21476. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  21477. -ac_compiler=`set X $ac_compile; echo $2`
  21478. -{ (ac_try="$ac_compiler --version >&5"
  21479. -case "(($ac_try" in
  21480. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21481. - *) ac_try_echo=$ac_try;;
  21482. -esac
  21483. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21484. - (eval "$ac_compiler --version >&5") 2>&5
  21485. - ac_status=$?
  21486. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21487. - (exit $ac_status); }
  21488. -{ (ac_try="$ac_compiler -v >&5"
  21489. -case "(($ac_try" in
  21490. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21491. - *) ac_try_echo=$ac_try;;
  21492. -esac
  21493. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21494. - (eval "$ac_compiler -v >&5") 2>&5
  21495. - ac_status=$?
  21496. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21497. - (exit $ac_status); }
  21498. -{ (ac_try="$ac_compiler -V >&5"
  21499. -case "(($ac_try" in
  21500. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21501. - *) ac_try_echo=$ac_try;;
  21502. -esac
  21503. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21504. - (eval "$ac_compiler -V >&5") 2>&5
  21505. - ac_status=$?
  21506. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21507. - (exit $ac_status); }
  21508. -
  21509. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  21510. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  21511. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  21512. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21513. -else
  21514. - cat >conftest.$ac_ext <<_ACEOF
  21515. -/* confdefs.h. */
  21516. -_ACEOF
  21517. -cat confdefs.h >>conftest.$ac_ext
  21518. -cat >>conftest.$ac_ext <<_ACEOF
  21519. -/* end confdefs.h. */
  21520. -
  21521. -int
  21522. -main ()
  21523. -{
  21524. -#ifndef __GNUC__
  21525. - choke me
  21526. -#endif
  21527. -
  21528. - ;
  21529. - return 0;
  21530. -}
  21531. -_ACEOF
  21532. -rm -f conftest.$ac_objext
  21533. -if { (ac_try="$ac_compile"
  21534. -case "(($ac_try" in
  21535. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21536. - *) ac_try_echo=$ac_try;;
  21537. -esac
  21538. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21539. - (eval "$ac_compile") 2>conftest.er1
  21540. - ac_status=$?
  21541. - grep -v '^ *+' conftest.er1 >conftest.err
  21542. - rm -f conftest.er1
  21543. - cat conftest.err >&5
  21544. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21545. - (exit $ac_status); } && {
  21546. - test -z "$ac_cxx_werror_flag" ||
  21547. - test ! -s conftest.err
  21548. - } && test -s conftest.$ac_objext; then
  21549. - ac_compiler_gnu=yes
  21550. else
  21551. - echo "$as_me: failed program was:" >&5
  21552. -sed 's/^/| /' conftest.$ac_ext >&5
  21553. -
  21554. - ac_compiler_gnu=no
  21555. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  21556. fi
  21557. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21558. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  21559. +test -z "$OBJDUMP" && OBJDUMP=objdump
  21560. -fi
  21561. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  21562. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  21563. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  21564. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  21565. -ac_save_CXXFLAGS=$CXXFLAGS
  21566. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  21567. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  21568. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  21569. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21570. -else
  21571. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  21572. - ac_cxx_werror_flag=yes
  21573. - ac_cv_prog_cxx_g=no
  21574. - CXXFLAGS="-g"
  21575. - cat >conftest.$ac_ext <<_ACEOF
  21576. -/* confdefs.h. */
  21577. -_ACEOF
  21578. -cat confdefs.h >>conftest.$ac_ext
  21579. -cat >>conftest.$ac_ext <<_ACEOF
  21580. -/* end confdefs.h. */
  21581. -int
  21582. -main ()
  21583. -{
  21584. - ;
  21585. - return 0;
  21586. -}
  21587. -_ACEOF
  21588. -rm -f conftest.$ac_objext
  21589. -if { (ac_try="$ac_compile"
  21590. -case "(($ac_try" in
  21591. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21592. - *) ac_try_echo=$ac_try;;
  21593. -esac
  21594. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21595. - (eval "$ac_compile") 2>conftest.er1
  21596. - ac_status=$?
  21597. - grep -v '^ *+' conftest.er1 >conftest.err
  21598. - rm -f conftest.er1
  21599. - cat conftest.err >&5
  21600. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21601. - (exit $ac_status); } && {
  21602. - test -z "$ac_cxx_werror_flag" ||
  21603. - test ! -s conftest.err
  21604. - } && test -s conftest.$ac_objext; then
  21605. - ac_cv_prog_cxx_g=yes
  21606. -else
  21607. - echo "$as_me: failed program was:" >&5
  21608. -sed 's/^/| /' conftest.$ac_ext >&5
  21609. - CXXFLAGS=""
  21610. - cat >conftest.$ac_ext <<_ACEOF
  21611. -/* confdefs.h. */
  21612. -_ACEOF
  21613. -cat confdefs.h >>conftest.$ac_ext
  21614. -cat >>conftest.$ac_ext <<_ACEOF
  21615. -/* end confdefs.h. */
  21616. -int
  21617. -main ()
  21618. -{
  21619. - ;
  21620. - return 0;
  21621. -}
  21622. -_ACEOF
  21623. -rm -f conftest.$ac_objext
  21624. -if { (ac_try="$ac_compile"
  21625. -case "(($ac_try" in
  21626. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21627. - *) ac_try_echo=$ac_try;;
  21628. -esac
  21629. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21630. - (eval "$ac_compile") 2>conftest.er1
  21631. - ac_status=$?
  21632. - grep -v '^ *+' conftest.er1 >conftest.err
  21633. - rm -f conftest.er1
  21634. - cat conftest.err >&5
  21635. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21636. - (exit $ac_status); } && {
  21637. - test -z "$ac_cxx_werror_flag" ||
  21638. - test ! -s conftest.err
  21639. - } && test -s conftest.$ac_objext; then
  21640. - :
  21641. -else
  21642. - echo "$as_me: failed program was:" >&5
  21643. -sed 's/^/| /' conftest.$ac_ext >&5
  21644. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21645. - CXXFLAGS="-g"
  21646. - cat >conftest.$ac_ext <<_ACEOF
  21647. -/* confdefs.h. */
  21648. -_ACEOF
  21649. -cat confdefs.h >>conftest.$ac_ext
  21650. -cat >>conftest.$ac_ext <<_ACEOF
  21651. -/* end confdefs.h. */
  21652. -int
  21653. -main ()
  21654. -{
  21655. - ;
  21656. - return 0;
  21657. -}
  21658. -_ACEOF
  21659. -rm -f conftest.$ac_objext
  21660. -if { (ac_try="$ac_compile"
  21661. -case "(($ac_try" in
  21662. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21663. - *) ac_try_echo=$ac_try;;
  21664. -esac
  21665. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21666. - (eval "$ac_compile") 2>conftest.er1
  21667. - ac_status=$?
  21668. - grep -v '^ *+' conftest.er1 >conftest.err
  21669. - rm -f conftest.er1
  21670. - cat conftest.err >&5
  21671. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21672. - (exit $ac_status); } && {
  21673. - test -z "$ac_cxx_werror_flag" ||
  21674. - test ! -s conftest.err
  21675. - } && test -s conftest.$ac_objext; then
  21676. - ac_cv_prog_cxx_g=yes
  21677. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  21678. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  21679. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  21680. + $as_echo_n "(cached) " >&6
  21681. else
  21682. - echo "$as_me: failed program was:" >&5
  21683. -sed 's/^/| /' conftest.$ac_ext >&5
  21684. -
  21685. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  21686. +lt_cv_file_magic_test_file=
  21687. +lt_cv_deplibs_check_method='unknown'
  21688. +# Need to set the preceding variable on all platforms that support
  21689. +# interlibrary dependencies.
  21690. +# 'none' -- dependencies not supported.
  21691. +# `unknown' -- same as none, but documents that we really don't know.
  21692. +# 'pass_all' -- all dependencies passed with no checks.
  21693. +# 'test_compile' -- check by making test program.
  21694. +# 'file_magic [[regex]]' -- check by looking for files in library path
  21695. +# which responds to the $file_magic_cmd with a given extended regex.
  21696. +# If you have `file' or equivalent on your system and you're not sure
  21697. +# whether `pass_all' will *always* work, you probably want this one.
  21698. -fi
  21699. +case $host_os in
  21700. +aix[4-9]*)
  21701. + lt_cv_deplibs_check_method=pass_all
  21702. + ;;
  21703. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21704. -fi
  21705. +beos*)
  21706. + lt_cv_deplibs_check_method=pass_all
  21707. + ;;
  21708. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21709. -fi
  21710. +bsdi[45]*)
  21711. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  21712. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  21713. + lt_cv_file_magic_test_file=/shlib/libc.so
  21714. + ;;
  21715. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21716. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21717. -fi
  21718. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  21719. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  21720. -if test "$ac_test_CXXFLAGS" = set; then
  21721. - CXXFLAGS=$ac_save_CXXFLAGS
  21722. -elif test $ac_cv_prog_cxx_g = yes; then
  21723. - if test "$GXX" = yes; then
  21724. - CXXFLAGS="-g -O2"
  21725. - else
  21726. - CXXFLAGS="-g"
  21727. - fi
  21728. -else
  21729. - if test "$GXX" = yes; then
  21730. - CXXFLAGS="-O2"
  21731. +cygwin*)
  21732. + # func_win32_libid is a shell function defined in ltmain.sh
  21733. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21734. + lt_cv_file_magic_cmd='func_win32_libid'
  21735. + ;;
  21736. +
  21737. +mingw* | pw32*)
  21738. + # Base MSYS/MinGW do not provide the 'file' command needed by
  21739. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  21740. + # unless we find 'file', for example because we are cross-compiling.
  21741. + if ( file / ) >/dev/null 2>&1; then
  21742. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21743. + lt_cv_file_magic_cmd='func_win32_libid'
  21744. else
  21745. - CXXFLAGS=
  21746. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  21747. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  21748. fi
  21749. -fi
  21750. -ac_ext=cpp
  21751. -ac_cpp='$CXXCPP $CPPFLAGS'
  21752. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21753. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21754. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21755. -
  21756. -depcc="$CXX" am_compiler_list=
  21757. + ;;
  21758. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  21759. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  21760. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  21761. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21762. -else
  21763. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  21764. - # We make a subdir and do the tests there. Otherwise we can end up
  21765. - # making bogus files that we don't know about and never remove. For
  21766. - # instance it was reported that on HP-UX the gcc test will end up
  21767. - # making a dummy file named `D' -- because `-MD' means `put the output
  21768. - # in D'.
  21769. - mkdir conftest.dir
  21770. - # Copy depcomp to subdir because otherwise we won't find it if we're
  21771. - # using a relative directory.
  21772. - cp "$am_depcomp" conftest.dir
  21773. - cd conftest.dir
  21774. - # We will build objects and dependencies in a subdirectory because
  21775. - # it helps to detect inapplicable dependency modes. For instance
  21776. - # both Tru64's cc and ICC support -MD to output dependencies as a
  21777. - # side effect of compilation, but ICC will put the dependencies in
  21778. - # the current directory while Tru64 will put them in the object
  21779. - # directory.
  21780. - mkdir sub
  21781. +cegcc)
  21782. + # use the weaker test based on 'objdump'. See mingw*.
  21783. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  21784. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  21785. + ;;
  21786. - am_cv_CXX_dependencies_compiler_type=none
  21787. - if test "$am_compiler_list" = ""; then
  21788. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  21789. - fi
  21790. - for depmode in $am_compiler_list; do
  21791. - # Setup a source with many dependencies, because some compilers
  21792. - # like to wrap large dependency lists on column 80 (with \), and
  21793. - # we should not choose a depcomp mode which is confused by this.
  21794. - #
  21795. - # We need to recreate these files for each test, as the compiler may
  21796. - # overwrite some of them when testing with obscure command lines.
  21797. - # This happens at least with the AIX C compiler.
  21798. - : > sub/conftest.c
  21799. - for i in 1 2 3 4 5 6; do
  21800. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  21801. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  21802. - # Solaris 8's {/usr,}/bin/sh.
  21803. - touch sub/conftst$i.h
  21804. - done
  21805. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  21806. +darwin* | rhapsody*)
  21807. + lt_cv_deplibs_check_method=pass_all
  21808. + ;;
  21809. - case $depmode in
  21810. - nosideeffect)
  21811. - # after this tag, mechanisms are not by side-effect, so they'll
  21812. - # only be used when explicitly requested
  21813. - if test "x$enable_dependency_tracking" = xyes; then
  21814. - continue
  21815. - else
  21816. - break
  21817. - fi
  21818. +freebsd* | dragonfly*)
  21819. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  21820. + case $host_cpu in
  21821. + i*86 )
  21822. + # Not sure whether the presence of OpenBSD here was a mistake.
  21823. + # Let's accept both of them until this is cleared up.
  21824. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  21825. + lt_cv_file_magic_cmd=/usr/bin/file
  21826. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  21827. ;;
  21828. - none) break ;;
  21829. esac
  21830. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21831. - # mode. It turns out that the SunPro C++ compiler does not properly
  21832. - # handle `-M -o', and we need to detect this.
  21833. - if depmode=$depmode \
  21834. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  21835. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21836. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  21837. - >/dev/null 2>conftest.err &&
  21838. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  21839. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21840. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  21841. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21842. - # icc doesn't choke on unknown options, it will just issue warnings
  21843. - # or remarks (even with -Werror). So we grep stderr for any message
  21844. - # that says an option was ignored or not supported.
  21845. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  21846. - # icc: Command line warning: ignoring option '-M'; no argument required
  21847. - # The diagnosis changed in icc 8.0:
  21848. - # icc: Command line remark: option '-MP' not supported
  21849. - if (grep 'ignoring option' conftest.err ||
  21850. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21851. - am_cv_CXX_dependencies_compiler_type=$depmode
  21852. - break
  21853. - fi
  21854. - fi
  21855. - done
  21856. -
  21857. - cd ..
  21858. - rm -rf conftest.dir
  21859. -else
  21860. - am_cv_CXX_dependencies_compiler_type=none
  21861. -fi
  21862. + else
  21863. + lt_cv_deplibs_check_method=pass_all
  21864. + fi
  21865. + ;;
  21866. -fi
  21867. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  21868. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  21869. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  21870. +gnu*)
  21871. + lt_cv_deplibs_check_method=pass_all
  21872. + ;;
  21873. - if
  21874. - test "x$enable_dependency_tracking" != xno \
  21875. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  21876. - am__fastdepCXX_TRUE=
  21877. - am__fastdepCXX_FALSE='#'
  21878. -else
  21879. - am__fastdepCXX_TRUE='#'
  21880. - am__fastdepCXX_FALSE=
  21881. -fi
  21882. +hpux10.20* | hpux11*)
  21883. + lt_cv_file_magic_cmd=/usr/bin/file
  21884. + case $host_cpu in
  21885. + ia64*)
  21886. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  21887. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  21888. + ;;
  21889. + hppa*64*)
  21890. + 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]'
  21891. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  21892. + ;;
  21893. + *)
  21894. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  21895. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  21896. + ;;
  21897. + esac
  21898. + ;;
  21899. +interix[3-9]*)
  21900. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  21901. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  21902. + ;;
  21903. +irix5* | irix6* | nonstopux*)
  21904. + case $LD in
  21905. + *-32|*"-32 ") libmagic=32-bit;;
  21906. + *-n32|*"-n32 ") libmagic=N32;;
  21907. + *-64|*"-64 ") libmagic=64-bit;;
  21908. + *) libmagic=never-match;;
  21909. + esac
  21910. + lt_cv_deplibs_check_method=pass_all
  21911. + ;;
  21912. +# This must be Linux ELF.
  21913. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  21914. + lt_cv_deplibs_check_method=pass_all
  21915. + ;;
  21916. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  21917. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  21918. - (test "X$CXX" != "Xg++"))) ; then
  21919. - ac_ext=cpp
  21920. -ac_cpp='$CXXCPP $CPPFLAGS'
  21921. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21922. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21923. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21924. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  21925. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  21926. -if test -z "$CXXCPP"; then
  21927. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  21928. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21929. -else
  21930. - # Double quotes because CXXCPP needs to be expanded
  21931. - for CXXCPP in "$CXX -E" "/lib/cpp"
  21932. - do
  21933. - ac_preproc_ok=false
  21934. -for ac_cxx_preproc_warn_flag in '' yes
  21935. -do
  21936. - # Use a header file that comes with gcc, so configuring glibc
  21937. - # with a fresh cross-compiler works.
  21938. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21939. - # <limits.h> exists even on freestanding compilers.
  21940. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21941. - # not just through cpp. "Syntax error" is here to catch this case.
  21942. - cat >conftest.$ac_ext <<_ACEOF
  21943. -/* confdefs.h. */
  21944. -_ACEOF
  21945. -cat confdefs.h >>conftest.$ac_ext
  21946. -cat >>conftest.$ac_ext <<_ACEOF
  21947. -/* end confdefs.h. */
  21948. -#ifdef __STDC__
  21949. -# include <limits.h>
  21950. -#else
  21951. -# include <assert.h>
  21952. -#endif
  21953. - Syntax error
  21954. -_ACEOF
  21955. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21956. -case "(($ac_try" in
  21957. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21958. - *) ac_try_echo=$ac_try;;
  21959. -esac
  21960. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21961. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21962. - ac_status=$?
  21963. - grep -v '^ *+' conftest.er1 >conftest.err
  21964. - rm -f conftest.er1
  21965. - cat conftest.err >&5
  21966. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21967. - (exit $ac_status); } >/dev/null && {
  21968. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  21969. - test ! -s conftest.err
  21970. - }; then
  21971. - :
  21972. -else
  21973. - echo "$as_me: failed program was:" >&5
  21974. -sed 's/^/| /' conftest.$ac_ext >&5
  21975. +netbsd* | netbsdelf*-gnu)
  21976. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  21977. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21978. + else
  21979. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  21980. + fi
  21981. + ;;
  21982. - # Broken: fails on valid input.
  21983. -continue
  21984. -fi
  21985. +newos6*)
  21986. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  21987. + lt_cv_file_magic_cmd=/usr/bin/file
  21988. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  21989. + ;;
  21990. -rm -f conftest.err conftest.$ac_ext
  21991. +*nto* | *qnx*)
  21992. + lt_cv_deplibs_check_method=pass_all
  21993. + ;;
  21994. - # OK, works on sane cases. Now check whether nonexistent headers
  21995. - # can be detected and how.
  21996. - cat >conftest.$ac_ext <<_ACEOF
  21997. -/* confdefs.h. */
  21998. -_ACEOF
  21999. -cat confdefs.h >>conftest.$ac_ext
  22000. -cat >>conftest.$ac_ext <<_ACEOF
  22001. -/* end confdefs.h. */
  22002. -#include <ac_nonexistent.h>
  22003. -_ACEOF
  22004. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22005. -case "(($ac_try" in
  22006. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22007. - *) ac_try_echo=$ac_try;;
  22008. -esac
  22009. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22010. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22011. - ac_status=$?
  22012. - grep -v '^ *+' conftest.er1 >conftest.err
  22013. - rm -f conftest.er1
  22014. - cat conftest.err >&5
  22015. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22016. - (exit $ac_status); } >/dev/null && {
  22017. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  22018. - test ! -s conftest.err
  22019. - }; then
  22020. - # Broken: success on invalid input.
  22021. -continue
  22022. -else
  22023. - echo "$as_me: failed program was:" >&5
  22024. -sed 's/^/| /' conftest.$ac_ext >&5
  22025. +openbsd*)
  22026. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22027. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  22028. + else
  22029. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22030. + fi
  22031. + ;;
  22032. - # Passes both tests.
  22033. -ac_preproc_ok=:
  22034. -break
  22035. -fi
  22036. +osf3* | osf4* | osf5*)
  22037. + lt_cv_deplibs_check_method=pass_all
  22038. + ;;
  22039. -rm -f conftest.err conftest.$ac_ext
  22040. +rdos*)
  22041. + lt_cv_deplibs_check_method=pass_all
  22042. + ;;
  22043. -done
  22044. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22045. -rm -f conftest.err conftest.$ac_ext
  22046. -if $ac_preproc_ok; then
  22047. - break
  22048. -fi
  22049. +solaris*)
  22050. + lt_cv_deplibs_check_method=pass_all
  22051. + ;;
  22052. - done
  22053. - ac_cv_prog_CXXCPP=$CXXCPP
  22054. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  22055. + lt_cv_deplibs_check_method=pass_all
  22056. + ;;
  22057. -fi
  22058. - CXXCPP=$ac_cv_prog_CXXCPP
  22059. -else
  22060. - ac_cv_prog_CXXCPP=$CXXCPP
  22061. -fi
  22062. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  22063. -echo "${ECHO_T}$CXXCPP" >&6; }
  22064. -ac_preproc_ok=false
  22065. -for ac_cxx_preproc_warn_flag in '' yes
  22066. -do
  22067. - # Use a header file that comes with gcc, so configuring glibc
  22068. - # with a fresh cross-compiler works.
  22069. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22070. - # <limits.h> exists even on freestanding compilers.
  22071. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22072. - # not just through cpp. "Syntax error" is here to catch this case.
  22073. - cat >conftest.$ac_ext <<_ACEOF
  22074. -/* confdefs.h. */
  22075. -_ACEOF
  22076. -cat confdefs.h >>conftest.$ac_ext
  22077. -cat >>conftest.$ac_ext <<_ACEOF
  22078. -/* end confdefs.h. */
  22079. -#ifdef __STDC__
  22080. -# include <limits.h>
  22081. -#else
  22082. -# include <assert.h>
  22083. -#endif
  22084. - Syntax error
  22085. -_ACEOF
  22086. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22087. -case "(($ac_try" in
  22088. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22089. - *) ac_try_echo=$ac_try;;
  22090. +sysv4 | sysv4.3*)
  22091. + case $host_vendor in
  22092. + motorola)
  22093. + 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]'
  22094. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  22095. + ;;
  22096. + ncr)
  22097. + lt_cv_deplibs_check_method=pass_all
  22098. + ;;
  22099. + sequent)
  22100. + lt_cv_file_magic_cmd='/bin/file'
  22101. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  22102. + ;;
  22103. + sni)
  22104. + lt_cv_file_magic_cmd='/bin/file'
  22105. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  22106. + lt_cv_file_magic_test_file=/lib/libc.so
  22107. + ;;
  22108. + siemens)
  22109. + lt_cv_deplibs_check_method=pass_all
  22110. + ;;
  22111. + pc)
  22112. + lt_cv_deplibs_check_method=pass_all
  22113. + ;;
  22114. + esac
  22115. + ;;
  22116. +
  22117. +tpf*)
  22118. + lt_cv_deplibs_check_method=pass_all
  22119. + ;;
  22120. esac
  22121. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22122. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22123. - ac_status=$?
  22124. - grep -v '^ *+' conftest.er1 >conftest.err
  22125. - rm -f conftest.er1
  22126. - cat conftest.err >&5
  22127. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22128. - (exit $ac_status); } >/dev/null && {
  22129. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  22130. - test ! -s conftest.err
  22131. - }; then
  22132. - :
  22133. -else
  22134. - echo "$as_me: failed program was:" >&5
  22135. -sed 's/^/| /' conftest.$ac_ext >&5
  22136. - # Broken: fails on valid input.
  22137. -continue
  22138. fi
  22139. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  22140. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  22141. +file_magic_cmd=$lt_cv_file_magic_cmd
  22142. +deplibs_check_method=$lt_cv_deplibs_check_method
  22143. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  22144. +
  22145. +
  22146. +
  22147. -rm -f conftest.err conftest.$ac_ext
  22148. - # OK, works on sane cases. Now check whether nonexistent headers
  22149. - # can be detected and how.
  22150. - cat >conftest.$ac_ext <<_ACEOF
  22151. -/* confdefs.h. */
  22152. -_ACEOF
  22153. -cat confdefs.h >>conftest.$ac_ext
  22154. -cat >>conftest.$ac_ext <<_ACEOF
  22155. -/* end confdefs.h. */
  22156. -#include <ac_nonexistent.h>
  22157. -_ACEOF
  22158. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22159. -case "(($ac_try" in
  22160. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22161. - *) ac_try_echo=$ac_try;;
  22162. -esac
  22163. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22164. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22165. - ac_status=$?
  22166. - grep -v '^ *+' conftest.er1 >conftest.err
  22167. - rm -f conftest.er1
  22168. - cat conftest.err >&5
  22169. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22170. - (exit $ac_status); } >/dev/null && {
  22171. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  22172. - test ! -s conftest.err
  22173. - }; then
  22174. - # Broken: success on invalid input.
  22175. -continue
  22176. -else
  22177. - echo "$as_me: failed program was:" >&5
  22178. -sed 's/^/| /' conftest.$ac_ext >&5
  22179. - # Passes both tests.
  22180. -ac_preproc_ok=:
  22181. -break
  22182. -fi
  22183. -rm -f conftest.err conftest.$ac_ext
  22184. -done
  22185. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22186. -rm -f conftest.err conftest.$ac_ext
  22187. -if $ac_preproc_ok; then
  22188. - :
  22189. -else
  22190. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  22191. -See \`config.log' for more details." >&5
  22192. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  22193. -See \`config.log' for more details." >&2;}
  22194. - { (exit 1); exit 1; }; }
  22195. -fi
  22196. -ac_ext=cpp
  22197. -ac_cpp='$CXXCPP $CPPFLAGS'
  22198. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22199. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22200. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22201. -fi
  22202. -ac_ext=f
  22203. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  22204. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22205. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  22206. if test -n "$ac_tool_prefix"; then
  22207. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  22208. - do
  22209. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22210. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22211. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22212. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22213. -if test "${ac_cv_prog_F77+set}" = set; then
  22214. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22215. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22216. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  22217. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22218. +$as_echo_n "checking for $ac_word... " >&6; }
  22219. +if test "${ac_cv_prog_AR+set}" = set; then :
  22220. + $as_echo_n "(cached) " >&6
  22221. else
  22222. - if test -n "$F77"; then
  22223. - ac_cv_prog_F77="$F77" # Let the user override the test.
  22224. + if test -n "$AR"; then
  22225. + ac_cv_prog_AR="$AR" # Let the user override the test.
  22226. else
  22227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22228. for as_dir in $PATH
  22229. do
  22230. IFS=$as_save_IFS
  22231. test -z "$as_dir" && as_dir=.
  22232. - for ac_exec_ext in '' $ac_executable_extensions; do
  22233. + for ac_exec_ext in '' $ac_executable_extensions; do
  22234. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22235. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  22236. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22237. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  22238. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22239. break 2
  22240. fi
  22241. done
  22242. -done
  22243. + done
  22244. IFS=$as_save_IFS
  22245. fi
  22246. fi
  22247. -F77=$ac_cv_prog_F77
  22248. -if test -n "$F77"; then
  22249. - { echo "$as_me:$LINENO: result: $F77" >&5
  22250. -echo "${ECHO_T}$F77" >&6; }
  22251. +AR=$ac_cv_prog_AR
  22252. +if test -n "$AR"; then
  22253. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  22254. +$as_echo "$AR" >&6; }
  22255. else
  22256. - { echo "$as_me:$LINENO: result: no" >&5
  22257. -echo "${ECHO_T}no" >&6; }
  22258. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22259. +$as_echo "no" >&6; }
  22260. fi
  22261. - test -n "$F77" && break
  22262. - done
  22263. fi
  22264. -if test -z "$F77"; then
  22265. - ac_ct_F77=$F77
  22266. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  22267. -do
  22268. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  22269. -set dummy $ac_prog; ac_word=$2
  22270. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22271. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22272. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  22273. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22274. +if test -z "$ac_cv_prog_AR"; then
  22275. + ac_ct_AR=$AR
  22276. + # Extract the first word of "ar", so it can be a program name with args.
  22277. +set dummy ar; ac_word=$2
  22278. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22279. +$as_echo_n "checking for $ac_word... " >&6; }
  22280. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  22281. + $as_echo_n "(cached) " >&6
  22282. else
  22283. - if test -n "$ac_ct_F77"; then
  22284. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  22285. + if test -n "$ac_ct_AR"; then
  22286. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22287. else
  22288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22289. for as_dir in $PATH
  22290. do
  22291. IFS=$as_save_IFS
  22292. test -z "$as_dir" && as_dir=.
  22293. - for ac_exec_ext in '' $ac_executable_extensions; do
  22294. + for ac_exec_ext in '' $ac_executable_extensions; do
  22295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22296. - ac_cv_prog_ac_ct_F77="$ac_prog"
  22297. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22298. + ac_cv_prog_ac_ct_AR="ar"
  22299. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22300. break 2
  22301. fi
  22302. done
  22303. -done
  22304. + done
  22305. IFS=$as_save_IFS
  22306. fi
  22307. fi
  22308. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  22309. -if test -n "$ac_ct_F77"; then
  22310. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  22311. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  22312. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22313. +if test -n "$ac_ct_AR"; then
  22314. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  22315. +$as_echo "$ac_ct_AR" >&6; }
  22316. else
  22317. - { echo "$as_me:$LINENO: result: no" >&5
  22318. -echo "${ECHO_T}no" >&6; }
  22319. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22320. +$as_echo "no" >&6; }
  22321. fi
  22322. -
  22323. - test -n "$ac_ct_F77" && break
  22324. -done
  22325. -
  22326. - if test "x$ac_ct_F77" = x; then
  22327. - F77=""
  22328. + if test "x$ac_ct_AR" = x; then
  22329. + AR="false"
  22330. else
  22331. case $cross_compiling:$ac_tool_warned in
  22332. yes:)
  22333. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22334. -whose name does not start with the host triplet. If you think this
  22335. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22336. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22337. -whose name does not start with the host triplet. If you think this
  22338. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22339. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22340. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22341. ac_tool_warned=yes ;;
  22342. esac
  22343. - F77=$ac_ct_F77
  22344. + AR=$ac_ct_AR
  22345. fi
  22346. +else
  22347. + AR="$ac_cv_prog_AR"
  22348. fi
  22349. +test -z "$AR" && AR=ar
  22350. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22351. -# Provide some information about the compiler.
  22352. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  22353. -ac_compiler=`set X $ac_compile; echo $2`
  22354. -{ (ac_try="$ac_compiler --version >&5"
  22355. -case "(($ac_try" in
  22356. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22357. - *) ac_try_echo=$ac_try;;
  22358. -esac
  22359. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22360. - (eval "$ac_compiler --version >&5") 2>&5
  22361. - ac_status=$?
  22362. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22363. - (exit $ac_status); }
  22364. -{ (ac_try="$ac_compiler -v >&5"
  22365. -case "(($ac_try" in
  22366. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22367. - *) ac_try_echo=$ac_try;;
  22368. -esac
  22369. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22370. - (eval "$ac_compiler -v >&5") 2>&5
  22371. - ac_status=$?
  22372. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22373. - (exit $ac_status); }
  22374. -{ (ac_try="$ac_compiler -V >&5"
  22375. -case "(($ac_try" in
  22376. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22377. - *) ac_try_echo=$ac_try;;
  22378. -esac
  22379. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22380. - (eval "$ac_compiler -V >&5") 2>&5
  22381. - ac_status=$?
  22382. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22383. - (exit $ac_status); }
  22384. -rm -f a.out
  22385. -
  22386. -# If we don't use `.F' as extension, the preprocessor is not run on the
  22387. -# input file. (Note that this only needs to work for GNU compilers.)
  22388. -ac_save_ext=$ac_ext
  22389. -ac_ext=F
  22390. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  22391. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  22392. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  22393. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22394. -else
  22395. - cat >conftest.$ac_ext <<_ACEOF
  22396. - program main
  22397. -#ifndef __GNUC__
  22398. - choke me
  22399. -#endif
  22400. - end
  22401. -_ACEOF
  22402. -rm -f conftest.$ac_objext
  22403. -if { (ac_try="$ac_compile"
  22404. -case "(($ac_try" in
  22405. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22406. - *) ac_try_echo=$ac_try;;
  22407. -esac
  22408. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22409. - (eval "$ac_compile") 2>conftest.er1
  22410. - ac_status=$?
  22411. - grep -v '^ *+' conftest.er1 >conftest.err
  22412. - rm -f conftest.er1
  22413. - cat conftest.err >&5
  22414. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22415. - (exit $ac_status); } && {
  22416. - test -z "$ac_f77_werror_flag" ||
  22417. - test ! -s conftest.err
  22418. - } && test -s conftest.$ac_objext; then
  22419. - ac_compiler_gnu=yes
  22420. -else
  22421. - echo "$as_me: failed program was:" >&5
  22422. -sed 's/^/| /' conftest.$ac_ext >&5
  22423. - ac_compiler_gnu=no
  22424. -fi
  22425. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22426. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  22427. -fi
  22428. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  22429. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  22430. -ac_ext=$ac_save_ext
  22431. -ac_test_FFLAGS=${FFLAGS+set}
  22432. -ac_save_FFLAGS=$FFLAGS
  22433. -FFLAGS=
  22434. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  22435. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  22436. -if test "${ac_cv_prog_f77_g+set}" = set; then
  22437. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22438. -else
  22439. - FFLAGS=-g
  22440. -cat >conftest.$ac_ext <<_ACEOF
  22441. - program main
  22442. - end
  22443. -_ACEOF
  22444. -rm -f conftest.$ac_objext
  22445. -if { (ac_try="$ac_compile"
  22446. -case "(($ac_try" in
  22447. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22448. - *) ac_try_echo=$ac_try;;
  22449. -esac
  22450. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22451. - (eval "$ac_compile") 2>conftest.er1
  22452. - ac_status=$?
  22453. - grep -v '^ *+' conftest.er1 >conftest.err
  22454. - rm -f conftest.er1
  22455. - cat conftest.err >&5
  22456. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22457. - (exit $ac_status); } && {
  22458. - test -z "$ac_f77_werror_flag" ||
  22459. - test ! -s conftest.err
  22460. - } && test -s conftest.$ac_objext; then
  22461. - ac_cv_prog_f77_g=yes
  22462. +
  22463. +
  22464. +
  22465. +
  22466. +
  22467. +if test -n "$ac_tool_prefix"; then
  22468. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  22469. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  22470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22471. +$as_echo_n "checking for $ac_word... " >&6; }
  22472. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  22473. + $as_echo_n "(cached) " >&6
  22474. else
  22475. - echo "$as_me: failed program was:" >&5
  22476. -sed 's/^/| /' conftest.$ac_ext >&5
  22477. + if test -n "$STRIP"; then
  22478. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  22479. +else
  22480. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22481. +for as_dir in $PATH
  22482. +do
  22483. + IFS=$as_save_IFS
  22484. + test -z "$as_dir" && as_dir=.
  22485. + for ac_exec_ext in '' $ac_executable_extensions; do
  22486. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22487. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  22488. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22489. + break 2
  22490. + fi
  22491. +done
  22492. + done
  22493. +IFS=$as_save_IFS
  22494. - ac_cv_prog_f77_g=no
  22495. +fi
  22496. +fi
  22497. +STRIP=$ac_cv_prog_STRIP
  22498. +if test -n "$STRIP"; then
  22499. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  22500. +$as_echo "$STRIP" >&6; }
  22501. +else
  22502. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22503. +$as_echo "no" >&6; }
  22504. fi
  22505. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22506. fi
  22507. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  22508. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  22509. -if test "$ac_test_FFLAGS" = set; then
  22510. - FFLAGS=$ac_save_FFLAGS
  22511. -elif test $ac_cv_prog_f77_g = yes; then
  22512. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  22513. - FFLAGS="-g -O2"
  22514. - else
  22515. - FFLAGS="-g"
  22516. +if test -z "$ac_cv_prog_STRIP"; then
  22517. + ac_ct_STRIP=$STRIP
  22518. + # Extract the first word of "strip", so it can be a program name with args.
  22519. +set dummy strip; ac_word=$2
  22520. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22521. +$as_echo_n "checking for $ac_word... " >&6; }
  22522. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  22523. + $as_echo_n "(cached) " >&6
  22524. +else
  22525. + if test -n "$ac_ct_STRIP"; then
  22526. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  22527. +else
  22528. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22529. +for as_dir in $PATH
  22530. +do
  22531. + IFS=$as_save_IFS
  22532. + test -z "$as_dir" && as_dir=.
  22533. + for ac_exec_ext in '' $ac_executable_extensions; do
  22534. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22535. + ac_cv_prog_ac_ct_STRIP="strip"
  22536. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22537. + break 2
  22538. fi
  22539. +done
  22540. + done
  22541. +IFS=$as_save_IFS
  22542. +
  22543. +fi
  22544. +fi
  22545. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  22546. +if test -n "$ac_ct_STRIP"; then
  22547. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  22548. +$as_echo "$ac_ct_STRIP" >&6; }
  22549. else
  22550. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  22551. - FFLAGS="-O2"
  22552. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22553. +$as_echo "no" >&6; }
  22554. +fi
  22555. +
  22556. + if test "x$ac_ct_STRIP" = x; then
  22557. + STRIP=":"
  22558. else
  22559. - FFLAGS=
  22560. + case $cross_compiling:$ac_tool_warned in
  22561. +yes:)
  22562. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22563. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22564. +ac_tool_warned=yes ;;
  22565. +esac
  22566. + STRIP=$ac_ct_STRIP
  22567. fi
  22568. +else
  22569. + STRIP="$ac_cv_prog_STRIP"
  22570. fi
  22571. -G77=`test $ac_compiler_gnu = yes && echo yes`
  22572. -ac_ext=c
  22573. -ac_cpp='$CPP $CPPFLAGS'
  22574. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22575. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22576. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22577. +test -z "$STRIP" && STRIP=:
  22578. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  22579. -# find the maximum length of command line arguments
  22580. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  22581. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  22582. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  22583. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22584. -else
  22585. - i=0
  22586. - teststring="ABCD"
  22587. - case $build_os in
  22588. - msdosdjgpp*)
  22589. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  22590. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  22591. - # during glob expansion). Even if it were fixed, the result of this
  22592. - # check would be larger than it should be.
  22593. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  22594. - ;;
  22595. - gnu*)
  22596. - # Under GNU Hurd, this test is not required because there is
  22597. - # no limit to the length of command line arguments.
  22598. - # Libtool will interpret -1 as no limit whatsoever
  22599. - lt_cv_sys_max_cmd_len=-1;
  22600. - ;;
  22601. +if test -n "$ac_tool_prefix"; then
  22602. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  22603. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  22604. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22605. +$as_echo_n "checking for $ac_word... " >&6; }
  22606. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  22607. + $as_echo_n "(cached) " >&6
  22608. +else
  22609. + if test -n "$RANLIB"; then
  22610. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  22611. +else
  22612. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22613. +for as_dir in $PATH
  22614. +do
  22615. + IFS=$as_save_IFS
  22616. + test -z "$as_dir" && as_dir=.
  22617. + for ac_exec_ext in '' $ac_executable_extensions; do
  22618. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22619. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  22620. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22621. + break 2
  22622. + fi
  22623. +done
  22624. + done
  22625. +IFS=$as_save_IFS
  22626. - cygwin* | mingw*)
  22627. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  22628. - # about 5 minutes as the teststring grows exponentially.
  22629. - # Worse, since 9x/ME are not pre-emptively multitasking,
  22630. - # you end up with a "frozen" computer, even though with patience
  22631. - # the test eventually succeeds (with a max line length of 256k).
  22632. - # Instead, let's just punt: use the minimum linelength reported by
  22633. - # all of the supported platforms: 8192 (on NT/2K/XP).
  22634. - lt_cv_sys_max_cmd_len=8192;
  22635. - ;;
  22636. +fi
  22637. +fi
  22638. +RANLIB=$ac_cv_prog_RANLIB
  22639. +if test -n "$RANLIB"; then
  22640. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  22641. +$as_echo "$RANLIB" >&6; }
  22642. +else
  22643. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22644. +$as_echo "no" >&6; }
  22645. +fi
  22646. - amigaos*)
  22647. - # On AmigaOS with pdksh, this test takes hours, literally.
  22648. - # So we just punt and use a minimum line length of 8192.
  22649. - lt_cv_sys_max_cmd_len=8192;
  22650. - ;;
  22651. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  22652. - # This has been around since 386BSD, at least. Likely further.
  22653. - if test -x /sbin/sysctl; then
  22654. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  22655. - elif test -x /usr/sbin/sysctl; then
  22656. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  22657. - else
  22658. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  22659. - fi
  22660. - # And add a safety zone
  22661. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  22662. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  22663. - ;;
  22664. +fi
  22665. +if test -z "$ac_cv_prog_RANLIB"; then
  22666. + ac_ct_RANLIB=$RANLIB
  22667. + # Extract the first word of "ranlib", so it can be a program name with args.
  22668. +set dummy ranlib; ac_word=$2
  22669. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22670. +$as_echo_n "checking for $ac_word... " >&6; }
  22671. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  22672. + $as_echo_n "(cached) " >&6
  22673. +else
  22674. + if test -n "$ac_ct_RANLIB"; then
  22675. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  22676. +else
  22677. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22678. +for as_dir in $PATH
  22679. +do
  22680. + IFS=$as_save_IFS
  22681. + test -z "$as_dir" && as_dir=.
  22682. + for ac_exec_ext in '' $ac_executable_extensions; do
  22683. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22684. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  22685. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22686. + break 2
  22687. + fi
  22688. +done
  22689. + done
  22690. +IFS=$as_save_IFS
  22691. - interix*)
  22692. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  22693. - lt_cv_sys_max_cmd_len=196608
  22694. - ;;
  22695. +fi
  22696. +fi
  22697. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  22698. +if test -n "$ac_ct_RANLIB"; then
  22699. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  22700. +$as_echo "$ac_ct_RANLIB" >&6; }
  22701. +else
  22702. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22703. +$as_echo "no" >&6; }
  22704. +fi
  22705. - osf*)
  22706. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  22707. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  22708. - # nice to cause kernel panics so lets avoid the loop below.
  22709. - # First set a reasonable default.
  22710. - lt_cv_sys_max_cmd_len=16384
  22711. - #
  22712. - if test -x /sbin/sysconfig; then
  22713. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  22714. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  22715. - esac
  22716. - fi
  22717. - ;;
  22718. - sco3.2v5*)
  22719. - lt_cv_sys_max_cmd_len=102400
  22720. - ;;
  22721. - sysv5* | sco5v6* | sysv4.2uw2*)
  22722. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  22723. - if test -n "$kargmax"; then
  22724. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  22725. - else
  22726. - lt_cv_sys_max_cmd_len=32768
  22727. - fi
  22728. + if test "x$ac_ct_RANLIB" = x; then
  22729. + RANLIB=":"
  22730. + else
  22731. + case $cross_compiling:$ac_tool_warned in
  22732. +yes:)
  22733. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22734. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22735. +ac_tool_warned=yes ;;
  22736. +esac
  22737. + RANLIB=$ac_ct_RANLIB
  22738. + fi
  22739. +else
  22740. + RANLIB="$ac_cv_prog_RANLIB"
  22741. +fi
  22742. +
  22743. +test -z "$RANLIB" && RANLIB=:
  22744. +
  22745. +
  22746. +
  22747. +
  22748. +
  22749. +
  22750. +# Determine commands to create old-style static archives.
  22751. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  22752. +old_postinstall_cmds='chmod 644 $oldlib'
  22753. +old_postuninstall_cmds=
  22754. +
  22755. +if test -n "$RANLIB"; then
  22756. + case $host_os in
  22757. + openbsd*)
  22758. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  22759. ;;
  22760. *)
  22761. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  22762. - if test -n "$lt_cv_sys_max_cmd_len"; then
  22763. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  22764. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  22765. - else
  22766. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  22767. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  22768. - = "XX$teststring") >/dev/null 2>&1 &&
  22769. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  22770. - lt_cv_sys_max_cmd_len=$new_result &&
  22771. - test $i != 17 # 1/2 MB should be enough
  22772. - do
  22773. - i=`expr $i + 1`
  22774. - teststring=$teststring$teststring
  22775. - done
  22776. - teststring=
  22777. - # Add a significant safety factor because C++ compilers can tack on massive
  22778. - # amounts of additional arguments before passing them to the linker.
  22779. - # It appears as though 1/2 is a usable value.
  22780. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  22781. - fi
  22782. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  22783. ;;
  22784. esac
  22785. -
  22786. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  22787. fi
  22788. -if test -n $lt_cv_sys_max_cmd_len ; then
  22789. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  22790. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  22791. -else
  22792. - { echo "$as_me:$LINENO: result: none" >&5
  22793. -echo "${ECHO_T}none" >&6; }
  22794. -fi
  22795. +
  22796. +
  22797. +
  22798. +
  22799. +
  22800. +
  22801. +
  22802. +
  22803. +
  22804. +
  22805. +
  22806. +
  22807. +
  22808. +
  22809. +
  22810. +
  22811. +
  22812. +
  22813. +
  22814. +
  22815. +
  22816. +
  22817. +
  22818. +
  22819. +
  22820. +
  22821. +
  22822. +
  22823. +# If no C compiler was specified, use CC.
  22824. +LTCC=${LTCC-"$CC"}
  22825. +
  22826. +# If no C compiler flags were specified, use CFLAGS.
  22827. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  22828. +
  22829. +# Allow CC to be a program name with arguments.
  22830. +compiler=$CC
  22831. +
  22832. +
  22833. # Check for command to grab the raw symbol name followed by C symbol from nm.
  22834. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  22835. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  22836. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  22837. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22838. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  22839. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  22840. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  22841. + $as_echo_n "(cached) " >&6
  22842. else
  22843. # These are sane defaults that work on at least a few old systems.
  22844. @@ -6652,33 +5880,18 @@
  22845. # Regexp to match symbols that can be accessed directly from C.
  22846. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  22847. -# Transform an extracted symbol line into a proper C declaration
  22848. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  22849. -
  22850. -# Transform an extracted symbol line into symbol name and symbol address
  22851. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  22852. -
  22853. # Define system-specific variables.
  22854. case $host_os in
  22855. aix*)
  22856. symcode='[BCDT]'
  22857. ;;
  22858. -cygwin* | mingw* | pw32*)
  22859. +cygwin* | mingw* | pw32* | cegcc*)
  22860. symcode='[ABCDGISTW]'
  22861. ;;
  22862. -hpux*) # Its linker distinguishes data from code symbols
  22863. +hpux*)
  22864. if test "$host_cpu" = ia64; then
  22865. symcode='[ABCDEGRST]'
  22866. fi
  22867. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22868. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  22869. - ;;
  22870. -linux* | k*bsd*-gnu)
  22871. - if test "$host_cpu" = ia64; then
  22872. - symcode='[ABCDGIRSTW]'
  22873. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22874. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  22875. - fi
  22876. ;;
  22877. irix* | nonstopux*)
  22878. symcode='[BCDEGRST]'
  22879. @@ -6703,57 +5916,85 @@
  22880. ;;
  22881. esac
  22882. +# If we're using GNU nm, then use its standard symbol codes.
  22883. +case `$NM -V 2>&1` in
  22884. +*GNU* | *'with BFD'*)
  22885. + symcode='[ABCDGIRSTW]' ;;
  22886. +esac
  22887. +
  22888. +# Transform an extracted symbol line into a proper C declaration.
  22889. +# Some systems (esp. on ia64) link data and code symbols differently,
  22890. +# so use this general approach.
  22891. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22892. +
  22893. +# Transform an extracted symbol line into symbol name and symbol address
  22894. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  22895. +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'"
  22896. +
  22897. # Handle CRLF in mingw tool chain
  22898. opt_cr=
  22899. case $build_os in
  22900. mingw*)
  22901. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  22902. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  22903. ;;
  22904. esac
  22905. -# If we're using GNU nm, then use its standard symbol codes.
  22906. -case `$NM -V 2>&1` in
  22907. -*GNU* | *'with BFD'*)
  22908. - symcode='[ABCDGIRSTW]' ;;
  22909. -esac
  22910. -
  22911. -# Try without a prefix undercore, then with it.
  22912. +# Try without a prefix underscore, then with it.
  22913. for ac_symprfx in "" "_"; do
  22914. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  22915. symxfrm="\\1 $ac_symprfx\\2 \\2"
  22916. # Write the raw and C identifiers.
  22917. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  22918. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  22919. + # Fake it for dumpbin and say T for any non-static function
  22920. + # and D for any global variable.
  22921. + # Also find C++ and __fastcall symbols from MSVC++,
  22922. + # which start with @ or ?.
  22923. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  22924. +" {last_section=section; section=\$ 3};"\
  22925. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  22926. +" \$ 0!~/External *\|/{next};"\
  22927. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  22928. +" {if(hide[section]) next};"\
  22929. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  22930. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  22931. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  22932. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  22933. +" ' prfx=^$ac_symprfx"
  22934. + else
  22935. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  22936. + fi
  22937. # Check to see that the pipe works correctly.
  22938. pipe_works=no
  22939. rm -f conftest*
  22940. - cat > conftest.$ac_ext <<EOF
  22941. + cat > conftest.$ac_ext <<_LT_EOF
  22942. #ifdef __cplusplus
  22943. extern "C" {
  22944. #endif
  22945. char nm_test_var;
  22946. -void nm_test_func(){}
  22947. +void nm_test_func(void);
  22948. +void nm_test_func(void){}
  22949. #ifdef __cplusplus
  22950. }
  22951. #endif
  22952. int main(){nm_test_var='a';nm_test_func();return(0);}
  22953. -EOF
  22954. +_LT_EOF
  22955. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22956. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22957. (eval $ac_compile) 2>&5
  22958. ac_status=$?
  22959. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22960. - (exit $ac_status); }; then
  22961. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22962. + test $ac_status = 0; }; then
  22963. # Now try to grab the symbols.
  22964. nlist=conftest.nm
  22965. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  22966. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  22967. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  22968. ac_status=$?
  22969. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22970. - (exit $ac_status); } && test -s "$nlist"; then
  22971. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22972. + test $ac_status = 0; } && test -s "$nlist"; then
  22973. # Try sorting and uniquifying the output.
  22974. if sort "$nlist" | uniq > "$nlist"T; then
  22975. mv -f "$nlist"T "$nlist"
  22976. @@ -6762,53 +6003,55 @@
  22977. fi
  22978. # Make sure that we snagged all the symbols we need.
  22979. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  22980. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  22981. - cat <<EOF > conftest.$ac_ext
  22982. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  22983. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  22984. + cat <<_LT_EOF > conftest.$ac_ext
  22985. #ifdef __cplusplus
  22986. extern "C" {
  22987. #endif
  22988. -EOF
  22989. +_LT_EOF
  22990. # Now generate the symbol file.
  22991. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  22992. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  22993. - cat <<EOF >> conftest.$ac_ext
  22994. -#if defined (__STDC__) && __STDC__
  22995. -# define lt_ptr_t void *
  22996. -#else
  22997. -# define lt_ptr_t char *
  22998. -# define const
  22999. -#endif
  23000. + cat <<_LT_EOF >> conftest.$ac_ext
  23001. -/* The mapping between symbol names and symbols. */
  23002. +/* The mapping between symbol names and symbols. */
  23003. const struct {
  23004. const char *name;
  23005. - lt_ptr_t address;
  23006. + void *address;
  23007. }
  23008. -lt_preloaded_symbols[] =
  23009. +lt__PROGRAM__LTX_preloaded_symbols[] =
  23010. {
  23011. -EOF
  23012. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  23013. - cat <<\EOF >> conftest.$ac_ext
  23014. - {0, (lt_ptr_t) 0}
  23015. + { "@PROGRAM@", (void *) 0 },
  23016. +_LT_EOF
  23017. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  23018. + cat <<\_LT_EOF >> conftest.$ac_ext
  23019. + {0, (void *) 0}
  23020. };
  23021. +/* This works around a problem in FreeBSD linker */
  23022. +#ifdef FREEBSD_WORKAROUND
  23023. +static const void *lt_preloaded_setup() {
  23024. + return lt__PROGRAM__LTX_preloaded_symbols;
  23025. +}
  23026. +#endif
  23027. +
  23028. #ifdef __cplusplus
  23029. }
  23030. #endif
  23031. -EOF
  23032. +_LT_EOF
  23033. # Now try linking the two files.
  23034. mv conftest.$ac_objext conftstm.$ac_objext
  23035. lt_save_LIBS="$LIBS"
  23036. lt_save_CFLAGS="$CFLAGS"
  23037. LIBS="conftstm.$ac_objext"
  23038. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  23039. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23040. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  23041. (eval $ac_link) 2>&5
  23042. ac_status=$?
  23043. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23044. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  23045. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23046. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  23047. pipe_works=yes
  23048. fi
  23049. LIBS="$lt_save_LIBS"
  23050. @@ -6826,7 +6069,7 @@
  23051. echo "$progname: failed program was:" >&5
  23052. cat conftest.$ac_ext >&5
  23053. fi
  23054. - rm -f conftest* conftst*
  23055. + rm -rf conftest* conftst*
  23056. # Do not use the global_symbol_pipe unless it works.
  23057. if test "$pipe_works" = yes; then
  23058. @@ -6842,11400 +6085,3165 @@
  23059. lt_cv_sys_global_symbol_to_cdecl=
  23060. fi
  23061. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  23062. - { echo "$as_me:$LINENO: result: failed" >&5
  23063. -echo "${ECHO_T}failed" >&6; }
  23064. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  23065. +$as_echo "failed" >&6; }
  23066. else
  23067. - { echo "$as_me:$LINENO: result: ok" >&5
  23068. -echo "${ECHO_T}ok" >&6; }
  23069. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  23070. +$as_echo "ok" >&6; }
  23071. fi
  23072. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  23073. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  23074. -if test "${lt_cv_objdir+set}" = set; then
  23075. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23076. -else
  23077. - rm -f .libs 2>/dev/null
  23078. -mkdir .libs 2>/dev/null
  23079. -if test -d .libs; then
  23080. - lt_cv_objdir=.libs
  23081. -else
  23082. - # MS-DOS does not allow filenames that begin with a dot.
  23083. - lt_cv_objdir=_libs
  23084. -fi
  23085. -rmdir .libs 2>/dev/null
  23086. -fi
  23087. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  23088. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  23089. -objdir=$lt_cv_objdir
  23090. -case $host_os in
  23091. -aix3*)
  23092. - # AIX sometimes has problems with the GCC collect2 program. For some
  23093. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  23094. - # vanish in a puff of smoke.
  23095. - if test "X${COLLECT_NAMES+set}" != Xset; then
  23096. - COLLECT_NAMES=
  23097. - export COLLECT_NAMES
  23098. +
  23099. +
  23100. +
  23101. +
  23102. +
  23103. +
  23104. +
  23105. +
  23106. +
  23107. +
  23108. +
  23109. +
  23110. +
  23111. +
  23112. +
  23113. +
  23114. +# Check whether --enable-libtool-lock was given.
  23115. +if test "${enable_libtool_lock+set}" = set; then :
  23116. + enableval=$enable_libtool_lock;
  23117. +fi
  23118. +
  23119. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  23120. +
  23121. +# Some flags need to be propagated to the compiler or linker for good
  23122. +# libtool support.
  23123. +case $host in
  23124. +ia64-*-hpux*)
  23125. + # Find out which ABI we are using.
  23126. + echo 'int i;' > conftest.$ac_ext
  23127. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23128. + (eval $ac_compile) 2>&5
  23129. + ac_status=$?
  23130. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23131. + test $ac_status = 0; }; then
  23132. + case `/usr/bin/file conftest.$ac_objext` in
  23133. + *ELF-32*)
  23134. + HPUX_IA64_MODE="32"
  23135. + ;;
  23136. + *ELF-64*)
  23137. + HPUX_IA64_MODE="64"
  23138. + ;;
  23139. + esac
  23140. fi
  23141. + rm -rf conftest*
  23142. + ;;
  23143. +*-*-irix6*)
  23144. + # Find out which ABI we are using.
  23145. + echo '#line 6147 "configure"' > conftest.$ac_ext
  23146. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23147. + (eval $ac_compile) 2>&5
  23148. + ac_status=$?
  23149. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23150. + test $ac_status = 0; }; then
  23151. + if test "$lt_cv_prog_gnu_ld" = yes; then
  23152. + case `/usr/bin/file conftest.$ac_objext` in
  23153. + *32-bit*)
  23154. + LD="${LD-ld} -melf32bsmip"
  23155. + ;;
  23156. + *N32*)
  23157. + LD="${LD-ld} -melf32bmipn32"
  23158. + ;;
  23159. + *64-bit*)
  23160. + LD="${LD-ld} -melf64bmip"
  23161. + ;;
  23162. + esac
  23163. + else
  23164. + case `/usr/bin/file conftest.$ac_objext` in
  23165. + *32-bit*)
  23166. + LD="${LD-ld} -32"
  23167. + ;;
  23168. + *N32*)
  23169. + LD="${LD-ld} -n32"
  23170. + ;;
  23171. + *64-bit*)
  23172. + LD="${LD-ld} -64"
  23173. + ;;
  23174. + esac
  23175. + fi
  23176. + fi
  23177. + rm -rf conftest*
  23178. ;;
  23179. -esac
  23180. -# Sed substitution that helps us do robust quoting. It backslashifies
  23181. -# metacharacters that are still active within double-quoted strings.
  23182. -Xsed='sed -e 1s/^X//'
  23183. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  23184. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  23185. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  23186. + # Find out which ABI we are using.
  23187. + echo 'int i;' > conftest.$ac_ext
  23188. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23189. + (eval $ac_compile) 2>&5
  23190. + ac_status=$?
  23191. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23192. + test $ac_status = 0; }; then
  23193. + case `/usr/bin/file conftest.o` in
  23194. + *32-bit*)
  23195. + case $host in
  23196. + x86_64-*kfreebsd*-gnu)
  23197. + LD="${LD-ld} -m elf_i386_fbsd"
  23198. + ;;
  23199. + x86_64-*linux*)
  23200. + LD="${LD-ld} -m elf_i386"
  23201. + ;;
  23202. + ppc64-*linux*|powerpc64-*linux*)
  23203. + LD="${LD-ld} -m elf32ppclinux"
  23204. + ;;
  23205. + s390x-*linux*)
  23206. + LD="${LD-ld} -m elf_s390"
  23207. + ;;
  23208. + sparc64-*linux*)
  23209. + LD="${LD-ld} -m elf32_sparc"
  23210. + ;;
  23211. + esac
  23212. + ;;
  23213. + *64-bit*)
  23214. + case $host in
  23215. + x86_64-*kfreebsd*-gnu)
  23216. + LD="${LD-ld} -m elf_x86_64_fbsd"
  23217. + ;;
  23218. + x86_64-*linux*)
  23219. + LD="${LD-ld} -m elf_x86_64"
  23220. + ;;
  23221. + ppc*-*linux*|powerpc*-*linux*)
  23222. + LD="${LD-ld} -m elf64ppc"
  23223. + ;;
  23224. + s390*-*linux*|s390*-*tpf*)
  23225. + LD="${LD-ld} -m elf64_s390"
  23226. + ;;
  23227. + sparc*-*linux*)
  23228. + LD="${LD-ld} -m elf64_sparc"
  23229. + ;;
  23230. + esac
  23231. + ;;
  23232. + esac
  23233. + fi
  23234. + rm -rf conftest*
  23235. + ;;
  23236. -# Same as above, but do not quote variable references.
  23237. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  23238. +*-*-sco3.2v5*)
  23239. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  23240. + SAVE_CFLAGS="$CFLAGS"
  23241. + CFLAGS="$CFLAGS -belf"
  23242. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  23243. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  23244. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  23245. + $as_echo_n "(cached) " >&6
  23246. +else
  23247. + ac_ext=c
  23248. +ac_cpp='$CPP $CPPFLAGS'
  23249. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23250. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23251. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23252. -# Sed substitution to delay expansion of an escaped shell variable in a
  23253. -# double_quote_subst'ed string.
  23254. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  23255. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23256. +/* end confdefs.h. */
  23257. -# Sed substitution to avoid accidental globbing in evaled expressions
  23258. -no_glob_subst='s/\*/\\\*/g'
  23259. +int
  23260. +main ()
  23261. +{
  23262. -# Constants:
  23263. -rm="rm -f"
  23264. + ;
  23265. + return 0;
  23266. +}
  23267. +_ACEOF
  23268. +if ac_fn_c_try_link "$LINENO"; then :
  23269. + lt_cv_cc_needs_belf=yes
  23270. +else
  23271. + lt_cv_cc_needs_belf=no
  23272. +fi
  23273. +rm -f core conftest.err conftest.$ac_objext \
  23274. + conftest$ac_exeext conftest.$ac_ext
  23275. + ac_ext=c
  23276. +ac_cpp='$CPP $CPPFLAGS'
  23277. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23278. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23279. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23280. -# Global variables:
  23281. -default_ofile=libtool
  23282. -can_build_shared=yes
  23283. +fi
  23284. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  23285. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  23286. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  23287. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  23288. + CFLAGS="$SAVE_CFLAGS"
  23289. + fi
  23290. + ;;
  23291. +sparc*-*solaris*)
  23292. + # Find out which ABI we are using.
  23293. + echo 'int i;' > conftest.$ac_ext
  23294. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23295. + (eval $ac_compile) 2>&5
  23296. + ac_status=$?
  23297. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23298. + test $ac_status = 0; }; then
  23299. + case `/usr/bin/file conftest.o` in
  23300. + *64-bit*)
  23301. + case $lt_cv_prog_gnu_ld in
  23302. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  23303. + *)
  23304. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  23305. + LD="${LD-ld} -64"
  23306. + fi
  23307. + ;;
  23308. + esac
  23309. + ;;
  23310. + esac
  23311. + fi
  23312. + rm -rf conftest*
  23313. + ;;
  23314. +esac
  23315. -# All known linkers require a `.a' archive for static linking (except MSVC,
  23316. -# which needs '.lib').
  23317. -libext=a
  23318. -ltmain="$ac_aux_dir/ltmain.sh"
  23319. -ofile="$default_ofile"
  23320. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  23321. +need_locks="$enable_libtool_lock"
  23322. -if test -n "$ac_tool_prefix"; then
  23323. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  23324. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  23325. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23326. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23327. -if test "${ac_cv_prog_AR+set}" = set; then
  23328. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23329. +
  23330. + case $host_os in
  23331. + rhapsody* | darwin*)
  23332. + if test -n "$ac_tool_prefix"; then
  23333. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  23334. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  23335. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23336. +$as_echo_n "checking for $ac_word... " >&6; }
  23337. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  23338. + $as_echo_n "(cached) " >&6
  23339. else
  23340. - if test -n "$AR"; then
  23341. - ac_cv_prog_AR="$AR" # Let the user override the test.
  23342. + if test -n "$DSYMUTIL"; then
  23343. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  23344. else
  23345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23346. for as_dir in $PATH
  23347. do
  23348. IFS=$as_save_IFS
  23349. test -z "$as_dir" && as_dir=.
  23350. - for ac_exec_ext in '' $ac_executable_extensions; do
  23351. + for ac_exec_ext in '' $ac_executable_extensions; do
  23352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23353. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  23354. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23355. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  23356. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23357. break 2
  23358. fi
  23359. done
  23360. -done
  23361. + done
  23362. IFS=$as_save_IFS
  23363. fi
  23364. fi
  23365. -AR=$ac_cv_prog_AR
  23366. -if test -n "$AR"; then
  23367. - { echo "$as_me:$LINENO: result: $AR" >&5
  23368. -echo "${ECHO_T}$AR" >&6; }
  23369. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  23370. +if test -n "$DSYMUTIL"; then
  23371. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  23372. +$as_echo "$DSYMUTIL" >&6; }
  23373. else
  23374. - { echo "$as_me:$LINENO: result: no" >&5
  23375. -echo "${ECHO_T}no" >&6; }
  23376. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23377. +$as_echo "no" >&6; }
  23378. fi
  23379. fi
  23380. -if test -z "$ac_cv_prog_AR"; then
  23381. - ac_ct_AR=$AR
  23382. - # Extract the first word of "ar", so it can be a program name with args.
  23383. -set dummy ar; ac_word=$2
  23384. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23385. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23386. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  23387. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23388. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  23389. + ac_ct_DSYMUTIL=$DSYMUTIL
  23390. + # Extract the first word of "dsymutil", so it can be a program name with args.
  23391. +set dummy dsymutil; ac_word=$2
  23392. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23393. +$as_echo_n "checking for $ac_word... " >&6; }
  23394. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  23395. + $as_echo_n "(cached) " >&6
  23396. else
  23397. - if test -n "$ac_ct_AR"; then
  23398. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  23399. + if test -n "$ac_ct_DSYMUTIL"; then
  23400. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  23401. else
  23402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23403. for as_dir in $PATH
  23404. do
  23405. IFS=$as_save_IFS
  23406. test -z "$as_dir" && as_dir=.
  23407. - for ac_exec_ext in '' $ac_executable_extensions; do
  23408. + for ac_exec_ext in '' $ac_executable_extensions; do
  23409. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23410. - ac_cv_prog_ac_ct_AR="ar"
  23411. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23412. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  23413. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23414. break 2
  23415. fi
  23416. done
  23417. -done
  23418. + done
  23419. IFS=$as_save_IFS
  23420. fi
  23421. fi
  23422. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  23423. -if test -n "$ac_ct_AR"; then
  23424. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  23425. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  23426. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  23427. +if test -n "$ac_ct_DSYMUTIL"; then
  23428. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  23429. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  23430. else
  23431. - { echo "$as_me:$LINENO: result: no" >&5
  23432. -echo "${ECHO_T}no" >&6; }
  23433. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23434. +$as_echo "no" >&6; }
  23435. fi
  23436. - if test "x$ac_ct_AR" = x; then
  23437. - AR="false"
  23438. + if test "x$ac_ct_DSYMUTIL" = x; then
  23439. + DSYMUTIL=":"
  23440. else
  23441. case $cross_compiling:$ac_tool_warned in
  23442. yes:)
  23443. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23444. -whose name does not start with the host triplet. If you think this
  23445. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23446. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23447. -whose name does not start with the host triplet. If you think this
  23448. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23449. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23450. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23451. ac_tool_warned=yes ;;
  23452. esac
  23453. - AR=$ac_ct_AR
  23454. + DSYMUTIL=$ac_ct_DSYMUTIL
  23455. fi
  23456. else
  23457. - AR="$ac_cv_prog_AR"
  23458. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  23459. fi
  23460. -if test -n "$ac_tool_prefix"; then
  23461. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  23462. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  23463. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23464. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23465. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  23466. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23467. + if test -n "$ac_tool_prefix"; then
  23468. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  23469. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  23470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23471. +$as_echo_n "checking for $ac_word... " >&6; }
  23472. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  23473. + $as_echo_n "(cached) " >&6
  23474. else
  23475. - if test -n "$RANLIB"; then
  23476. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  23477. + if test -n "$NMEDIT"; then
  23478. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  23479. else
  23480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23481. for as_dir in $PATH
  23482. do
  23483. IFS=$as_save_IFS
  23484. test -z "$as_dir" && as_dir=.
  23485. - for ac_exec_ext in '' $ac_executable_extensions; do
  23486. + for ac_exec_ext in '' $ac_executable_extensions; do
  23487. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23488. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  23489. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23490. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  23491. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23492. break 2
  23493. fi
  23494. done
  23495. -done
  23496. + done
  23497. IFS=$as_save_IFS
  23498. fi
  23499. fi
  23500. -RANLIB=$ac_cv_prog_RANLIB
  23501. -if test -n "$RANLIB"; then
  23502. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  23503. -echo "${ECHO_T}$RANLIB" >&6; }
  23504. +NMEDIT=$ac_cv_prog_NMEDIT
  23505. +if test -n "$NMEDIT"; then
  23506. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  23507. +$as_echo "$NMEDIT" >&6; }
  23508. else
  23509. - { echo "$as_me:$LINENO: result: no" >&5
  23510. -echo "${ECHO_T}no" >&6; }
  23511. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23512. +$as_echo "no" >&6; }
  23513. fi
  23514. fi
  23515. -if test -z "$ac_cv_prog_RANLIB"; then
  23516. - ac_ct_RANLIB=$RANLIB
  23517. - # Extract the first word of "ranlib", so it can be a program name with args.
  23518. -set dummy ranlib; ac_word=$2
  23519. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23520. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23521. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  23522. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23523. +if test -z "$ac_cv_prog_NMEDIT"; then
  23524. + ac_ct_NMEDIT=$NMEDIT
  23525. + # Extract the first word of "nmedit", so it can be a program name with args.
  23526. +set dummy nmedit; ac_word=$2
  23527. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23528. +$as_echo_n "checking for $ac_word... " >&6; }
  23529. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  23530. + $as_echo_n "(cached) " >&6
  23531. else
  23532. - if test -n "$ac_ct_RANLIB"; then
  23533. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  23534. + if test -n "$ac_ct_NMEDIT"; then
  23535. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  23536. else
  23537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23538. for as_dir in $PATH
  23539. do
  23540. IFS=$as_save_IFS
  23541. test -z "$as_dir" && as_dir=.
  23542. - for ac_exec_ext in '' $ac_executable_extensions; do
  23543. + for ac_exec_ext in '' $ac_executable_extensions; do
  23544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23545. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  23546. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23547. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  23548. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23549. break 2
  23550. fi
  23551. done
  23552. -done
  23553. + done
  23554. IFS=$as_save_IFS
  23555. fi
  23556. fi
  23557. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  23558. -if test -n "$ac_ct_RANLIB"; then
  23559. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  23560. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  23561. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  23562. +if test -n "$ac_ct_NMEDIT"; then
  23563. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  23564. +$as_echo "$ac_ct_NMEDIT" >&6; }
  23565. else
  23566. - { echo "$as_me:$LINENO: result: no" >&5
  23567. -echo "${ECHO_T}no" >&6; }
  23568. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23569. +$as_echo "no" >&6; }
  23570. fi
  23571. - if test "x$ac_ct_RANLIB" = x; then
  23572. - RANLIB=":"
  23573. + if test "x$ac_ct_NMEDIT" = x; then
  23574. + NMEDIT=":"
  23575. else
  23576. case $cross_compiling:$ac_tool_warned in
  23577. yes:)
  23578. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23579. -whose name does not start with the host triplet. If you think this
  23580. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23581. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23582. -whose name does not start with the host triplet. If you think this
  23583. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23584. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23585. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23586. ac_tool_warned=yes ;;
  23587. esac
  23588. - RANLIB=$ac_ct_RANLIB
  23589. + NMEDIT=$ac_ct_NMEDIT
  23590. fi
  23591. else
  23592. - RANLIB="$ac_cv_prog_RANLIB"
  23593. + NMEDIT="$ac_cv_prog_NMEDIT"
  23594. fi
  23595. -if test -n "$ac_tool_prefix"; then
  23596. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  23597. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  23598. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23599. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23600. -if test "${ac_cv_prog_STRIP+set}" = set; then
  23601. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23602. + if test -n "$ac_tool_prefix"; then
  23603. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  23604. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  23605. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23606. +$as_echo_n "checking for $ac_word... " >&6; }
  23607. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  23608. + $as_echo_n "(cached) " >&6
  23609. else
  23610. - if test -n "$STRIP"; then
  23611. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  23612. + if test -n "$LIPO"; then
  23613. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  23614. else
  23615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23616. for as_dir in $PATH
  23617. do
  23618. IFS=$as_save_IFS
  23619. test -z "$as_dir" && as_dir=.
  23620. - for ac_exec_ext in '' $ac_executable_extensions; do
  23621. + for ac_exec_ext in '' $ac_executable_extensions; do
  23622. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23623. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  23624. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23625. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  23626. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23627. break 2
  23628. fi
  23629. done
  23630. -done
  23631. + done
  23632. IFS=$as_save_IFS
  23633. fi
  23634. fi
  23635. -STRIP=$ac_cv_prog_STRIP
  23636. -if test -n "$STRIP"; then
  23637. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  23638. -echo "${ECHO_T}$STRIP" >&6; }
  23639. +LIPO=$ac_cv_prog_LIPO
  23640. +if test -n "$LIPO"; then
  23641. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  23642. +$as_echo "$LIPO" >&6; }
  23643. else
  23644. - { echo "$as_me:$LINENO: result: no" >&5
  23645. -echo "${ECHO_T}no" >&6; }
  23646. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23647. +$as_echo "no" >&6; }
  23648. fi
  23649. fi
  23650. -if test -z "$ac_cv_prog_STRIP"; then
  23651. - ac_ct_STRIP=$STRIP
  23652. - # Extract the first word of "strip", so it can be a program name with args.
  23653. -set dummy strip; ac_word=$2
  23654. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23655. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23656. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  23657. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23658. +if test -z "$ac_cv_prog_LIPO"; then
  23659. + ac_ct_LIPO=$LIPO
  23660. + # Extract the first word of "lipo", so it can be a program name with args.
  23661. +set dummy lipo; ac_word=$2
  23662. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23663. +$as_echo_n "checking for $ac_word... " >&6; }
  23664. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  23665. + $as_echo_n "(cached) " >&6
  23666. else
  23667. - if test -n "$ac_ct_STRIP"; then
  23668. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23669. + if test -n "$ac_ct_LIPO"; then
  23670. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  23671. else
  23672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23673. for as_dir in $PATH
  23674. do
  23675. IFS=$as_save_IFS
  23676. test -z "$as_dir" && as_dir=.
  23677. - for ac_exec_ext in '' $ac_executable_extensions; do
  23678. + for ac_exec_ext in '' $ac_executable_extensions; do
  23679. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23680. - ac_cv_prog_ac_ct_STRIP="strip"
  23681. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23682. + ac_cv_prog_ac_ct_LIPO="lipo"
  23683. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23684. break 2
  23685. fi
  23686. done
  23687. -done
  23688. + done
  23689. IFS=$as_save_IFS
  23690. fi
  23691. fi
  23692. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23693. -if test -n "$ac_ct_STRIP"; then
  23694. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  23695. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  23696. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  23697. +if test -n "$ac_ct_LIPO"; then
  23698. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  23699. +$as_echo "$ac_ct_LIPO" >&6; }
  23700. else
  23701. - { echo "$as_me:$LINENO: result: no" >&5
  23702. -echo "${ECHO_T}no" >&6; }
  23703. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23704. +$as_echo "no" >&6; }
  23705. fi
  23706. - if test "x$ac_ct_STRIP" = x; then
  23707. - STRIP=":"
  23708. + if test "x$ac_ct_LIPO" = x; then
  23709. + LIPO=":"
  23710. else
  23711. case $cross_compiling:$ac_tool_warned in
  23712. yes:)
  23713. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23714. -whose name does not start with the host triplet. If you think this
  23715. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23716. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23717. -whose name does not start with the host triplet. If you think this
  23718. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23719. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23720. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23721. ac_tool_warned=yes ;;
  23722. esac
  23723. - STRIP=$ac_ct_STRIP
  23724. + LIPO=$ac_ct_LIPO
  23725. fi
  23726. else
  23727. - STRIP="$ac_cv_prog_STRIP"
  23728. + LIPO="$ac_cv_prog_LIPO"
  23729. fi
  23730. + if test -n "$ac_tool_prefix"; then
  23731. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  23732. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  23733. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23734. +$as_echo_n "checking for $ac_word... " >&6; }
  23735. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  23736. + $as_echo_n "(cached) " >&6
  23737. +else
  23738. + if test -n "$OTOOL"; then
  23739. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  23740. +else
  23741. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23742. +for as_dir in $PATH
  23743. +do
  23744. + IFS=$as_save_IFS
  23745. + test -z "$as_dir" && as_dir=.
  23746. + for ac_exec_ext in '' $ac_executable_extensions; do
  23747. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23748. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  23749. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23750. + break 2
  23751. + fi
  23752. +done
  23753. + done
  23754. +IFS=$as_save_IFS
  23755. -old_CC="$CC"
  23756. -old_CFLAGS="$CFLAGS"
  23757. +fi
  23758. +fi
  23759. +OTOOL=$ac_cv_prog_OTOOL
  23760. +if test -n "$OTOOL"; then
  23761. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  23762. +$as_echo "$OTOOL" >&6; }
  23763. +else
  23764. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23765. +$as_echo "no" >&6; }
  23766. +fi
  23767. -# Set sane defaults for various variables
  23768. -test -z "$AR" && AR=ar
  23769. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  23770. -test -z "$AS" && AS=as
  23771. -test -z "$CC" && CC=cc
  23772. -test -z "$LTCC" && LTCC=$CC
  23773. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  23774. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  23775. -test -z "$LD" && LD=ld
  23776. -test -z "$LN_S" && LN_S="ln -s"
  23777. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  23778. -test -z "$NM" && NM=nm
  23779. -test -z "$SED" && SED=sed
  23780. -test -z "$OBJDUMP" && OBJDUMP=objdump
  23781. -test -z "$RANLIB" && RANLIB=:
  23782. -test -z "$STRIP" && STRIP=:
  23783. -test -z "$ac_objext" && ac_objext=o
  23784. -
  23785. -# Determine commands to create old-style static archives.
  23786. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  23787. -old_postinstall_cmds='chmod 644 $oldlib'
  23788. -old_postuninstall_cmds=
  23789. -if test -n "$RANLIB"; then
  23790. - case $host_os in
  23791. - openbsd*)
  23792. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  23793. - ;;
  23794. - *)
  23795. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  23796. - ;;
  23797. - esac
  23798. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23799. fi
  23800. -
  23801. -for cc_temp in $compiler""; do
  23802. - case $cc_temp in
  23803. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23804. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23805. - \-*) ;;
  23806. - *) break;;
  23807. - esac
  23808. +if test -z "$ac_cv_prog_OTOOL"; then
  23809. + ac_ct_OTOOL=$OTOOL
  23810. + # Extract the first word of "otool", so it can be a program name with args.
  23811. +set dummy otool; ac_word=$2
  23812. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23813. +$as_echo_n "checking for $ac_word... " >&6; }
  23814. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  23815. + $as_echo_n "(cached) " >&6
  23816. +else
  23817. + if test -n "$ac_ct_OTOOL"; then
  23818. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  23819. +else
  23820. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23821. +for as_dir in $PATH
  23822. +do
  23823. + IFS=$as_save_IFS
  23824. + test -z "$as_dir" && as_dir=.
  23825. + for ac_exec_ext in '' $ac_executable_extensions; do
  23826. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23827. + ac_cv_prog_ac_ct_OTOOL="otool"
  23828. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23829. + break 2
  23830. + fi
  23831. done
  23832. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  23833. -
  23834. + done
  23835. +IFS=$as_save_IFS
  23836. -# Only perform the check for file, if the check method requires it
  23837. -case $deplibs_check_method in
  23838. -file_magic*)
  23839. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  23840. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  23841. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  23842. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  23843. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23844. +fi
  23845. +fi
  23846. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  23847. +if test -n "$ac_ct_OTOOL"; then
  23848. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  23849. +$as_echo "$ac_ct_OTOOL" >&6; }
  23850. else
  23851. - case $MAGIC_CMD in
  23852. -[\\/*] | ?:[\\/]*)
  23853. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23854. - ;;
  23855. -*)
  23856. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  23857. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23858. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23859. - for ac_dir in $ac_dummy; do
  23860. - IFS="$lt_save_ifs"
  23861. - test -z "$ac_dir" && ac_dir=.
  23862. - if test -f $ac_dir/${ac_tool_prefix}file; then
  23863. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  23864. - if test -n "$file_magic_test_file"; then
  23865. - case $deplibs_check_method in
  23866. - "file_magic "*)
  23867. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23868. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23869. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23870. - $EGREP "$file_magic_regex" > /dev/null; then
  23871. - :
  23872. - else
  23873. - cat <<EOF 1>&2
  23874. -
  23875. -*** Warning: the command libtool uses to detect shared libraries,
  23876. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  23877. -*** The result is that libtool may fail to recognize shared libraries
  23878. -*** as such. This will affect the creation of libtool libraries that
  23879. -*** depend on shared libraries, but programs linked with such libtool
  23880. -*** libraries will work regardless of this problem. Nevertheless, you
  23881. -*** may want to report the problem to your system manager and/or to
  23882. -*** bug-libtool@gnu.org
  23883. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23884. +$as_echo "no" >&6; }
  23885. +fi
  23886. -EOF
  23887. - fi ;;
  23888. - esac
  23889. - fi
  23890. - break
  23891. - fi
  23892. - done
  23893. - IFS="$lt_save_ifs"
  23894. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  23895. - ;;
  23896. + if test "x$ac_ct_OTOOL" = x; then
  23897. + OTOOL=":"
  23898. + else
  23899. + case $cross_compiling:$ac_tool_warned in
  23900. +yes:)
  23901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23902. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23903. +ac_tool_warned=yes ;;
  23904. esac
  23905. + OTOOL=$ac_ct_OTOOL
  23906. + fi
  23907. +else
  23908. + OTOOL="$ac_cv_prog_OTOOL"
  23909. fi
  23910. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23911. -if test -n "$MAGIC_CMD"; then
  23912. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  23913. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  23914. + if test -n "$ac_tool_prefix"; then
  23915. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  23916. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  23917. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23918. +$as_echo_n "checking for $ac_word... " >&6; }
  23919. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  23920. + $as_echo_n "(cached) " >&6
  23921. else
  23922. - { echo "$as_me:$LINENO: result: no" >&5
  23923. -echo "${ECHO_T}no" >&6; }
  23924. -fi
  23925. + if test -n "$OTOOL64"; then
  23926. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  23927. +else
  23928. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23929. +for as_dir in $PATH
  23930. +do
  23931. + IFS=$as_save_IFS
  23932. + test -z "$as_dir" && as_dir=.
  23933. + for ac_exec_ext in '' $ac_executable_extensions; do
  23934. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23935. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  23936. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23937. + break 2
  23938. + fi
  23939. +done
  23940. + done
  23941. +IFS=$as_save_IFS
  23942. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  23943. - if test -n "$ac_tool_prefix"; then
  23944. - { echo "$as_me:$LINENO: checking for file" >&5
  23945. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  23946. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  23947. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23948. +fi
  23949. +fi
  23950. +OTOOL64=$ac_cv_prog_OTOOL64
  23951. +if test -n "$OTOOL64"; then
  23952. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  23953. +$as_echo "$OTOOL64" >&6; }
  23954. else
  23955. - case $MAGIC_CMD in
  23956. -[\\/*] | ?:[\\/]*)
  23957. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23958. - ;;
  23959. -*)
  23960. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  23961. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23962. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23963. - for ac_dir in $ac_dummy; do
  23964. - IFS="$lt_save_ifs"
  23965. - test -z "$ac_dir" && ac_dir=.
  23966. - if test -f $ac_dir/file; then
  23967. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  23968. - if test -n "$file_magic_test_file"; then
  23969. - case $deplibs_check_method in
  23970. - "file_magic "*)
  23971. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23972. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23973. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23974. - $EGREP "$file_magic_regex" > /dev/null; then
  23975. - :
  23976. - else
  23977. - cat <<EOF 1>&2
  23978. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23979. +$as_echo "no" >&6; }
  23980. +fi
  23981. -*** Warning: the command libtool uses to detect shared libraries,
  23982. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  23983. -*** The result is that libtool may fail to recognize shared libraries
  23984. -*** as such. This will affect the creation of libtool libraries that
  23985. -*** depend on shared libraries, but programs linked with such libtool
  23986. -*** libraries will work regardless of this problem. Nevertheless, you
  23987. -*** may want to report the problem to your system manager and/or to
  23988. -*** bug-libtool@gnu.org
  23989. -EOF
  23990. - fi ;;
  23991. - esac
  23992. - fi
  23993. - break
  23994. - fi
  23995. - done
  23996. - IFS="$lt_save_ifs"
  23997. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  23998. - ;;
  23999. -esac
  24000. fi
  24001. +if test -z "$ac_cv_prog_OTOOL64"; then
  24002. + ac_ct_OTOOL64=$OTOOL64
  24003. + # Extract the first word of "otool64", so it can be a program name with args.
  24004. +set dummy otool64; ac_word=$2
  24005. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24006. +$as_echo_n "checking for $ac_word... " >&6; }
  24007. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  24008. + $as_echo_n "(cached) " >&6
  24009. +else
  24010. + if test -n "$ac_ct_OTOOL64"; then
  24011. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  24012. +else
  24013. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24014. +for as_dir in $PATH
  24015. +do
  24016. + IFS=$as_save_IFS
  24017. + test -z "$as_dir" && as_dir=.
  24018. + for ac_exec_ext in '' $ac_executable_extensions; do
  24019. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24020. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  24021. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24022. + break 2
  24023. + fi
  24024. +done
  24025. + done
  24026. +IFS=$as_save_IFS
  24027. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24028. -if test -n "$MAGIC_CMD"; then
  24029. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  24030. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  24031. +fi
  24032. +fi
  24033. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  24034. +if test -n "$ac_ct_OTOOL64"; then
  24035. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  24036. +$as_echo "$ac_ct_OTOOL64" >&6; }
  24037. else
  24038. - { echo "$as_me:$LINENO: result: no" >&5
  24039. -echo "${ECHO_T}no" >&6; }
  24040. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24041. +$as_echo "no" >&6; }
  24042. fi
  24043. + if test "x$ac_ct_OTOOL64" = x; then
  24044. + OTOOL64=":"
  24045. else
  24046. - MAGIC_CMD=:
  24047. + case $cross_compiling:$ac_tool_warned in
  24048. +yes:)
  24049. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24050. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24051. +ac_tool_warned=yes ;;
  24052. +esac
  24053. + OTOOL64=$ac_ct_OTOOL64
  24054. fi
  24055. +else
  24056. + OTOOL64="$ac_cv_prog_OTOOL64"
  24057. fi
  24058. - fi
  24059. - ;;
  24060. -esac
  24061. -enable_dlopen=no
  24062. -enable_win32_dll=no
  24063. -# Check whether --enable-libtool-lock was given.
  24064. -if test "${enable_libtool_lock+set}" = set; then
  24065. - enableval=$enable_libtool_lock;
  24066. -fi
  24067. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24068. -# Check whether --with-pic was given.
  24069. -if test "${with_pic+set}" = set; then
  24070. - withval=$with_pic; pic_mode="$withval"
  24071. -else
  24072. - pic_mode=default
  24073. -fi
  24074. -test -z "$pic_mode" && pic_mode=default
  24075. -# Use C for the default configuration in the libtool script
  24076. -tagname=
  24077. -lt_save_CC="$CC"
  24078. -ac_ext=c
  24079. -ac_cpp='$CPP $CPPFLAGS'
  24080. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24081. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24082. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24083. -# Source file extension for C test sources.
  24084. -ac_ext=c
  24085. -# Object file extension for compiled C test sources.
  24086. -objext=o
  24087. -objext=$objext
  24088. -# Code to be used in simple compile tests
  24089. -lt_simple_compile_test_code="int some_variable = 0;"
  24090. -# Code to be used in simple link tests
  24091. -lt_simple_link_test_code='int main(){return(0);}'
  24092. -# If no C compiler was specified, use CC.
  24093. -LTCC=${LTCC-"$CC"}
  24094. -# If no C compiler flags were specified, use CFLAGS.
  24095. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  24096. -# Allow CC to be a program name with arguments.
  24097. -compiler=$CC
  24098. -# save warnings/boilerplate of simple test code
  24099. -ac_outfile=conftest.$ac_objext
  24100. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  24101. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24102. -_lt_compiler_boilerplate=`cat conftest.err`
  24103. -$rm conftest*
  24104. -ac_outfile=conftest.$ac_objext
  24105. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  24106. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24107. -_lt_linker_boilerplate=`cat conftest.err`
  24108. -$rm conftest*
  24109. -lt_prog_compiler_no_builtin_flag=
  24110. -if test "$GCC" = yes; then
  24111. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  24112. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  24113. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  24114. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  24115. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24116. +
  24117. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  24118. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  24119. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  24120. + $as_echo_n "(cached) " >&6
  24121. else
  24122. - lt_cv_prog_compiler_rtti_exceptions=no
  24123. - ac_outfile=conftest.$ac_objext
  24124. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24125. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  24126. - # Insert the option either (1) after the last *FLAGS variable, or
  24127. - # (2) before a word containing "conftest.", or (3) at the end.
  24128. - # Note that $ac_compile itself does not contain backslashes and begins
  24129. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24130. - # The option is referenced via a variable to avoid confusing sed.
  24131. - lt_compile=`echo "$ac_compile" | $SED \
  24132. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24133. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24134. - -e 's:$: $lt_compiler_flag:'`
  24135. - (eval echo "\"\$as_me:7482: $lt_compile\"" >&5)
  24136. - (eval "$lt_compile" 2>conftest.err)
  24137. - ac_status=$?
  24138. - cat conftest.err >&5
  24139. - echo "$as_me:7486: \$? = $ac_status" >&5
  24140. - if (exit $ac_status) && test -s "$ac_outfile"; then
  24141. - # The compiler can only warn and ignore the option if not recognized
  24142. - # So say no if there are warnings other than the usual output.
  24143. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24144. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24145. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24146. - lt_cv_prog_compiler_rtti_exceptions=yes
  24147. - fi
  24148. - fi
  24149. - $rm conftest*
  24150. -
  24151. + lt_cv_apple_cc_single_mod=no
  24152. + if test -z "${LT_MULTI_MODULE}"; then
  24153. + # By default we will add the -single_module flag. You can override
  24154. + # by either setting the environment variable LT_MULTI_MODULE
  24155. + # non-empty at configure time, or by adding -multi_module to the
  24156. + # link flags.
  24157. + rm -rf libconftest.dylib*
  24158. + echo "int foo(void){return 1;}" > conftest.c
  24159. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24160. +-dynamiclib -Wl,-single_module conftest.c" >&5
  24161. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24162. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  24163. + _lt_result=$?
  24164. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  24165. + lt_cv_apple_cc_single_mod=yes
  24166. + else
  24167. + cat conftest.err >&5
  24168. + fi
  24169. + rm -rf libconftest.dylib*
  24170. + rm -f conftest.*
  24171. + fi
  24172. fi
  24173. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  24174. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  24175. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  24176. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  24177. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  24178. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  24179. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  24180. + $as_echo_n "(cached) " >&6
  24181. +else
  24182. + lt_cv_ld_exported_symbols_list=no
  24183. + save_LDFLAGS=$LDFLAGS
  24184. + echo "_main" > conftest.sym
  24185. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  24186. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24187. +/* end confdefs.h. */
  24188. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  24189. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  24190. +int
  24191. +main ()
  24192. +{
  24193. +
  24194. + ;
  24195. + return 0;
  24196. +}
  24197. +_ACEOF
  24198. +if ac_fn_c_try_link "$LINENO"; then :
  24199. + lt_cv_ld_exported_symbols_list=yes
  24200. else
  24201. - :
  24202. + lt_cv_ld_exported_symbols_list=no
  24203. fi
  24204. +rm -f core conftest.err conftest.$ac_objext \
  24205. + conftest$ac_exeext conftest.$ac_ext
  24206. + LDFLAGS="$save_LDFLAGS"
  24207. fi
  24208. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  24209. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  24210. + case $host_os in
  24211. + rhapsody* | darwin1.[012])
  24212. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  24213. + darwin1.*)
  24214. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24215. + darwin*) # darwin 5.x on
  24216. + # if running on 10.5 or later, the deployment target defaults
  24217. + # to the OS version, if on x86, and 10.4, the deployment
  24218. + # target defaults to 10.4. Don't you love it?
  24219. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  24220. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  24221. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24222. + 10.[012]*)
  24223. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24224. + 10.*)
  24225. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24226. + esac
  24227. + ;;
  24228. + esac
  24229. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  24230. + _lt_dar_single_mod='$single_module'
  24231. + fi
  24232. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  24233. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  24234. + else
  24235. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24236. + fi
  24237. + if test "$DSYMUTIL" != ":"; then
  24238. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  24239. + else
  24240. + _lt_dsymutil=
  24241. + fi
  24242. + ;;
  24243. + esac
  24244. -lt_prog_compiler_wl=
  24245. -lt_prog_compiler_pic=
  24246. -lt_prog_compiler_static=
  24247. +for ac_header in dlfcn.h
  24248. +do :
  24249. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  24250. +"
  24251. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  24252. + cat >>confdefs.h <<_ACEOF
  24253. +#define HAVE_DLFCN_H 1
  24254. +_ACEOF
  24255. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  24256. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  24257. +fi
  24258. - if test "$GCC" = yes; then
  24259. - lt_prog_compiler_wl='-Wl,'
  24260. - lt_prog_compiler_static='-static'
  24261. +done
  24262. - case $host_os in
  24263. - aix*)
  24264. - # All AIX code is PIC.
  24265. - if test "$host_cpu" = ia64; then
  24266. - # AIX 5 now supports IA64 processor
  24267. - lt_prog_compiler_static='-Bstatic'
  24268. - fi
  24269. - ;;
  24270. - amigaos*)
  24271. - # FIXME: we need at least 68020 code to build shared libraries, but
  24272. - # adding the `-m68020' flag to GCC prevents building anything better,
  24273. - # like `-m68040'.
  24274. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  24275. - ;;
  24276. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  24277. - # PIC is the default for these OSes.
  24278. - ;;
  24279. +# Set options
  24280. - mingw* | cygwin* | pw32* | os2*)
  24281. - # This hack is so that the source file can tell whether it is being
  24282. - # built for inclusion in a dll (and should export symbols for example).
  24283. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  24284. - # (--disable-auto-import) libraries
  24285. - lt_prog_compiler_pic='-DDLL_EXPORT'
  24286. - ;;
  24287. - darwin* | rhapsody*)
  24288. - # PIC is the default on this platform
  24289. - # Common symbols not allowed in MH_DYLIB files
  24290. - lt_prog_compiler_pic='-fno-common'
  24291. - ;;
  24292. - interix[3-9]*)
  24293. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  24294. - # Instead, we relocate shared libraries at runtime.
  24295. - ;;
  24296. + enable_dlopen=no
  24297. - msdosdjgpp*)
  24298. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  24299. - # on systems that don't support them.
  24300. - lt_prog_compiler_can_build_shared=no
  24301. - enable_shared=no
  24302. - ;;
  24303. - sysv4*MP*)
  24304. - if test -d /usr/nec; then
  24305. - lt_prog_compiler_pic=-Kconform_pic
  24306. - fi
  24307. - ;;
  24308. + enable_win32_dll=no
  24309. - hpux*)
  24310. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24311. - # not for PA HP-UX.
  24312. - case $host_cpu in
  24313. - hppa*64*|ia64*)
  24314. - # +Z the default
  24315. - ;;
  24316. - *)
  24317. - lt_prog_compiler_pic='-fPIC'
  24318. - ;;
  24319. - esac
  24320. - ;;
  24321. + # Check whether --enable-shared was given.
  24322. +if test "${enable_shared+set}" = set; then :
  24323. + enableval=$enable_shared; p=${PACKAGE-default}
  24324. + case $enableval in
  24325. + yes) enable_shared=yes ;;
  24326. + no) enable_shared=no ;;
  24327. *)
  24328. - lt_prog_compiler_pic='-fPIC'
  24329. + enable_shared=no
  24330. + # Look at the argument we got. We use all the common list separators.
  24331. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24332. + for pkg in $enableval; do
  24333. + IFS="$lt_save_ifs"
  24334. + if test "X$pkg" = "X$p"; then
  24335. + enable_shared=yes
  24336. + fi
  24337. + done
  24338. + IFS="$lt_save_ifs"
  24339. ;;
  24340. esac
  24341. - else
  24342. - # PORTME Check for flag to pass linker flags through the system compiler.
  24343. - case $host_os in
  24344. - aix*)
  24345. - lt_prog_compiler_wl='-Wl,'
  24346. - if test "$host_cpu" = ia64; then
  24347. - # AIX 5 now supports IA64 processor
  24348. - lt_prog_compiler_static='-Bstatic'
  24349. - else
  24350. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  24351. - fi
  24352. - ;;
  24353. - darwin*)
  24354. - # PIC is the default on this platform
  24355. - # Common symbols not allowed in MH_DYLIB files
  24356. - case $cc_basename in
  24357. - xlc*)
  24358. - lt_prog_compiler_pic='-qnocommon'
  24359. - lt_prog_compiler_wl='-Wl,'
  24360. - ;;
  24361. - esac
  24362. - ;;
  24363. +else
  24364. + enable_shared=yes
  24365. +fi
  24366. - mingw* | cygwin* | pw32* | os2*)
  24367. - # This hack is so that the source file can tell whether it is being
  24368. - # built for inclusion in a dll (and should export symbols for example).
  24369. - lt_prog_compiler_pic='-DDLL_EXPORT'
  24370. - ;;
  24371. - hpux9* | hpux10* | hpux11*)
  24372. - lt_prog_compiler_wl='-Wl,'
  24373. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24374. - # not for PA HP-UX.
  24375. - case $host_cpu in
  24376. - hppa*64*|ia64*)
  24377. - # +Z the default
  24378. - ;;
  24379. - *)
  24380. - lt_prog_compiler_pic='+Z'
  24381. - ;;
  24382. - esac
  24383. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  24384. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  24385. - ;;
  24386. - irix5* | irix6* | nonstopux*)
  24387. - lt_prog_compiler_wl='-Wl,'
  24388. - # PIC (with -KPIC) is the default.
  24389. - lt_prog_compiler_static='-non_shared'
  24390. - ;;
  24391. - newsos6)
  24392. - lt_prog_compiler_pic='-KPIC'
  24393. - lt_prog_compiler_static='-Bstatic'
  24394. - ;;
  24395. - linux* | k*bsd*-gnu)
  24396. - case $cc_basename in
  24397. - icc* | ecc*)
  24398. - lt_prog_compiler_wl='-Wl,'
  24399. - lt_prog_compiler_pic='-KPIC'
  24400. - lt_prog_compiler_static='-static'
  24401. - ;;
  24402. - pgcc* | pgf77* | pgf90* | pgf95*)
  24403. - # Portland Group compilers (*not* the Pentium gcc compiler,
  24404. - # which looks to be a dead project)
  24405. - lt_prog_compiler_wl='-Wl,'
  24406. - lt_prog_compiler_pic='-fpic'
  24407. - lt_prog_compiler_static='-Bstatic'
  24408. - ;;
  24409. - ccc*)
  24410. - lt_prog_compiler_wl='-Wl,'
  24411. - # All Alpha code is PIC.
  24412. - lt_prog_compiler_static='-non_shared'
  24413. - ;;
  24414. - *)
  24415. - case `$CC -V 2>&1 | sed 5q` in
  24416. - *Sun\ C*)
  24417. - # Sun C 5.9
  24418. - lt_prog_compiler_pic='-KPIC'
  24419. - lt_prog_compiler_static='-Bstatic'
  24420. - lt_prog_compiler_wl='-Wl,'
  24421. - ;;
  24422. - *Sun\ F*)
  24423. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  24424. - lt_prog_compiler_pic='-KPIC'
  24425. - lt_prog_compiler_static='-Bstatic'
  24426. - lt_prog_compiler_wl=''
  24427. - ;;
  24428. - esac
  24429. - ;;
  24430. - esac
  24431. - ;;
  24432. - osf3* | osf4* | osf5*)
  24433. - lt_prog_compiler_wl='-Wl,'
  24434. - # All OSF/1 code is PIC.
  24435. - lt_prog_compiler_static='-non_shared'
  24436. - ;;
  24437. - rdos*)
  24438. - lt_prog_compiler_static='-non_shared'
  24439. - ;;
  24440. - solaris*)
  24441. - lt_prog_compiler_pic='-KPIC'
  24442. - lt_prog_compiler_static='-Bstatic'
  24443. - case $cc_basename in
  24444. - f77* | f90* | f95*)
  24445. - lt_prog_compiler_wl='-Qoption ld ';;
  24446. - *)
  24447. - lt_prog_compiler_wl='-Wl,';;
  24448. - esac
  24449. - ;;
  24450. - sunos4*)
  24451. - lt_prog_compiler_wl='-Qoption ld '
  24452. - lt_prog_compiler_pic='-PIC'
  24453. - lt_prog_compiler_static='-Bstatic'
  24454. + # Check whether --enable-static was given.
  24455. +if test "${enable_static+set}" = set; then :
  24456. + enableval=$enable_static; p=${PACKAGE-default}
  24457. + case $enableval in
  24458. + yes) enable_static=yes ;;
  24459. + no) enable_static=no ;;
  24460. + *)
  24461. + enable_static=no
  24462. + # Look at the argument we got. We use all the common list separators.
  24463. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24464. + for pkg in $enableval; do
  24465. + IFS="$lt_save_ifs"
  24466. + if test "X$pkg" = "X$p"; then
  24467. + enable_static=yes
  24468. + fi
  24469. + done
  24470. + IFS="$lt_save_ifs"
  24471. ;;
  24472. + esac
  24473. +else
  24474. + enable_static=yes
  24475. +fi
  24476. - sysv4 | sysv4.2uw2* | sysv4.3*)
  24477. - lt_prog_compiler_wl='-Wl,'
  24478. - lt_prog_compiler_pic='-KPIC'
  24479. - lt_prog_compiler_static='-Bstatic'
  24480. - ;;
  24481. - sysv4*MP*)
  24482. - if test -d /usr/nec ;then
  24483. - lt_prog_compiler_pic='-Kconform_pic'
  24484. - lt_prog_compiler_static='-Bstatic'
  24485. - fi
  24486. - ;;
  24487. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  24488. - lt_prog_compiler_wl='-Wl,'
  24489. - lt_prog_compiler_pic='-KPIC'
  24490. - lt_prog_compiler_static='-Bstatic'
  24491. - ;;
  24492. - unicos*)
  24493. - lt_prog_compiler_wl='-Wl,'
  24494. - lt_prog_compiler_can_build_shared=no
  24495. - ;;
  24496. - uts4*)
  24497. - lt_prog_compiler_pic='-pic'
  24498. - lt_prog_compiler_static='-Bstatic'
  24499. - ;;
  24500. - *)
  24501. - lt_prog_compiler_can_build_shared=no
  24502. - ;;
  24503. - esac
  24504. - fi
  24505. -
  24506. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  24507. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  24508. -#
  24509. -# Check to make sure the PIC flag actually works.
  24510. -#
  24511. -if test -n "$lt_prog_compiler_pic"; then
  24512. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  24513. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  24514. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  24515. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24516. -else
  24517. - lt_prog_compiler_pic_works=no
  24518. - ac_outfile=conftest.$ac_objext
  24519. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24520. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  24521. - # Insert the option either (1) after the last *FLAGS variable, or
  24522. - # (2) before a word containing "conftest.", or (3) at the end.
  24523. - # Note that $ac_compile itself does not contain backslashes and begins
  24524. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24525. - # The option is referenced via a variable to avoid confusing sed.
  24526. - lt_compile=`echo "$ac_compile" | $SED \
  24527. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24528. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24529. - -e 's:$: $lt_compiler_flag:'`
  24530. - (eval echo "\"\$as_me:7772: $lt_compile\"" >&5)
  24531. - (eval "$lt_compile" 2>conftest.err)
  24532. - ac_status=$?
  24533. - cat conftest.err >&5
  24534. - echo "$as_me:7776: \$? = $ac_status" >&5
  24535. - if (exit $ac_status) && test -s "$ac_outfile"; then
  24536. - # The compiler can only warn and ignore the option if not recognized
  24537. - # So say no if there are warnings other than the usual output.
  24538. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24539. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24540. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24541. - lt_prog_compiler_pic_works=yes
  24542. - fi
  24543. - fi
  24544. - $rm conftest*
  24545. -fi
  24546. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  24547. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  24548. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  24549. - case $lt_prog_compiler_pic in
  24550. - "" | " "*) ;;
  24551. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  24552. - esac
  24553. +# Check whether --with-pic was given.
  24554. +if test "${with_pic+set}" = set; then :
  24555. + withval=$with_pic; pic_mode="$withval"
  24556. else
  24557. - lt_prog_compiler_pic=
  24558. - lt_prog_compiler_can_build_shared=no
  24559. + pic_mode=default
  24560. fi
  24561. -fi
  24562. -case $host_os in
  24563. - # For platforms which do not support PIC, -DPIC is meaningless:
  24564. - *djgpp*)
  24565. - lt_prog_compiler_pic=
  24566. - ;;
  24567. - *)
  24568. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  24569. - ;;
  24570. -esac
  24571. -#
  24572. -# Check to make sure the static flag actually works.
  24573. -#
  24574. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  24575. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24576. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  24577. -if test "${lt_prog_compiler_static_works+set}" = set; then
  24578. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24579. -else
  24580. - lt_prog_compiler_static_works=no
  24581. - save_LDFLAGS="$LDFLAGS"
  24582. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24583. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  24584. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24585. - # The linker can only warn and ignore the option if not recognized
  24586. - # So say no if there are warnings
  24587. - if test -s conftest.err; then
  24588. - # Append any errors to the config.log.
  24589. - cat conftest.err 1>&5
  24590. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24591. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24592. - if diff conftest.exp conftest.er2 >/dev/null; then
  24593. - lt_prog_compiler_static_works=yes
  24594. - fi
  24595. - else
  24596. - lt_prog_compiler_static_works=yes
  24597. - fi
  24598. - fi
  24599. - $rm conftest*
  24600. - LDFLAGS="$save_LDFLAGS"
  24601. +test -z "$pic_mode" && pic_mode=default
  24602. -fi
  24603. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  24604. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  24605. -if test x"$lt_prog_compiler_static_works" = xyes; then
  24606. - :
  24607. +
  24608. +
  24609. +
  24610. +
  24611. +
  24612. + # Check whether --enable-fast-install was given.
  24613. +if test "${enable_fast_install+set}" = set; then :
  24614. + enableval=$enable_fast_install; p=${PACKAGE-default}
  24615. + case $enableval in
  24616. + yes) enable_fast_install=yes ;;
  24617. + no) enable_fast_install=no ;;
  24618. + *)
  24619. + enable_fast_install=no
  24620. + # Look at the argument we got. We use all the common list separators.
  24621. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24622. + for pkg in $enableval; do
  24623. + IFS="$lt_save_ifs"
  24624. + if test "X$pkg" = "X$p"; then
  24625. + enable_fast_install=yes
  24626. + fi
  24627. + done
  24628. + IFS="$lt_save_ifs"
  24629. + ;;
  24630. + esac
  24631. else
  24632. - lt_prog_compiler_static=
  24633. + enable_fast_install=yes
  24634. fi
  24635. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  24636. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  24637. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  24638. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24639. -else
  24640. - lt_cv_prog_compiler_c_o=no
  24641. - $rm -r conftest 2>/dev/null
  24642. - mkdir conftest
  24643. - cd conftest
  24644. - mkdir out
  24645. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24646. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  24647. - # Insert the option either (1) after the last *FLAGS variable, or
  24648. - # (2) before a word containing "conftest.", or (3) at the end.
  24649. - # Note that $ac_compile itself does not contain backslashes and begins
  24650. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24651. - lt_compile=`echo "$ac_compile" | $SED \
  24652. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24653. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24654. - -e 's:$: $lt_compiler_flag:'`
  24655. - (eval echo "\"\$as_me:7876: $lt_compile\"" >&5)
  24656. - (eval "$lt_compile" 2>out/conftest.err)
  24657. - ac_status=$?
  24658. - cat out/conftest.err >&5
  24659. - echo "$as_me:7880: \$? = $ac_status" >&5
  24660. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24661. - then
  24662. - # The compiler can only warn and ignore the option if not recognized
  24663. - # So say no if there are warnings
  24664. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24665. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24666. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24667. - lt_cv_prog_compiler_c_o=yes
  24668. - fi
  24669. - fi
  24670. - chmod u+w . 2>&5
  24671. - $rm conftest*
  24672. - # SGI C++ compiler will create directory out/ii_files/ for
  24673. - # template instantiation
  24674. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  24675. - $rm out/* && rmdir out
  24676. - cd ..
  24677. - rmdir conftest
  24678. - $rm conftest*
  24679. -fi
  24680. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  24681. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  24682. -hard_links="nottested"
  24683. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  24684. - # do not overwrite the value of need_locks provided by the user
  24685. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  24686. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  24687. - hard_links=yes
  24688. - $rm conftest*
  24689. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24690. - touch conftest.a
  24691. - ln conftest.a conftest.b 2>&5 || hard_links=no
  24692. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24693. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  24694. -echo "${ECHO_T}$hard_links" >&6; }
  24695. - if test "$hard_links" = no; then
  24696. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  24697. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  24698. - need_locks=warn
  24699. - fi
  24700. -else
  24701. - need_locks=no
  24702. -fi
  24703. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24704. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  24705. - runpath_var=
  24706. - allow_undefined_flag=
  24707. - enable_shared_with_static_runtimes=no
  24708. - archive_cmds=
  24709. - archive_expsym_cmds=
  24710. - old_archive_From_new_cmds=
  24711. - old_archive_from_expsyms_cmds=
  24712. - export_dynamic_flag_spec=
  24713. - whole_archive_flag_spec=
  24714. - thread_safe_flag_spec=
  24715. - hardcode_libdir_flag_spec=
  24716. - hardcode_libdir_flag_spec_ld=
  24717. - hardcode_libdir_separator=
  24718. - hardcode_direct=no
  24719. - hardcode_minus_L=no
  24720. - hardcode_shlibpath_var=unsupported
  24721. - link_all_deplibs=unknown
  24722. - hardcode_automatic=no
  24723. - module_cmds=
  24724. - module_expsym_cmds=
  24725. - always_export_symbols=no
  24726. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24727. - # include_expsyms should be a list of space-separated symbols to be *always*
  24728. - # included in the symbol list
  24729. - include_expsyms=
  24730. - # exclude_expsyms can be an extended regexp of symbols to exclude
  24731. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  24732. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  24733. - # as well as any symbol that contains `d'.
  24734. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  24735. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  24736. - # platforms (ab)use it in PIC code, but their linkers get confused if
  24737. - # the symbol is explicitly referenced. Since portable code cannot
  24738. - # rely on this symbol name, it's probably fine to never include it in
  24739. - # preloaded symbol tables.
  24740. - extract_expsyms_cmds=
  24741. - # Just being paranoid about ensuring that cc_basename is set.
  24742. - for cc_temp in $compiler""; do
  24743. - case $cc_temp in
  24744. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24745. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24746. - \-*) ;;
  24747. - *) break;;
  24748. - esac
  24749. -done
  24750. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24751. - case $host_os in
  24752. - cygwin* | mingw* | pw32*)
  24753. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  24754. - # When not using gcc, we currently assume that we are using
  24755. - # Microsoft Visual C++.
  24756. - if test "$GCC" != yes; then
  24757. - with_gnu_ld=no
  24758. - fi
  24759. - ;;
  24760. - interix*)
  24761. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  24762. - with_gnu_ld=yes
  24763. - ;;
  24764. - openbsd*)
  24765. - with_gnu_ld=no
  24766. - ;;
  24767. - esac
  24768. - ld_shlibs=yes
  24769. - if test "$with_gnu_ld" = yes; then
  24770. - # If archive_cmds runs LD, not CC, wlarc should be empty
  24771. - wlarc='${wl}'
  24772. - # Set some defaults for GNU ld with shared library support. These
  24773. - # are reset later if shared libraries are not supported. Putting them
  24774. - # here allows them to be overridden if necessary.
  24775. - runpath_var=LD_RUN_PATH
  24776. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  24777. - export_dynamic_flag_spec='${wl}--export-dynamic'
  24778. - # ancient GNU ld didn't support --whole-archive et. al.
  24779. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  24780. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  24781. - else
  24782. - whole_archive_flag_spec=
  24783. - fi
  24784. - supports_anon_versioning=no
  24785. - case `$LD -v 2>/dev/null` in
  24786. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  24787. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  24788. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  24789. - *\ 2.11.*) ;; # other 2.11 versions
  24790. - *) supports_anon_versioning=yes ;;
  24791. - esac
  24792. +# This can be used to rebuild libtool when needed
  24793. +LIBTOOL_DEPS="$ltmain"
  24794. - # See if GNU ld supports shared libraries.
  24795. - case $host_os in
  24796. - aix3* | aix4* | aix5*)
  24797. - # On AIX/PPC, the GNU linker is very broken
  24798. - if test "$host_cpu" != ia64; then
  24799. - ld_shlibs=no
  24800. - cat <<EOF 1>&2
  24801. +# Always use our own libtool.
  24802. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  24803. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  24804. -*** to be unable to reliably create shared libraries on AIX.
  24805. -*** Therefore, libtool is disabling shared libraries support. If you
  24806. -*** really care for shared libraries, you may want to modify your PATH
  24807. -*** so that a non-GNU linker is found, and then restart.
  24808. -EOF
  24809. - fi
  24810. - ;;
  24811. - amigaos*)
  24812. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  24813. - hardcode_libdir_flag_spec='-L$libdir'
  24814. - hardcode_minus_L=yes
  24815. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  24816. - # that the semantics of dynamic libraries on AmigaOS, at least up
  24817. - # to version 4, is to share data among multiple programs linked
  24818. - # with the same dynamic library. Since this doesn't match the
  24819. - # behavior of shared libraries on other platforms, we can't use
  24820. - # them.
  24821. - ld_shlibs=no
  24822. - ;;
  24823. - beos*)
  24824. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24825. - allow_undefined_flag=unsupported
  24826. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  24827. - # support --undefined. This deserves some investigation. FIXME
  24828. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24829. - else
  24830. - ld_shlibs=no
  24831. - fi
  24832. - ;;
  24833. - cygwin* | mingw* | pw32*)
  24834. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  24835. - # as there is no search path for DLLs.
  24836. - hardcode_libdir_flag_spec='-L$libdir'
  24837. - allow_undefined_flag=unsupported
  24838. - always_export_symbols=no
  24839. - enable_shared_with_static_runtimes=yes
  24840. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  24841. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  24842. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24843. - # If the export-symbols file already is a .def file (1st line
  24844. - # is EXPORTS), use it as is; otherwise, prepend...
  24845. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  24846. - cp $export_symbols $output_objdir/$soname.def;
  24847. - else
  24848. - echo EXPORTS > $output_objdir/$soname.def;
  24849. - cat $export_symbols >> $output_objdir/$soname.def;
  24850. - fi~
  24851. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24852. - else
  24853. - ld_shlibs=no
  24854. - fi
  24855. - ;;
  24856. - interix[3-9]*)
  24857. - hardcode_direct=no
  24858. - hardcode_shlibpath_var=no
  24859. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  24860. - export_dynamic_flag_spec='${wl}-E'
  24861. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  24862. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  24863. - # default) and relocated if they conflict, which is a slow very memory
  24864. - # consuming and fragmenting process. To avoid this, we pick a random,
  24865. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  24866. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  24867. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  24868. - archive_expsym_cmds='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'
  24869. - ;;
  24870. - gnu* | linux* | k*bsd*-gnu)
  24871. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24872. - tmp_addflag=
  24873. - case $cc_basename,$host_cpu in
  24874. - pgcc*) # Portland Group C compiler
  24875. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  24876. - tmp_addflag=' $pic_flag'
  24877. - ;;
  24878. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  24879. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  24880. - tmp_addflag=' $pic_flag -Mnomain' ;;
  24881. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  24882. - tmp_addflag=' -i_dynamic' ;;
  24883. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  24884. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  24885. - ifc* | ifort*) # Intel Fortran compiler
  24886. - tmp_addflag=' -nofor_main' ;;
  24887. - esac
  24888. - case `$CC -V 2>&1 | sed 5q` in
  24889. - *Sun\ C*) # Sun C 5.9
  24890. - whole_archive_flag_spec='${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'
  24891. - tmp_sharedflag='-G' ;;
  24892. - *Sun\ F*) # Sun Fortran 8.3
  24893. - tmp_sharedflag='-G' ;;
  24894. - *)
  24895. - tmp_sharedflag='-shared' ;;
  24896. - esac
  24897. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24898. - if test $supports_anon_versioning = yes; then
  24899. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  24900. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  24901. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  24902. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  24903. - fi
  24904. - link_all_deplibs=no
  24905. - else
  24906. - ld_shlibs=no
  24907. - fi
  24908. - ;;
  24909. - netbsd* | netbsdelf*-gnu)
  24910. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24911. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  24912. - wlarc=
  24913. - else
  24914. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24915. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24916. - fi
  24917. - ;;
  24918. - solaris*)
  24919. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  24920. - ld_shlibs=no
  24921. - cat <<EOF 1>&2
  24922. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  24923. -*** create shared libraries on Solaris systems. Therefore, libtool
  24924. -*** is disabling shared libraries support. We urge you to upgrade GNU
  24925. -*** binutils to release 2.9.1 or newer. Another option is to modify
  24926. -*** your PATH or compiler configuration so that the native linker is
  24927. -*** used, and then restart.
  24928. -EOF
  24929. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24930. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24931. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24932. - else
  24933. - ld_shlibs=no
  24934. - fi
  24935. - ;;
  24936. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  24937. - case `$LD -v 2>&1` in
  24938. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  24939. - ld_shlibs=no
  24940. - cat <<_LT_EOF 1>&2
  24941. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  24942. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  24943. -*** is disabling shared libraries support. We urge you to upgrade GNU
  24944. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  24945. -*** your PATH or compiler configuration so that the native linker is
  24946. -*** used, and then restart.
  24947. -_LT_EOF
  24948. - ;;
  24949. - *)
  24950. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24951. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  24952. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  24953. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  24954. - else
  24955. - ld_shlibs=no
  24956. - fi
  24957. - ;;
  24958. - esac
  24959. - ;;
  24960. - sunos4*)
  24961. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24962. - wlarc=
  24963. - hardcode_direct=yes
  24964. - hardcode_shlibpath_var=no
  24965. - ;;
  24966. - *)
  24967. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24968. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24969. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24970. - else
  24971. - ld_shlibs=no
  24972. - fi
  24973. - ;;
  24974. - esac
  24975. - if test "$ld_shlibs" = no; then
  24976. - runpath_var=
  24977. - hardcode_libdir_flag_spec=
  24978. - export_dynamic_flag_spec=
  24979. - whole_archive_flag_spec=
  24980. - fi
  24981. - else
  24982. - # PORTME fill in a description of your system's linker (not GNU ld)
  24983. - case $host_os in
  24984. - aix3*)
  24985. - allow_undefined_flag=unsupported
  24986. - always_export_symbols=yes
  24987. - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  24988. - # Note: this linker hardcodes the directories in LIBPATH if there
  24989. - # are no directories specified by -L.
  24990. - hardcode_minus_L=yes
  24991. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  24992. - # Neither direct hardcoding nor static linking is supported with a
  24993. - # broken collect2.
  24994. - hardcode_direct=unsupported
  24995. - fi
  24996. - ;;
  24997. - aix4* | aix5*)
  24998. - if test "$host_cpu" = ia64; then
  24999. - # On IA64, the linker does run time linking by default, so we don't
  25000. - # have to do anything special.
  25001. - aix_use_runtimelinking=no
  25002. - exp_sym_flag='-Bexport'
  25003. - no_entry_flag=""
  25004. - else
  25005. - # If we're using GNU nm, then we don't want the "-C" option.
  25006. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  25007. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  25008. - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  25009. - else
  25010. - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  25011. - fi
  25012. - aix_use_runtimelinking=no
  25013. - # Test if we are trying to use run time linking or normal
  25014. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  25015. - # need to do runtime linking.
  25016. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  25017. - for ld_flag in $LDFLAGS; do
  25018. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  25019. - aix_use_runtimelinking=yes
  25020. - break
  25021. - fi
  25022. - done
  25023. - ;;
  25024. - esac
  25025. - exp_sym_flag='-bexport'
  25026. - no_entry_flag='-bnoentry'
  25027. - fi
  25028. - # When large executables or shared objects are built, AIX ld can
  25029. - # have problems creating the table of contents. If linking a library
  25030. - # or program results in "error TOC overflow" add -mminimal-toc to
  25031. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  25032. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  25033. - archive_cmds=''
  25034. - hardcode_direct=yes
  25035. - hardcode_libdir_separator=':'
  25036. - link_all_deplibs=yes
  25037. +test -z "$LN_S" && LN_S="ln -s"
  25038. - if test "$GCC" = yes; then
  25039. - case $host_os in aix4.[012]|aix4.[012].*)
  25040. - # We only want to do this on AIX 4.2 and lower, the check
  25041. - # below for broken collect2 doesn't work under 4.3+
  25042. - collect2name=`${CC} -print-prog-name=collect2`
  25043. - if test -f "$collect2name" && \
  25044. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  25045. - then
  25046. - # We have reworked collect2
  25047. - :
  25048. - else
  25049. - # We have old collect2
  25050. - hardcode_direct=unsupported
  25051. - # It fails to find uninstalled libraries when the uninstalled
  25052. - # path is not listed in the libpath. Setting hardcode_minus_L
  25053. - # to unsupported forces relinking
  25054. - hardcode_minus_L=yes
  25055. - hardcode_libdir_flag_spec='-L$libdir'
  25056. - hardcode_libdir_separator=
  25057. - fi
  25058. - ;;
  25059. - esac
  25060. - shared_flag='-shared'
  25061. - if test "$aix_use_runtimelinking" = yes; then
  25062. - shared_flag="$shared_flag "'${wl}-G'
  25063. - fi
  25064. - else
  25065. - # not using gcc
  25066. - if test "$host_cpu" = ia64; then
  25067. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  25068. - # chokes on -Wl,-G. The following line is correct:
  25069. - shared_flag='-G'
  25070. - else
  25071. - if test "$aix_use_runtimelinking" = yes; then
  25072. - shared_flag='${wl}-G'
  25073. - else
  25074. - shared_flag='${wl}-bM:SRE'
  25075. - fi
  25076. - fi
  25077. - fi
  25078. - # It seems that -bexpall does not export symbols beginning with
  25079. - # underscore (_), so it is better to generate a list of symbols to export.
  25080. - always_export_symbols=yes
  25081. - if test "$aix_use_runtimelinking" = yes; then
  25082. - # Warning - without using the other runtime loading flags (-brtl),
  25083. - # -berok will link without error, but may produce a broken library.
  25084. - allow_undefined_flag='-berok'
  25085. - # Determine the default libpath from the value encoded in an empty executable.
  25086. - cat >conftest.$ac_ext <<_ACEOF
  25087. -/* confdefs.h. */
  25088. -_ACEOF
  25089. -cat confdefs.h >>conftest.$ac_ext
  25090. -cat >>conftest.$ac_ext <<_ACEOF
  25091. -/* end confdefs.h. */
  25092. -int
  25093. -main ()
  25094. -{
  25095. - ;
  25096. - return 0;
  25097. -}
  25098. -_ACEOF
  25099. -rm -f conftest.$ac_objext conftest$ac_exeext
  25100. -if { (ac_try="$ac_link"
  25101. -case "(($ac_try" in
  25102. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25103. - *) ac_try_echo=$ac_try;;
  25104. -esac
  25105. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25106. - (eval "$ac_link") 2>conftest.er1
  25107. - ac_status=$?
  25108. - grep -v '^ *+' conftest.er1 >conftest.err
  25109. - rm -f conftest.er1
  25110. - cat conftest.err >&5
  25111. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25112. - (exit $ac_status); } && {
  25113. - test -z "$ac_c_werror_flag" ||
  25114. - test ! -s conftest.err
  25115. - } && test -s conftest$ac_exeext &&
  25116. - $as_test_x conftest$ac_exeext; then
  25117. -lt_aix_libpath_sed='
  25118. - /Import File Strings/,/^$/ {
  25119. - /^0/ {
  25120. - s/^0 *\(.*\)$/\1/
  25121. - p
  25122. - }
  25123. - }'
  25124. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25125. -# Check for a 64-bit object if we didn't find anything.
  25126. -if test -z "$aix_libpath"; then
  25127. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25128. +
  25129. +
  25130. +
  25131. +
  25132. +
  25133. +
  25134. +
  25135. +
  25136. +
  25137. +if test -n "${ZSH_VERSION+set}" ; then
  25138. + setopt NO_GLOB_SUBST
  25139. fi
  25140. +
  25141. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  25142. +$as_echo_n "checking for objdir... " >&6; }
  25143. +if test "${lt_cv_objdir+set}" = set; then :
  25144. + $as_echo_n "(cached) " >&6
  25145. else
  25146. - echo "$as_me: failed program was:" >&5
  25147. -sed 's/^/| /' conftest.$ac_ext >&5
  25148. + rm -f .libs 2>/dev/null
  25149. +mkdir .libs 2>/dev/null
  25150. +if test -d .libs; then
  25151. + lt_cv_objdir=.libs
  25152. +else
  25153. + # MS-DOS does not allow filenames that begin with a dot.
  25154. + lt_cv_objdir=_libs
  25155. +fi
  25156. +rmdir .libs 2>/dev/null
  25157. +fi
  25158. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  25159. +$as_echo "$lt_cv_objdir" >&6; }
  25160. +objdir=$lt_cv_objdir
  25161. -fi
  25162. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25163. - conftest$ac_exeext conftest.$ac_ext
  25164. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25165. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25166. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  25167. - else
  25168. - if test "$host_cpu" = ia64; then
  25169. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  25170. - allow_undefined_flag="-z nodefs"
  25171. - archive_expsym_cmds="\$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"
  25172. - else
  25173. - # Determine the default libpath from the value encoded in an empty executable.
  25174. - cat >conftest.$ac_ext <<_ACEOF
  25175. -/* confdefs.h. */
  25176. +
  25177. +cat >>confdefs.h <<_ACEOF
  25178. +#define LT_OBJDIR "$lt_cv_objdir/"
  25179. _ACEOF
  25180. -cat confdefs.h >>conftest.$ac_ext
  25181. -cat >>conftest.$ac_ext <<_ACEOF
  25182. -/* end confdefs.h. */
  25183. -int
  25184. -main ()
  25185. -{
  25186. - ;
  25187. - return 0;
  25188. -}
  25189. -_ACEOF
  25190. -rm -f conftest.$ac_objext conftest$ac_exeext
  25191. -if { (ac_try="$ac_link"
  25192. -case "(($ac_try" in
  25193. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25194. - *) ac_try_echo=$ac_try;;
  25195. -esac
  25196. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25197. - (eval "$ac_link") 2>conftest.er1
  25198. - ac_status=$?
  25199. - grep -v '^ *+' conftest.er1 >conftest.err
  25200. - rm -f conftest.er1
  25201. - cat conftest.err >&5
  25202. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25203. - (exit $ac_status); } && {
  25204. - test -z "$ac_c_werror_flag" ||
  25205. - test ! -s conftest.err
  25206. - } && test -s conftest$ac_exeext &&
  25207. - $as_test_x conftest$ac_exeext; then
  25208. -lt_aix_libpath_sed='
  25209. - /Import File Strings/,/^$/ {
  25210. - /^0/ {
  25211. - s/^0 *\(.*\)$/\1/
  25212. - p
  25213. - }
  25214. - }'
  25215. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25216. -# Check for a 64-bit object if we didn't find anything.
  25217. -if test -z "$aix_libpath"; then
  25218. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25219. -fi
  25220. -else
  25221. - echo "$as_me: failed program was:" >&5
  25222. -sed 's/^/| /' conftest.$ac_ext >&5
  25223. -fi
  25224. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25225. - conftest$ac_exeext conftest.$ac_ext
  25226. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25227. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25228. - # Warning - without using the other run time loading flags,
  25229. - # -berok will link without error, but may produce a broken library.
  25230. - no_undefined_flag=' ${wl}-bernotok'
  25231. - allow_undefined_flag=' ${wl}-berok'
  25232. - # Exported symbols can be pulled into shared objects from archives
  25233. - whole_archive_flag_spec='$convenience'
  25234. - archive_cmds_need_lc=yes
  25235. - # This is similar to how AIX traditionally builds its shared libraries.
  25236. - archive_expsym_cmds="\$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'
  25237. - fi
  25238. - fi
  25239. - ;;
  25240. - amigaos*)
  25241. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  25242. - hardcode_libdir_flag_spec='-L$libdir'
  25243. - hardcode_minus_L=yes
  25244. - # see comment about different semantics on the GNU ld section
  25245. - ld_shlibs=no
  25246. - ;;
  25247. - bsdi[45]*)
  25248. - export_dynamic_flag_spec=-rdynamic
  25249. - ;;
  25250. - cygwin* | mingw* | pw32*)
  25251. - # When not using gcc, we currently assume that we are using
  25252. - # Microsoft Visual C++.
  25253. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  25254. - # no search path for DLLs.
  25255. - hardcode_libdir_flag_spec=' '
  25256. - allow_undefined_flag=unsupported
  25257. - # Tell ltmain to make .lib files, not .a files.
  25258. - libext=lib
  25259. - # Tell ltmain to make .dll files, not .so files.
  25260. - shrext_cmds=".dll"
  25261. - # FIXME: Setting linknames here is a bad hack.
  25262. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  25263. - # The linker will automatically build a .lib file if we build a DLL.
  25264. - old_archive_From_new_cmds='true'
  25265. - # FIXME: Should let the user specify the lib program.
  25266. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  25267. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  25268. - enable_shared_with_static_runtimes=yes
  25269. - ;;
  25270. - darwin* | rhapsody*)
  25271. - case $host_os in
  25272. - rhapsody* | darwin1.[012])
  25273. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  25274. - ;;
  25275. - *) # Darwin 1.3 on
  25276. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  25277. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  25278. - else
  25279. - case ${MACOSX_DEPLOYMENT_TARGET} in
  25280. - 10.[012])
  25281. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  25282. - ;;
  25283. - 10.*)
  25284. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  25285. - ;;
  25286. - esac
  25287. - fi
  25288. - ;;
  25289. - esac
  25290. - archive_cmds_need_lc=no
  25291. - hardcode_direct=no
  25292. - hardcode_automatic=yes
  25293. - hardcode_shlibpath_var=unsupported
  25294. - whole_archive_flag_spec=''
  25295. - link_all_deplibs=yes
  25296. - if test "$GCC" = yes ; then
  25297. - output_verbose_link_cmd='echo'
  25298. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  25299. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25300. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25301. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25302. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25303. - else
  25304. - case $cc_basename in
  25305. - xlc*)
  25306. - output_verbose_link_cmd='echo'
  25307. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  25308. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25309. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25310. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25311. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25312. - ;;
  25313. - *)
  25314. - ld_shlibs=no
  25315. - ;;
  25316. - esac
  25317. - fi
  25318. - ;;
  25319. - dgux*)
  25320. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25321. - hardcode_libdir_flag_spec='-L$libdir'
  25322. - hardcode_shlibpath_var=no
  25323. - ;;
  25324. - freebsd1*)
  25325. - ld_shlibs=no
  25326. - ;;
  25327. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  25328. - # support. Future versions do this automatically, but an explicit c++rt0.o
  25329. - # does not break anything, and helps significantly (at the cost of a little
  25330. - # extra space).
  25331. - freebsd2.2*)
  25332. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  25333. - hardcode_libdir_flag_spec='-R$libdir'
  25334. - hardcode_direct=yes
  25335. - hardcode_shlibpath_var=no
  25336. - ;;
  25337. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  25338. - freebsd2*)
  25339. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25340. - hardcode_direct=yes
  25341. - hardcode_minus_L=yes
  25342. - hardcode_shlibpath_var=no
  25343. - ;;
  25344. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  25345. - freebsd* | dragonfly*)
  25346. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  25347. - hardcode_libdir_flag_spec='-R$libdir'
  25348. - hardcode_direct=yes
  25349. - hardcode_shlibpath_var=no
  25350. - ;;
  25351. - hpux9*)
  25352. - if test "$GCC" = yes; then
  25353. - archive_cmds='$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'
  25354. - else
  25355. - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  25356. - fi
  25357. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25358. - hardcode_libdir_separator=:
  25359. - hardcode_direct=yes
  25360. +case $host_os in
  25361. +aix3*)
  25362. + # AIX sometimes has problems with the GCC collect2 program. For some
  25363. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  25364. + # vanish in a puff of smoke.
  25365. + if test "X${COLLECT_NAMES+set}" != Xset; then
  25366. + COLLECT_NAMES=
  25367. + export COLLECT_NAMES
  25368. + fi
  25369. + ;;
  25370. +esac
  25371. - # hardcode_minus_L: Not really in the search PATH,
  25372. - # but as the default location of the library.
  25373. - hardcode_minus_L=yes
  25374. - export_dynamic_flag_spec='${wl}-E'
  25375. - ;;
  25376. +# Sed substitution that helps us do robust quoting. It backslashifies
  25377. +# metacharacters that are still active within double-quoted strings.
  25378. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  25379. - hpux10*)
  25380. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25381. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25382. - else
  25383. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  25384. - fi
  25385. - if test "$with_gnu_ld" = no; then
  25386. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25387. - hardcode_libdir_separator=:
  25388. +# Same as above, but do not quote variable references.
  25389. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  25390. - hardcode_direct=yes
  25391. - export_dynamic_flag_spec='${wl}-E'
  25392. +# Sed substitution to delay expansion of an escaped shell variable in a
  25393. +# double_quote_subst'ed string.
  25394. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  25395. - # hardcode_minus_L: Not really in the search PATH,
  25396. - # but as the default location of the library.
  25397. - hardcode_minus_L=yes
  25398. - fi
  25399. - ;;
  25400. +# Sed substitution to delay expansion of an escaped single quote.
  25401. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  25402. - hpux11*)
  25403. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25404. - case $host_cpu in
  25405. - hppa*64*)
  25406. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25407. - ;;
  25408. - ia64*)
  25409. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25410. - ;;
  25411. - *)
  25412. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25413. - ;;
  25414. - esac
  25415. - else
  25416. - case $host_cpu in
  25417. - hppa*64*)
  25418. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25419. - ;;
  25420. - ia64*)
  25421. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25422. - ;;
  25423. - *)
  25424. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25425. - ;;
  25426. - esac
  25427. - fi
  25428. - if test "$with_gnu_ld" = no; then
  25429. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25430. - hardcode_libdir_separator=:
  25431. +# Sed substitution to avoid accidental globbing in evaled expressions
  25432. +no_glob_subst='s/\*/\\\*/g'
  25433. - case $host_cpu in
  25434. - hppa*64*|ia64*)
  25435. - hardcode_libdir_flag_spec_ld='+b $libdir'
  25436. - hardcode_direct=no
  25437. - hardcode_shlibpath_var=no
  25438. - ;;
  25439. - *)
  25440. - hardcode_direct=yes
  25441. - export_dynamic_flag_spec='${wl}-E'
  25442. +# Global variables:
  25443. +ofile=libtool
  25444. +can_build_shared=yes
  25445. - # hardcode_minus_L: Not really in the search PATH,
  25446. - # but as the default location of the library.
  25447. - hardcode_minus_L=yes
  25448. - ;;
  25449. - esac
  25450. - fi
  25451. - ;;
  25452. +# All known linkers require a `.a' archive for static linking (except MSVC,
  25453. +# which needs '.lib').
  25454. +libext=a
  25455. - irix5* | irix6* | nonstopux*)
  25456. - if test "$GCC" = yes; then
  25457. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  25458. - else
  25459. - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  25460. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  25461. - fi
  25462. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25463. - hardcode_libdir_separator=:
  25464. - link_all_deplibs=yes
  25465. - ;;
  25466. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  25467. - netbsd* | netbsdelf*-gnu)
  25468. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25469. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  25470. - else
  25471. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  25472. - fi
  25473. - hardcode_libdir_flag_spec='-R$libdir'
  25474. - hardcode_direct=yes
  25475. - hardcode_shlibpath_var=no
  25476. - ;;
  25477. +old_CC="$CC"
  25478. +old_CFLAGS="$CFLAGS"
  25479. - newsos6)
  25480. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25481. - hardcode_direct=yes
  25482. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25483. - hardcode_libdir_separator=:
  25484. - hardcode_shlibpath_var=no
  25485. - ;;
  25486. +# Set sane defaults for various variables
  25487. +test -z "$CC" && CC=cc
  25488. +test -z "$LTCC" && LTCC=$CC
  25489. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  25490. +test -z "$LD" && LD=ld
  25491. +test -z "$ac_objext" && ac_objext=o
  25492. - openbsd*)
  25493. - if test -f /usr/libexec/ld.so; then
  25494. - hardcode_direct=yes
  25495. - hardcode_shlibpath_var=no
  25496. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25497. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25498. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  25499. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25500. - export_dynamic_flag_spec='${wl}-E'
  25501. - else
  25502. - case $host_os in
  25503. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  25504. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25505. - hardcode_libdir_flag_spec='-R$libdir'
  25506. - ;;
  25507. - *)
  25508. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25509. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25510. - ;;
  25511. - esac
  25512. - fi
  25513. - else
  25514. - ld_shlibs=no
  25515. - fi
  25516. - ;;
  25517. +for cc_temp in $compiler""; do
  25518. + case $cc_temp in
  25519. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25520. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25521. + \-*) ;;
  25522. + *) break;;
  25523. + esac
  25524. +done
  25525. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  25526. - os2*)
  25527. - hardcode_libdir_flag_spec='-L$libdir'
  25528. - hardcode_minus_L=yes
  25529. - allow_undefined_flag=unsupported
  25530. - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  25531. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  25532. - ;;
  25533. - osf3*)
  25534. - if test "$GCC" = yes; then
  25535. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25536. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  25537. - else
  25538. - allow_undefined_flag=' -expect_unresolved \*'
  25539. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  25540. - fi
  25541. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25542. - hardcode_libdir_separator=:
  25543. - ;;
  25544. +# Only perform the check for file, if the check method requires it
  25545. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  25546. +case $deplibs_check_method in
  25547. +file_magic*)
  25548. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  25549. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  25550. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  25551. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  25552. + $as_echo_n "(cached) " >&6
  25553. +else
  25554. + case $MAGIC_CMD in
  25555. +[\\/*] | ?:[\\/]*)
  25556. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25557. + ;;
  25558. +*)
  25559. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  25560. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25561. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25562. + for ac_dir in $ac_dummy; do
  25563. + IFS="$lt_save_ifs"
  25564. + test -z "$ac_dir" && ac_dir=.
  25565. + if test -f $ac_dir/${ac_tool_prefix}file; then
  25566. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  25567. + if test -n "$file_magic_test_file"; then
  25568. + case $deplibs_check_method in
  25569. + "file_magic "*)
  25570. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  25571. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25572. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25573. + $EGREP "$file_magic_regex" > /dev/null; then
  25574. + :
  25575. + else
  25576. + cat <<_LT_EOF 1>&2
  25577. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  25578. - if test "$GCC" = yes; then
  25579. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25580. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  25581. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25582. - else
  25583. - allow_undefined_flag=' -expect_unresolved \*'
  25584. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  25585. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  25586. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  25587. +*** Warning: the command libtool uses to detect shared libraries,
  25588. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  25589. +*** The result is that libtool may fail to recognize shared libraries
  25590. +*** as such. This will affect the creation of libtool libraries that
  25591. +*** depend on shared libraries, but programs linked with such libtool
  25592. +*** libraries will work regardless of this problem. Nevertheless, you
  25593. +*** may want to report the problem to your system manager and/or to
  25594. +*** bug-libtool@gnu.org
  25595. - # Both c and cxx compiler support -rpath directly
  25596. - hardcode_libdir_flag_spec='-rpath $libdir'
  25597. +_LT_EOF
  25598. + fi ;;
  25599. + esac
  25600. fi
  25601. - hardcode_libdir_separator=:
  25602. - ;;
  25603. + break
  25604. + fi
  25605. + done
  25606. + IFS="$lt_save_ifs"
  25607. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  25608. + ;;
  25609. +esac
  25610. +fi
  25611. - solaris*)
  25612. - no_undefined_flag=' -z text'
  25613. - if test "$GCC" = yes; then
  25614. - wlarc='${wl}'
  25615. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25616. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25617. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  25618. - else
  25619. - wlarc=''
  25620. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25621. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25622. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  25623. - fi
  25624. - hardcode_libdir_flag_spec='-R$libdir'
  25625. - hardcode_shlibpath_var=no
  25626. - case $host_os in
  25627. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  25628. - *)
  25629. - # The compiler driver will combine and reorder linker options,
  25630. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  25631. - # but is careful enough not to reorder.
  25632. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  25633. - if test "$GCC" = yes; then
  25634. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  25635. - else
  25636. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  25637. - fi
  25638. - ;;
  25639. - esac
  25640. - link_all_deplibs=yes
  25641. - ;;
  25642. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25643. +if test -n "$MAGIC_CMD"; then
  25644. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  25645. +$as_echo "$MAGIC_CMD" >&6; }
  25646. +else
  25647. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25648. +$as_echo "no" >&6; }
  25649. +fi
  25650. - sunos4*)
  25651. - if test "x$host_vendor" = xsequent; then
  25652. - # Use $CC to link under sequent, because it throws in some extra .o
  25653. - # files that make .init and .fini sections work.
  25654. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  25655. - else
  25656. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  25657. - fi
  25658. - hardcode_libdir_flag_spec='-L$libdir'
  25659. - hardcode_direct=yes
  25660. - hardcode_minus_L=yes
  25661. - hardcode_shlibpath_var=no
  25662. - ;;
  25663. - sysv4)
  25664. - case $host_vendor in
  25665. - sni)
  25666. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25667. - hardcode_direct=yes # is this really true???
  25668. - ;;
  25669. - siemens)
  25670. - ## LD is ld it makes a PLAMLIB
  25671. - ## CC just makes a GrossModule.
  25672. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  25673. - reload_cmds='$CC -r -o $output$reload_objs'
  25674. - hardcode_direct=no
  25675. - ;;
  25676. - motorola)
  25677. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25678. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  25679. - ;;
  25680. - esac
  25681. - runpath_var='LD_RUN_PATH'
  25682. - hardcode_shlibpath_var=no
  25683. - ;;
  25684. - sysv4.3*)
  25685. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25686. - hardcode_shlibpath_var=no
  25687. - export_dynamic_flag_spec='-Bexport'
  25688. - ;;
  25689. - sysv4*MP*)
  25690. - if test -d /usr/nec; then
  25691. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25692. - hardcode_shlibpath_var=no
  25693. - runpath_var=LD_RUN_PATH
  25694. - hardcode_runpath_var=yes
  25695. - ld_shlibs=yes
  25696. - fi
  25697. - ;;
  25698. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  25699. - no_undefined_flag='${wl}-z,text'
  25700. - archive_cmds_need_lc=no
  25701. - hardcode_shlibpath_var=no
  25702. - runpath_var='LD_RUN_PATH'
  25703. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  25704. + if test -n "$ac_tool_prefix"; then
  25705. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  25706. +$as_echo_n "checking for file... " >&6; }
  25707. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  25708. + $as_echo_n "(cached) " >&6
  25709. +else
  25710. + case $MAGIC_CMD in
  25711. +[\\/*] | ?:[\\/]*)
  25712. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25713. + ;;
  25714. +*)
  25715. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  25716. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25717. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25718. + for ac_dir in $ac_dummy; do
  25719. + IFS="$lt_save_ifs"
  25720. + test -z "$ac_dir" && ac_dir=.
  25721. + if test -f $ac_dir/file; then
  25722. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  25723. + if test -n "$file_magic_test_file"; then
  25724. + case $deplibs_check_method in
  25725. + "file_magic "*)
  25726. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  25727. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25728. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25729. + $EGREP "$file_magic_regex" > /dev/null; then
  25730. + :
  25731. + else
  25732. + cat <<_LT_EOF 1>&2
  25733. - if test "$GCC" = yes; then
  25734. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25735. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25736. - else
  25737. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25738. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25739. +*** Warning: the command libtool uses to detect shared libraries,
  25740. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  25741. +*** The result is that libtool may fail to recognize shared libraries
  25742. +*** as such. This will affect the creation of libtool libraries that
  25743. +*** depend on shared libraries, but programs linked with such libtool
  25744. +*** libraries will work regardless of this problem. Nevertheless, you
  25745. +*** may want to report the problem to your system manager and/or to
  25746. +*** bug-libtool@gnu.org
  25747. +
  25748. +_LT_EOF
  25749. + fi ;;
  25750. + esac
  25751. fi
  25752. - ;;
  25753. + break
  25754. + fi
  25755. + done
  25756. + IFS="$lt_save_ifs"
  25757. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  25758. + ;;
  25759. +esac
  25760. +fi
  25761. - sysv5* | sco3.2v5* | sco5v6*)
  25762. - # Note: We can NOT use -z defs as we might desire, because we do not
  25763. - # link with -lc, and that would cause any symbols used from libc to
  25764. - # always be unresolved, which means just about no library would
  25765. - # ever link correctly. If we're not using GNU ld we use -z text
  25766. - # though, which does catch some bad symbols but isn't as heavy-handed
  25767. - # as -z defs.
  25768. - no_undefined_flag='${wl}-z,text'
  25769. - allow_undefined_flag='${wl}-z,nodefs'
  25770. - archive_cmds_need_lc=no
  25771. - hardcode_shlibpath_var=no
  25772. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  25773. - hardcode_libdir_separator=':'
  25774. - link_all_deplibs=yes
  25775. - export_dynamic_flag_spec='${wl}-Bexport'
  25776. - runpath_var='LD_RUN_PATH'
  25777. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25778. +if test -n "$MAGIC_CMD"; then
  25779. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  25780. +$as_echo "$MAGIC_CMD" >&6; }
  25781. +else
  25782. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25783. +$as_echo "no" >&6; }
  25784. +fi
  25785. - if test "$GCC" = yes; then
  25786. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25787. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25788. - else
  25789. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25790. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25791. - fi
  25792. - ;;
  25793. - uts4*)
  25794. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25795. - hardcode_libdir_flag_spec='-L$libdir'
  25796. - hardcode_shlibpath_var=no
  25797. - ;;
  25798. + else
  25799. + MAGIC_CMD=:
  25800. + fi
  25801. +fi
  25802. - *)
  25803. - ld_shlibs=no
  25804. - ;;
  25805. - esac
  25806. fi
  25807. + ;;
  25808. +esac
  25809. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  25810. -echo "${ECHO_T}$ld_shlibs" >&6; }
  25811. -test "$ld_shlibs" = no && can_build_shared=no
  25812. +# Use C for the default configuration in the libtool script
  25813. -#
  25814. -# Do we need to explicitly link libc?
  25815. -#
  25816. -case "x$archive_cmds_need_lc" in
  25817. -x|xyes)
  25818. - # Assume -lc should be added
  25819. - archive_cmds_need_lc=yes
  25820. +lt_save_CC="$CC"
  25821. +ac_ext=c
  25822. +ac_cpp='$CPP $CPPFLAGS'
  25823. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25824. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25825. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25826. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  25827. - case $archive_cmds in
  25828. - *'~'*)
  25829. - # FIXME: we may have to deal with multi-command sequences.
  25830. - ;;
  25831. - '$CC '*)
  25832. - # Test whether the compiler implicitly links with -lc since on some
  25833. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  25834. - # to ld, don't add -lc before -lgcc.
  25835. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  25836. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  25837. - $rm conftest*
  25838. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25839. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25840. - (eval $ac_compile) 2>&5
  25841. - ac_status=$?
  25842. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25843. - (exit $ac_status); } 2>conftest.err; then
  25844. - soname=conftest
  25845. - lib=conftest
  25846. - libobjs=conftest.$ac_objext
  25847. - deplibs=
  25848. - wl=$lt_prog_compiler_wl
  25849. - pic_flag=$lt_prog_compiler_pic
  25850. - compiler_flags=-v
  25851. - linker_flags=-v
  25852. - verstring=
  25853. - output_objdir=.
  25854. - libname=conftest
  25855. - lt_save_allow_undefined_flag=$allow_undefined_flag
  25856. - allow_undefined_flag=
  25857. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  25858. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  25859. - ac_status=$?
  25860. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25861. - (exit $ac_status); }
  25862. - then
  25863. - archive_cmds_need_lc=no
  25864. - else
  25865. - archive_cmds_need_lc=yes
  25866. - fi
  25867. - allow_undefined_flag=$lt_save_allow_undefined_flag
  25868. - else
  25869. - cat conftest.err 1>&5
  25870. - fi
  25871. - $rm conftest*
  25872. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  25873. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  25874. - ;;
  25875. - esac
  25876. - fi
  25877. - ;;
  25878. -esac
  25879. +# Source file extension for C test sources.
  25880. +ac_ext=c
  25881. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  25882. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  25883. -library_names_spec=
  25884. -libname_spec='lib$name'
  25885. -soname_spec=
  25886. -shrext_cmds=".so"
  25887. -postinstall_cmds=
  25888. -postuninstall_cmds=
  25889. -finish_cmds=
  25890. -finish_eval=
  25891. -shlibpath_var=
  25892. -shlibpath_overrides_runpath=unknown
  25893. -version_type=none
  25894. -dynamic_linker="$host_os ld.so"
  25895. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  25896. +# Object file extension for compiled C test sources.
  25897. +objext=o
  25898. +objext=$objext
  25899. -if test "$GCC" = yes; then
  25900. - case $host_os in
  25901. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  25902. - *) lt_awk_arg="/^libraries:/" ;;
  25903. - esac
  25904. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25905. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  25906. - # if the path contains ";" then we assume it to be the separator
  25907. - # otherwise default to the standard path separator (i.e. ":") - it is
  25908. - # assumed that no part of a normal pathname contains ";" but that should
  25909. - # okay in the real world where ";" in dirpaths is itself problematic.
  25910. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  25911. - else
  25912. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25913. - fi
  25914. - # Ok, now we have the path, separated by spaces, we can step through it
  25915. - # and add multilib dir if necessary.
  25916. - lt_tmp_lt_search_path_spec=
  25917. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  25918. - for lt_sys_path in $lt_search_path_spec; do
  25919. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  25920. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  25921. - else
  25922. - test -d "$lt_sys_path" && \
  25923. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  25924. - fi
  25925. - done
  25926. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  25927. -BEGIN {RS=" "; FS="/|\n";} {
  25928. - lt_foo="";
  25929. - lt_count=0;
  25930. - for (lt_i = NF; lt_i > 0; lt_i--) {
  25931. - if ($lt_i != "" && $lt_i != ".") {
  25932. - if ($lt_i == "..") {
  25933. - lt_count++;
  25934. - } else {
  25935. - if (lt_count == 0) {
  25936. - lt_foo="/" $lt_i lt_foo;
  25937. - } else {
  25938. - lt_count--;
  25939. - }
  25940. - }
  25941. - }
  25942. - }
  25943. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  25944. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  25945. -}'`
  25946. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  25947. -else
  25948. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  25949. -fi
  25950. -need_lib_prefix=unknown
  25951. -hardcode_into_libs=no
  25952. +# Code to be used in simple compile tests
  25953. +lt_simple_compile_test_code="int some_variable = 0;"
  25954. -# when you set need_version to no, make sure it does not cause -set_version
  25955. -# flags to be left without arguments
  25956. -need_version=unknown
  25957. +# Code to be used in simple link tests
  25958. +lt_simple_link_test_code='int main(){return(0);}'
  25959. -case $host_os in
  25960. -aix3*)
  25961. - version_type=linux
  25962. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  25963. - shlibpath_var=LIBPATH
  25964. - # AIX 3 has no versioning support, so we append a major version to the name.
  25965. - soname_spec='${libname}${release}${shared_ext}$major'
  25966. - ;;
  25967. -aix4* | aix5*)
  25968. - version_type=linux
  25969. - need_lib_prefix=no
  25970. - need_version=no
  25971. - hardcode_into_libs=yes
  25972. - if test "$host_cpu" = ia64; then
  25973. - # AIX 5 supports IA64
  25974. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  25975. - shlibpath_var=LD_LIBRARY_PATH
  25976. - else
  25977. - # With GCC up to 2.95.x, collect2 would create an import file
  25978. - # for dependence libraries. The import file would start with
  25979. - # the line `#! .'. This would cause the generated library to
  25980. - # depend on `.', always an invalid library. This was fixed in
  25981. - # development snapshots of GCC prior to 3.0.
  25982. - case $host_os in
  25983. - aix4 | aix4.[01] | aix4.[01].*)
  25984. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  25985. - echo ' yes '
  25986. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  25987. - :
  25988. - else
  25989. - can_build_shared=no
  25990. - fi
  25991. - ;;
  25992. - esac
  25993. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  25994. - # soname into executable. Probably we can add versioning support to
  25995. - # collect2, so additional links can be useful in future.
  25996. - if test "$aix_use_runtimelinking" = yes; then
  25997. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  25998. - # instead of lib<name>.a to let people know that these are not
  25999. - # typical AIX shared libraries.
  26000. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26001. - else
  26002. - # We preserve .a as extension for shared libraries through AIX4.2
  26003. - # and later when we are not doing run time linking.
  26004. - library_names_spec='${libname}${release}.a $libname.a'
  26005. - soname_spec='${libname}${release}${shared_ext}$major'
  26006. - fi
  26007. - shlibpath_var=LIBPATH
  26008. - fi
  26009. - ;;
  26010. -amigaos*)
  26011. - library_names_spec='$libname.ixlibrary $libname.a'
  26012. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  26013. - 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'
  26014. - ;;
  26015. -beos*)
  26016. - library_names_spec='${libname}${shared_ext}'
  26017. - dynamic_linker="$host_os ld.so"
  26018. - shlibpath_var=LIBRARY_PATH
  26019. - ;;
  26020. -bsdi[45]*)
  26021. - version_type=linux
  26022. - need_version=no
  26023. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26024. - soname_spec='${libname}${release}${shared_ext}$major'
  26025. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  26026. - shlibpath_var=LD_LIBRARY_PATH
  26027. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  26028. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  26029. - # the default ld.so.conf also contains /usr/contrib/lib and
  26030. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  26031. - # libtool to hard-code these into programs
  26032. - ;;
  26033. -cygwin* | mingw* | pw32*)
  26034. - version_type=windows
  26035. - shrext_cmds=".dll"
  26036. - need_version=no
  26037. - need_lib_prefix=no
  26038. +# If no C compiler was specified, use CC.
  26039. +LTCC=${LTCC-"$CC"}
  26040. - case $GCC,$host_os in
  26041. - yes,cygwin* | yes,mingw* | yes,pw32*)
  26042. - library_names_spec='$libname.dll.a'
  26043. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  26044. - postinstall_cmds='base_file=`basename \${file}`~
  26045. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  26046. - dldir=$destdir/`dirname \$dlpath`~
  26047. - test -d \$dldir || mkdir -p \$dldir~
  26048. - $install_prog $dir/$dlname \$dldir/$dlname~
  26049. - chmod a+x \$dldir/$dlname'
  26050. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  26051. - dlpath=$dir/\$dldll~
  26052. - $rm \$dlpath'
  26053. - shlibpath_overrides_runpath=yes
  26054. +# If no C compiler flags were specified, use CFLAGS.
  26055. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  26056. - case $host_os in
  26057. - cygwin*)
  26058. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  26059. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26060. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  26061. - ;;
  26062. - mingw*)
  26063. - # MinGW DLLs use traditional 'lib' prefix
  26064. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26065. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  26066. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  26067. - # It is most probably a Windows format PATH printed by
  26068. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  26069. - # path with ; separators, and with drive letters. We can handle the
  26070. - # drive letters (cygwin fileutils understands them), so leave them,
  26071. - # especially as we might pass files found there to a mingw objdump,
  26072. - # which wouldn't understand a cygwinified path. Ahh.
  26073. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  26074. - else
  26075. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  26076. - fi
  26077. - ;;
  26078. - pw32*)
  26079. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  26080. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26081. - ;;
  26082. - esac
  26083. - ;;
  26084. +# Allow CC to be a program name with arguments.
  26085. +compiler=$CC
  26086. - *)
  26087. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  26088. - ;;
  26089. - esac
  26090. - dynamic_linker='Win32 ld.exe'
  26091. - # FIXME: first we should search . and the directory the executable is in
  26092. - shlibpath_var=PATH
  26093. - ;;
  26094. +# Save the default compiler, since it gets overwritten when the other
  26095. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  26096. +compiler_DEFAULT=$CC
  26097. -darwin* | rhapsody*)
  26098. - dynamic_linker="$host_os dyld"
  26099. - version_type=darwin
  26100. - need_lib_prefix=no
  26101. - need_version=no
  26102. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  26103. - soname_spec='${libname}${release}${major}$shared_ext'
  26104. - shlibpath_overrides_runpath=yes
  26105. - shlibpath_var=DYLD_LIBRARY_PATH
  26106. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  26107. +# save warnings/boilerplate of simple test code
  26108. +ac_outfile=conftest.$ac_objext
  26109. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  26110. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26111. +_lt_compiler_boilerplate=`cat conftest.err`
  26112. +$RM conftest*
  26113. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  26114. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  26115. - ;;
  26116. +ac_outfile=conftest.$ac_objext
  26117. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  26118. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26119. +_lt_linker_boilerplate=`cat conftest.err`
  26120. +$RM -r conftest*
  26121. -dgux*)
  26122. - version_type=linux
  26123. - need_lib_prefix=no
  26124. - need_version=no
  26125. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  26126. - soname_spec='${libname}${release}${shared_ext}$major'
  26127. - shlibpath_var=LD_LIBRARY_PATH
  26128. - ;;
  26129. -freebsd1*)
  26130. - dynamic_linker=no
  26131. - ;;
  26132. +if test -n "$compiler"; then
  26133. -freebsd* | dragonfly*)
  26134. - # DragonFly does not have aout. When/if they implement a new
  26135. - # versioning mechanism, adjust this.
  26136. - if test -x /usr/bin/objformat; then
  26137. - objformat=`/usr/bin/objformat`
  26138. - else
  26139. - case $host_os in
  26140. - freebsd[123]*) objformat=aout ;;
  26141. - *) objformat=elf ;;
  26142. - esac
  26143. - fi
  26144. - version_type=freebsd-$objformat
  26145. - case $version_type in
  26146. - freebsd-elf*)
  26147. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26148. - need_version=no
  26149. - need_lib_prefix=no
  26150. - ;;
  26151. - freebsd-*)
  26152. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  26153. - need_version=yes
  26154. - ;;
  26155. - esac
  26156. - shlibpath_var=LD_LIBRARY_PATH
  26157. - case $host_os in
  26158. - freebsd2*)
  26159. - shlibpath_overrides_runpath=yes
  26160. - ;;
  26161. - freebsd3.[01]* | freebsdelf3.[01]*)
  26162. - shlibpath_overrides_runpath=yes
  26163. - hardcode_into_libs=yes
  26164. - ;;
  26165. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  26166. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  26167. - shlibpath_overrides_runpath=no
  26168. - hardcode_into_libs=yes
  26169. - ;;
  26170. - *) # from 4.6 on, and DragonFly
  26171. - shlibpath_overrides_runpath=yes
  26172. - hardcode_into_libs=yes
  26173. - ;;
  26174. - esac
  26175. - ;;
  26176. +lt_prog_compiler_no_builtin_flag=
  26177. -gnu*)
  26178. - version_type=linux
  26179. - need_lib_prefix=no
  26180. - need_version=no
  26181. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  26182. - soname_spec='${libname}${release}${shared_ext}$major'
  26183. - shlibpath_var=LD_LIBRARY_PATH
  26184. - hardcode_into_libs=yes
  26185. - ;;
  26186. +if test "$GCC" = yes; then
  26187. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  26188. -hpux9* | hpux10* | hpux11*)
  26189. - # Give a soname corresponding to the major version so that dld.sl refuses to
  26190. - # link against other versions.
  26191. - version_type=sunos
  26192. - need_lib_prefix=no
  26193. - need_version=no
  26194. - case $host_cpu in
  26195. - ia64*)
  26196. - shrext_cmds='.so'
  26197. - hardcode_into_libs=yes
  26198. - dynamic_linker="$host_os dld.so"
  26199. - shlibpath_var=LD_LIBRARY_PATH
  26200. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26201. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26202. - soname_spec='${libname}${release}${shared_ext}$major'
  26203. - if test "X$HPUX_IA64_MODE" = X32; then
  26204. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  26205. - else
  26206. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  26207. - fi
  26208. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26209. - ;;
  26210. - hppa*64*)
  26211. - shrext_cmds='.sl'
  26212. - hardcode_into_libs=yes
  26213. - dynamic_linker="$host_os dld.sl"
  26214. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  26215. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26216. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26217. - soname_spec='${libname}${release}${shared_ext}$major'
  26218. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  26219. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26220. - ;;
  26221. - *)
  26222. - shrext_cmds='.sl'
  26223. - dynamic_linker="$host_os dld.sl"
  26224. - shlibpath_var=SHLIB_PATH
  26225. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  26226. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26227. - soname_spec='${libname}${release}${shared_ext}$major'
  26228. - ;;
  26229. - esac
  26230. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  26231. - postinstall_cmds='chmod 555 $lib'
  26232. - ;;
  26233. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  26234. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  26235. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  26236. + $as_echo_n "(cached) " >&6
  26237. +else
  26238. + lt_cv_prog_compiler_rtti_exceptions=no
  26239. + ac_outfile=conftest.$ac_objext
  26240. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26241. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  26242. + # Insert the option either (1) after the last *FLAGS variable, or
  26243. + # (2) before a word containing "conftest.", or (3) at the end.
  26244. + # Note that $ac_compile itself does not contain backslashes and begins
  26245. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  26246. + # The option is referenced via a variable to avoid confusing sed.
  26247. + lt_compile=`echo "$ac_compile" | $SED \
  26248. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26249. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26250. + -e 's:$: $lt_compiler_flag:'`
  26251. + (eval echo "\"\$as_me:7405: $lt_compile\"" >&5)
  26252. + (eval "$lt_compile" 2>conftest.err)
  26253. + ac_status=$?
  26254. + cat conftest.err >&5
  26255. + echo "$as_me:7409: \$? = $ac_status" >&5
  26256. + if (exit $ac_status) && test -s "$ac_outfile"; then
  26257. + # The compiler can only warn and ignore the option if not recognized
  26258. + # So say no if there are warnings other than the usual output.
  26259. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26260. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26261. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26262. + lt_cv_prog_compiler_rtti_exceptions=yes
  26263. + fi
  26264. + fi
  26265. + $RM conftest*
  26266. -interix[3-9]*)
  26267. - version_type=linux
  26268. - need_lib_prefix=no
  26269. - need_version=no
  26270. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26271. - soname_spec='${libname}${release}${shared_ext}$major'
  26272. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  26273. - shlibpath_var=LD_LIBRARY_PATH
  26274. - shlibpath_overrides_runpath=no
  26275. - hardcode_into_libs=yes
  26276. - ;;
  26277. +fi
  26278. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  26279. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  26280. -irix5* | irix6* | nonstopux*)
  26281. - case $host_os in
  26282. - nonstopux*) version_type=nonstopux ;;
  26283. - *)
  26284. - if test "$lt_cv_prog_gnu_ld" = yes; then
  26285. - version_type=linux
  26286. - else
  26287. - version_type=irix
  26288. - fi ;;
  26289. - esac
  26290. - need_lib_prefix=no
  26291. - need_version=no
  26292. - soname_spec='${libname}${release}${shared_ext}$major'
  26293. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  26294. - case $host_os in
  26295. - irix5* | nonstopux*)
  26296. - libsuff= shlibsuff=
  26297. - ;;
  26298. - *)
  26299. - case $LD in # libtool.m4 will add one of these switches to LD
  26300. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  26301. - libsuff= shlibsuff= libmagic=32-bit;;
  26302. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  26303. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  26304. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  26305. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  26306. - *) libsuff= shlibsuff= libmagic=never-match;;
  26307. - esac
  26308. - ;;
  26309. - esac
  26310. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  26311. - shlibpath_overrides_runpath=no
  26312. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  26313. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  26314. - hardcode_into_libs=yes
  26315. - ;;
  26316. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  26317. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  26318. +else
  26319. + :
  26320. +fi
  26321. -# No shared lib support for Linux oldld, aout, or coff.
  26322. -linux*oldld* | linux*aout* | linux*coff*)
  26323. - dynamic_linker=no
  26324. - ;;
  26325. +fi
  26326. -# This must be Linux ELF.
  26327. -linux* | k*bsd*-gnu)
  26328. - version_type=linux
  26329. - need_lib_prefix=no
  26330. - need_version=no
  26331. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26332. - soname_spec='${libname}${release}${shared_ext}$major'
  26333. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  26334. - shlibpath_var=LD_LIBRARY_PATH
  26335. - shlibpath_overrides_runpath=no
  26336. - # This implies no fast_install, which is unacceptable.
  26337. - # Some rework will be needed to allow for fast_install
  26338. - # before this can be enabled.
  26339. - hardcode_into_libs=yes
  26340. - # Append ld.so.conf contents to the search path
  26341. - if test -f /etc/ld.so.conf; then
  26342. - 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' ' '`
  26343. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  26344. - fi
  26345. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  26346. - # powerpc, because MkLinux only supported shared libraries with the
  26347. - # GNU dynamic linker. Since this was broken with cross compilers,
  26348. - # most powerpc-linux boxes support dynamic linking these days and
  26349. - # people can always --disable-shared, the test was removed, and we
  26350. - # assume the GNU/Linux dynamic linker is in use.
  26351. - dynamic_linker='GNU/Linux ld.so'
  26352. - ;;
  26353. -netbsdelf*-gnu)
  26354. - version_type=linux
  26355. - need_lib_prefix=no
  26356. - need_version=no
  26357. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26358. - soname_spec='${libname}${release}${shared_ext}$major'
  26359. - shlibpath_var=LD_LIBRARY_PATH
  26360. - shlibpath_overrides_runpath=no
  26361. - hardcode_into_libs=yes
  26362. - dynamic_linker='NetBSD ld.elf_so'
  26363. - ;;
  26364. -netbsd*)
  26365. - version_type=sunos
  26366. - need_lib_prefix=no
  26367. - need_version=no
  26368. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26369. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26370. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26371. - dynamic_linker='NetBSD (a.out) ld.so'
  26372. - else
  26373. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26374. - soname_spec='${libname}${release}${shared_ext}$major'
  26375. - dynamic_linker='NetBSD ld.elf_so'
  26376. - fi
  26377. - shlibpath_var=LD_LIBRARY_PATH
  26378. - shlibpath_overrides_runpath=yes
  26379. - hardcode_into_libs=yes
  26380. - ;;
  26381. -newsos6)
  26382. - version_type=linux
  26383. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26384. - shlibpath_var=LD_LIBRARY_PATH
  26385. - shlibpath_overrides_runpath=yes
  26386. - ;;
  26387. + lt_prog_compiler_wl=
  26388. +lt_prog_compiler_pic=
  26389. +lt_prog_compiler_static=
  26390. -nto-qnx*)
  26391. - version_type=linux
  26392. - need_lib_prefix=no
  26393. - need_version=no
  26394. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26395. - soname_spec='${libname}${release}${shared_ext}$major'
  26396. - shlibpath_var=LD_LIBRARY_PATH
  26397. - shlibpath_overrides_runpath=yes
  26398. - ;;
  26399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  26400. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  26401. +
  26402. + if test "$GCC" = yes; then
  26403. + lt_prog_compiler_wl='-Wl,'
  26404. + lt_prog_compiler_static='-static'
  26405. -openbsd*)
  26406. - version_type=sunos
  26407. - sys_lib_dlsearch_path_spec="/usr/lib"
  26408. - need_lib_prefix=no
  26409. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  26410. - case $host_os in
  26411. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  26412. - *) need_version=no ;;
  26413. - esac
  26414. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26415. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26416. - shlibpath_var=LD_LIBRARY_PATH
  26417. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26418. case $host_os in
  26419. - openbsd2.[89] | openbsd2.[89].*)
  26420. - shlibpath_overrides_runpath=no
  26421. - ;;
  26422. - *)
  26423. - shlibpath_overrides_runpath=yes
  26424. - ;;
  26425. - esac
  26426. - else
  26427. - shlibpath_overrides_runpath=yes
  26428. - fi
  26429. - ;;
  26430. + aix*)
  26431. + # All AIX code is PIC.
  26432. + if test "$host_cpu" = ia64; then
  26433. + # AIX 5 now supports IA64 processor
  26434. + lt_prog_compiler_static='-Bstatic'
  26435. + fi
  26436. + ;;
  26437. -os2*)
  26438. - libname_spec='$name'
  26439. - shrext_cmds=".dll"
  26440. - need_lib_prefix=no
  26441. - library_names_spec='$libname${shared_ext} $libname.a'
  26442. - dynamic_linker='OS/2 ld.exe'
  26443. - shlibpath_var=LIBPATH
  26444. - ;;
  26445. + amigaos*)
  26446. + case $host_cpu in
  26447. + powerpc)
  26448. + # see comment about AmigaOS4 .so support
  26449. + lt_prog_compiler_pic='-fPIC'
  26450. + ;;
  26451. + m68k)
  26452. + # FIXME: we need at least 68020 code to build shared libraries, but
  26453. + # adding the `-m68020' flag to GCC prevents building anything better,
  26454. + # like `-m68040'.
  26455. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  26456. + ;;
  26457. + esac
  26458. + ;;
  26459. -osf3* | osf4* | osf5*)
  26460. - version_type=osf
  26461. - need_lib_prefix=no
  26462. - need_version=no
  26463. - soname_spec='${libname}${release}${shared_ext}$major'
  26464. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26465. - shlibpath_var=LD_LIBRARY_PATH
  26466. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  26467. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  26468. - ;;
  26469. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  26470. + # PIC is the default for these OSes.
  26471. + ;;
  26472. -rdos*)
  26473. - dynamic_linker=no
  26474. - ;;
  26475. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  26476. + # This hack is so that the source file can tell whether it is being
  26477. + # built for inclusion in a dll (and should export symbols for example).
  26478. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  26479. + # (--disable-auto-import) libraries
  26480. + lt_prog_compiler_pic='-DDLL_EXPORT'
  26481. + ;;
  26482. -solaris*)
  26483. - version_type=linux
  26484. - need_lib_prefix=no
  26485. - need_version=no
  26486. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26487. - soname_spec='${libname}${release}${shared_ext}$major'
  26488. - shlibpath_var=LD_LIBRARY_PATH
  26489. - shlibpath_overrides_runpath=yes
  26490. - hardcode_into_libs=yes
  26491. - # ldd complains unless libraries are executable
  26492. - postinstall_cmds='chmod +x $lib'
  26493. - ;;
  26494. + darwin* | rhapsody*)
  26495. + # PIC is the default on this platform
  26496. + # Common symbols not allowed in MH_DYLIB files
  26497. + lt_prog_compiler_pic='-fno-common'
  26498. + ;;
  26499. -sunos4*)
  26500. - version_type=sunos
  26501. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26502. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  26503. - shlibpath_var=LD_LIBRARY_PATH
  26504. - shlibpath_overrides_runpath=yes
  26505. - if test "$with_gnu_ld" = yes; then
  26506. - need_lib_prefix=no
  26507. - fi
  26508. - need_version=yes
  26509. - ;;
  26510. + hpux*)
  26511. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  26512. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  26513. + # sets the default TLS model and affects inlining.
  26514. + case $host_cpu in
  26515. + hppa*64*)
  26516. + # +Z the default
  26517. + ;;
  26518. + *)
  26519. + lt_prog_compiler_pic='-fPIC'
  26520. + ;;
  26521. + esac
  26522. + ;;
  26523. -sysv4 | sysv4.3*)
  26524. - version_type=linux
  26525. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26526. - soname_spec='${libname}${release}${shared_ext}$major'
  26527. - shlibpath_var=LD_LIBRARY_PATH
  26528. - case $host_vendor in
  26529. - sni)
  26530. - shlibpath_overrides_runpath=no
  26531. - need_lib_prefix=no
  26532. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  26533. - runpath_var=LD_RUN_PATH
  26534. + interix[3-9]*)
  26535. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  26536. + # Instead, we relocate shared libraries at runtime.
  26537. ;;
  26538. - siemens)
  26539. - need_lib_prefix=no
  26540. +
  26541. + msdosdjgpp*)
  26542. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  26543. + # on systems that don't support them.
  26544. + lt_prog_compiler_can_build_shared=no
  26545. + enable_shared=no
  26546. ;;
  26547. - motorola)
  26548. - need_lib_prefix=no
  26549. - need_version=no
  26550. - shlibpath_overrides_runpath=no
  26551. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  26552. +
  26553. + *nto* | *qnx*)
  26554. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  26555. + # it will coredump.
  26556. + lt_prog_compiler_pic='-fPIC -shared'
  26557. ;;
  26558. - esac
  26559. - ;;
  26560. -sysv4*MP*)
  26561. - if test -d /usr/nec ;then
  26562. - version_type=linux
  26563. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  26564. - soname_spec='$libname${shared_ext}.$major'
  26565. - shlibpath_var=LD_LIBRARY_PATH
  26566. - fi
  26567. - ;;
  26568. + sysv4*MP*)
  26569. + if test -d /usr/nec; then
  26570. + lt_prog_compiler_pic=-Kconform_pic
  26571. + fi
  26572. + ;;
  26573. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  26574. - version_type=freebsd-elf
  26575. - need_lib_prefix=no
  26576. - need_version=no
  26577. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26578. - soname_spec='${libname}${release}${shared_ext}$major'
  26579. - shlibpath_var=LD_LIBRARY_PATH
  26580. - hardcode_into_libs=yes
  26581. - if test "$with_gnu_ld" = yes; then
  26582. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  26583. - shlibpath_overrides_runpath=no
  26584. + *)
  26585. + lt_prog_compiler_pic='-fPIC'
  26586. + ;;
  26587. + esac
  26588. else
  26589. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  26590. - shlibpath_overrides_runpath=yes
  26591. + # PORTME Check for flag to pass linker flags through the system compiler.
  26592. case $host_os in
  26593. - sco3.2v5*)
  26594. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  26595. - ;;
  26596. - esac
  26597. - fi
  26598. - sys_lib_dlsearch_path_spec='/usr/lib'
  26599. - ;;
  26600. -
  26601. -uts4*)
  26602. - version_type=linux
  26603. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26604. - soname_spec='${libname}${release}${shared_ext}$major'
  26605. - shlibpath_var=LD_LIBRARY_PATH
  26606. - ;;
  26607. -
  26608. -*)
  26609. - dynamic_linker=no
  26610. - ;;
  26611. -esac
  26612. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  26613. -echo "${ECHO_T}$dynamic_linker" >&6; }
  26614. -test "$dynamic_linker" = no && can_build_shared=no
  26615. -
  26616. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  26617. -if test "$GCC" = yes; then
  26618. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  26619. -fi
  26620. -
  26621. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  26622. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  26623. -hardcode_action=
  26624. -if test -n "$hardcode_libdir_flag_spec" || \
  26625. - test -n "$runpath_var" || \
  26626. - test "X$hardcode_automatic" = "Xyes" ; then
  26627. + aix*)
  26628. + lt_prog_compiler_wl='-Wl,'
  26629. + if test "$host_cpu" = ia64; then
  26630. + # AIX 5 now supports IA64 processor
  26631. + lt_prog_compiler_static='-Bstatic'
  26632. + else
  26633. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  26634. + fi
  26635. + ;;
  26636. - # We can hardcode non-existant directories.
  26637. - if test "$hardcode_direct" != no &&
  26638. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  26639. - # have to relink, otherwise we might link with an installed library
  26640. - # when we should be linking with a yet-to-be-installed one
  26641. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  26642. - test "$hardcode_minus_L" != no; then
  26643. - # Linking always hardcodes the temporary library directory.
  26644. - hardcode_action=relink
  26645. - else
  26646. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  26647. - hardcode_action=immediate
  26648. - fi
  26649. -else
  26650. - # We cannot hardcode anything, or else we can only hardcode existing
  26651. - # directories.
  26652. - hardcode_action=unsupported
  26653. -fi
  26654. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  26655. -echo "${ECHO_T}$hardcode_action" >&6; }
  26656. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  26657. + # This hack is so that the source file can tell whether it is being
  26658. + # built for inclusion in a dll (and should export symbols for example).
  26659. + lt_prog_compiler_pic='-DDLL_EXPORT'
  26660. + ;;
  26661. -if test "$hardcode_action" = relink; then
  26662. - # Fast installation is not supported
  26663. - enable_fast_install=no
  26664. -elif test "$shlibpath_overrides_runpath" = yes ||
  26665. - test "$enable_shared" = no; then
  26666. - # Fast installation is not necessary
  26667. - enable_fast_install=needless
  26668. -fi
  26669. + hpux9* | hpux10* | hpux11*)
  26670. + lt_prog_compiler_wl='-Wl,'
  26671. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26672. + # not for PA HP-UX.
  26673. + case $host_cpu in
  26674. + hppa*64*|ia64*)
  26675. + # +Z the default
  26676. + ;;
  26677. + *)
  26678. + lt_prog_compiler_pic='+Z'
  26679. + ;;
  26680. + esac
  26681. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  26682. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  26683. + ;;
  26684. -striplib=
  26685. -old_striplib=
  26686. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  26687. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  26688. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  26689. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  26690. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  26691. - { echo "$as_me:$LINENO: result: yes" >&5
  26692. -echo "${ECHO_T}yes" >&6; }
  26693. -else
  26694. -# FIXME - insert some real tests, host_os isn't really good enough
  26695. - case $host_os in
  26696. - darwin*)
  26697. - if test -n "$STRIP" ; then
  26698. - striplib="$STRIP -x"
  26699. - old_striplib="$STRIP -S"
  26700. - { echo "$as_me:$LINENO: result: yes" >&5
  26701. -echo "${ECHO_T}yes" >&6; }
  26702. - else
  26703. - { echo "$as_me:$LINENO: result: no" >&5
  26704. -echo "${ECHO_T}no" >&6; }
  26705. -fi
  26706. - ;;
  26707. - *)
  26708. - { echo "$as_me:$LINENO: result: no" >&5
  26709. -echo "${ECHO_T}no" >&6; }
  26710. - ;;
  26711. - esac
  26712. -fi
  26713. -
  26714. -if test "x$enable_dlopen" != xyes; then
  26715. - enable_dlopen=unknown
  26716. - enable_dlopen_self=unknown
  26717. - enable_dlopen_self_static=unknown
  26718. -else
  26719. - lt_cv_dlopen=no
  26720. - lt_cv_dlopen_libs=
  26721. -
  26722. - case $host_os in
  26723. - beos*)
  26724. - lt_cv_dlopen="load_add_on"
  26725. - lt_cv_dlopen_libs=
  26726. - lt_cv_dlopen_self=yes
  26727. - ;;
  26728. -
  26729. - mingw* | pw32*)
  26730. - lt_cv_dlopen="LoadLibrary"
  26731. - lt_cv_dlopen_libs=
  26732. - ;;
  26733. -
  26734. - cygwin*)
  26735. - lt_cv_dlopen="dlopen"
  26736. - lt_cv_dlopen_libs=
  26737. - ;;
  26738. -
  26739. - darwin*)
  26740. - # if libdl is installed we need to link against it
  26741. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  26742. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  26743. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  26744. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26745. -else
  26746. - ac_check_lib_save_LIBS=$LIBS
  26747. -LIBS="-ldl $LIBS"
  26748. -cat >conftest.$ac_ext <<_ACEOF
  26749. -/* confdefs.h. */
  26750. -_ACEOF
  26751. -cat confdefs.h >>conftest.$ac_ext
  26752. -cat >>conftest.$ac_ext <<_ACEOF
  26753. -/* end confdefs.h. */
  26754. -
  26755. -/* Override any GCC internal prototype to avoid an error.
  26756. - Use char because int might match the return type of a GCC
  26757. - builtin and then its argument prototype would still apply. */
  26758. -#ifdef __cplusplus
  26759. -extern "C"
  26760. -#endif
  26761. -char dlopen ();
  26762. -int
  26763. -main ()
  26764. -{
  26765. -return dlopen ();
  26766. - ;
  26767. - return 0;
  26768. -}
  26769. -_ACEOF
  26770. -rm -f conftest.$ac_objext conftest$ac_exeext
  26771. -if { (ac_try="$ac_link"
  26772. -case "(($ac_try" in
  26773. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26774. - *) ac_try_echo=$ac_try;;
  26775. -esac
  26776. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26777. - (eval "$ac_link") 2>conftest.er1
  26778. - ac_status=$?
  26779. - grep -v '^ *+' conftest.er1 >conftest.err
  26780. - rm -f conftest.er1
  26781. - cat conftest.err >&5
  26782. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26783. - (exit $ac_status); } && {
  26784. - test -z "$ac_c_werror_flag" ||
  26785. - test ! -s conftest.err
  26786. - } && test -s conftest$ac_exeext &&
  26787. - $as_test_x conftest$ac_exeext; then
  26788. - ac_cv_lib_dl_dlopen=yes
  26789. -else
  26790. - echo "$as_me: failed program was:" >&5
  26791. -sed 's/^/| /' conftest.$ac_ext >&5
  26792. -
  26793. - ac_cv_lib_dl_dlopen=no
  26794. -fi
  26795. -
  26796. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26797. - conftest$ac_exeext conftest.$ac_ext
  26798. -LIBS=$ac_check_lib_save_LIBS
  26799. -fi
  26800. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  26801. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  26802. -if test $ac_cv_lib_dl_dlopen = yes; then
  26803. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  26804. -else
  26805. -
  26806. - lt_cv_dlopen="dyld"
  26807. - lt_cv_dlopen_libs=
  26808. - lt_cv_dlopen_self=yes
  26809. -
  26810. -fi
  26811. -
  26812. - ;;
  26813. -
  26814. - *)
  26815. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  26816. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  26817. -if test "${ac_cv_func_shl_load+set}" = set; then
  26818. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26819. -else
  26820. - cat >conftest.$ac_ext <<_ACEOF
  26821. -/* confdefs.h. */
  26822. -_ACEOF
  26823. -cat confdefs.h >>conftest.$ac_ext
  26824. -cat >>conftest.$ac_ext <<_ACEOF
  26825. -/* end confdefs.h. */
  26826. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  26827. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26828. -#define shl_load innocuous_shl_load
  26829. -
  26830. -/* System header to define __stub macros and hopefully few prototypes,
  26831. - which can conflict with char shl_load (); below.
  26832. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26833. - <limits.h> exists even on freestanding compilers. */
  26834. -
  26835. -#ifdef __STDC__
  26836. -# include <limits.h>
  26837. -#else
  26838. -# include <assert.h>
  26839. -#endif
  26840. -
  26841. -#undef shl_load
  26842. -
  26843. -/* Override any GCC internal prototype to avoid an error.
  26844. - Use char because int might match the return type of a GCC
  26845. - builtin and then its argument prototype would still apply. */
  26846. -#ifdef __cplusplus
  26847. -extern "C"
  26848. -#endif
  26849. -char shl_load ();
  26850. -/* The GNU C library defines this for functions which it implements
  26851. - to always fail with ENOSYS. Some functions are actually named
  26852. - something starting with __ and the normal name is an alias. */
  26853. -#if defined __stub_shl_load || defined __stub___shl_load
  26854. -choke me
  26855. -#endif
  26856. -
  26857. -int
  26858. -main ()
  26859. -{
  26860. -return shl_load ();
  26861. - ;
  26862. - return 0;
  26863. -}
  26864. -_ACEOF
  26865. -rm -f conftest.$ac_objext conftest$ac_exeext
  26866. -if { (ac_try="$ac_link"
  26867. -case "(($ac_try" in
  26868. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26869. - *) ac_try_echo=$ac_try;;
  26870. -esac
  26871. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26872. - (eval "$ac_link") 2>conftest.er1
  26873. - ac_status=$?
  26874. - grep -v '^ *+' conftest.er1 >conftest.err
  26875. - rm -f conftest.er1
  26876. - cat conftest.err >&5
  26877. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26878. - (exit $ac_status); } && {
  26879. - test -z "$ac_c_werror_flag" ||
  26880. - test ! -s conftest.err
  26881. - } && test -s conftest$ac_exeext &&
  26882. - $as_test_x conftest$ac_exeext; then
  26883. - ac_cv_func_shl_load=yes
  26884. -else
  26885. - echo "$as_me: failed program was:" >&5
  26886. -sed 's/^/| /' conftest.$ac_ext >&5
  26887. -
  26888. - ac_cv_func_shl_load=no
  26889. -fi
  26890. -
  26891. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26892. - conftest$ac_exeext conftest.$ac_ext
  26893. -fi
  26894. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  26895. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  26896. -if test $ac_cv_func_shl_load = yes; then
  26897. - lt_cv_dlopen="shl_load"
  26898. -else
  26899. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  26900. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  26901. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  26902. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26903. -else
  26904. - ac_check_lib_save_LIBS=$LIBS
  26905. -LIBS="-ldld $LIBS"
  26906. -cat >conftest.$ac_ext <<_ACEOF
  26907. -/* confdefs.h. */
  26908. -_ACEOF
  26909. -cat confdefs.h >>conftest.$ac_ext
  26910. -cat >>conftest.$ac_ext <<_ACEOF
  26911. -/* end confdefs.h. */
  26912. -
  26913. -/* Override any GCC internal prototype to avoid an error.
  26914. - Use char because int might match the return type of a GCC
  26915. - builtin and then its argument prototype would still apply. */
  26916. -#ifdef __cplusplus
  26917. -extern "C"
  26918. -#endif
  26919. -char shl_load ();
  26920. -int
  26921. -main ()
  26922. -{
  26923. -return shl_load ();
  26924. - ;
  26925. - return 0;
  26926. -}
  26927. -_ACEOF
  26928. -rm -f conftest.$ac_objext conftest$ac_exeext
  26929. -if { (ac_try="$ac_link"
  26930. -case "(($ac_try" in
  26931. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26932. - *) ac_try_echo=$ac_try;;
  26933. -esac
  26934. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26935. - (eval "$ac_link") 2>conftest.er1
  26936. - ac_status=$?
  26937. - grep -v '^ *+' conftest.er1 >conftest.err
  26938. - rm -f conftest.er1
  26939. - cat conftest.err >&5
  26940. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26941. - (exit $ac_status); } && {
  26942. - test -z "$ac_c_werror_flag" ||
  26943. - test ! -s conftest.err
  26944. - } && test -s conftest$ac_exeext &&
  26945. - $as_test_x conftest$ac_exeext; then
  26946. - ac_cv_lib_dld_shl_load=yes
  26947. -else
  26948. - echo "$as_me: failed program was:" >&5
  26949. -sed 's/^/| /' conftest.$ac_ext >&5
  26950. -
  26951. - ac_cv_lib_dld_shl_load=no
  26952. -fi
  26953. -
  26954. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26955. - conftest$ac_exeext conftest.$ac_ext
  26956. -LIBS=$ac_check_lib_save_LIBS
  26957. -fi
  26958. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  26959. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  26960. -if test $ac_cv_lib_dld_shl_load = yes; then
  26961. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  26962. -else
  26963. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  26964. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  26965. -if test "${ac_cv_func_dlopen+set}" = set; then
  26966. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26967. -else
  26968. - cat >conftest.$ac_ext <<_ACEOF
  26969. -/* confdefs.h. */
  26970. -_ACEOF
  26971. -cat confdefs.h >>conftest.$ac_ext
  26972. -cat >>conftest.$ac_ext <<_ACEOF
  26973. -/* end confdefs.h. */
  26974. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  26975. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26976. -#define dlopen innocuous_dlopen
  26977. -
  26978. -/* System header to define __stub macros and hopefully few prototypes,
  26979. - which can conflict with char dlopen (); below.
  26980. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26981. - <limits.h> exists even on freestanding compilers. */
  26982. -
  26983. -#ifdef __STDC__
  26984. -# include <limits.h>
  26985. -#else
  26986. -# include <assert.h>
  26987. -#endif
  26988. -
  26989. -#undef dlopen
  26990. -
  26991. -/* Override any GCC internal prototype to avoid an error.
  26992. - Use char because int might match the return type of a GCC
  26993. - builtin and then its argument prototype would still apply. */
  26994. -#ifdef __cplusplus
  26995. -extern "C"
  26996. -#endif
  26997. -char dlopen ();
  26998. -/* The GNU C library defines this for functions which it implements
  26999. - to always fail with ENOSYS. Some functions are actually named
  27000. - something starting with __ and the normal name is an alias. */
  27001. -#if defined __stub_dlopen || defined __stub___dlopen
  27002. -choke me
  27003. -#endif
  27004. -
  27005. -int
  27006. -main ()
  27007. -{
  27008. -return dlopen ();
  27009. - ;
  27010. - return 0;
  27011. -}
  27012. -_ACEOF
  27013. -rm -f conftest.$ac_objext conftest$ac_exeext
  27014. -if { (ac_try="$ac_link"
  27015. -case "(($ac_try" in
  27016. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27017. - *) ac_try_echo=$ac_try;;
  27018. -esac
  27019. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27020. - (eval "$ac_link") 2>conftest.er1
  27021. - ac_status=$?
  27022. - grep -v '^ *+' conftest.er1 >conftest.err
  27023. - rm -f conftest.er1
  27024. - cat conftest.err >&5
  27025. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27026. - (exit $ac_status); } && {
  27027. - test -z "$ac_c_werror_flag" ||
  27028. - test ! -s conftest.err
  27029. - } && test -s conftest$ac_exeext &&
  27030. - $as_test_x conftest$ac_exeext; then
  27031. - ac_cv_func_dlopen=yes
  27032. -else
  27033. - echo "$as_me: failed program was:" >&5
  27034. -sed 's/^/| /' conftest.$ac_ext >&5
  27035. -
  27036. - ac_cv_func_dlopen=no
  27037. -fi
  27038. -
  27039. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27040. - conftest$ac_exeext conftest.$ac_ext
  27041. -fi
  27042. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  27043. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  27044. -if test $ac_cv_func_dlopen = yes; then
  27045. - lt_cv_dlopen="dlopen"
  27046. -else
  27047. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  27048. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  27049. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  27050. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27051. -else
  27052. - ac_check_lib_save_LIBS=$LIBS
  27053. -LIBS="-ldl $LIBS"
  27054. -cat >conftest.$ac_ext <<_ACEOF
  27055. -/* confdefs.h. */
  27056. -_ACEOF
  27057. -cat confdefs.h >>conftest.$ac_ext
  27058. -cat >>conftest.$ac_ext <<_ACEOF
  27059. -/* end confdefs.h. */
  27060. -
  27061. -/* Override any GCC internal prototype to avoid an error.
  27062. - Use char because int might match the return type of a GCC
  27063. - builtin and then its argument prototype would still apply. */
  27064. -#ifdef __cplusplus
  27065. -extern "C"
  27066. -#endif
  27067. -char dlopen ();
  27068. -int
  27069. -main ()
  27070. -{
  27071. -return dlopen ();
  27072. - ;
  27073. - return 0;
  27074. -}
  27075. -_ACEOF
  27076. -rm -f conftest.$ac_objext conftest$ac_exeext
  27077. -if { (ac_try="$ac_link"
  27078. -case "(($ac_try" in
  27079. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27080. - *) ac_try_echo=$ac_try;;
  27081. -esac
  27082. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27083. - (eval "$ac_link") 2>conftest.er1
  27084. - ac_status=$?
  27085. - grep -v '^ *+' conftest.er1 >conftest.err
  27086. - rm -f conftest.er1
  27087. - cat conftest.err >&5
  27088. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27089. - (exit $ac_status); } && {
  27090. - test -z "$ac_c_werror_flag" ||
  27091. - test ! -s conftest.err
  27092. - } && test -s conftest$ac_exeext &&
  27093. - $as_test_x conftest$ac_exeext; then
  27094. - ac_cv_lib_dl_dlopen=yes
  27095. -else
  27096. - echo "$as_me: failed program was:" >&5
  27097. -sed 's/^/| /' conftest.$ac_ext >&5
  27098. -
  27099. - ac_cv_lib_dl_dlopen=no
  27100. -fi
  27101. -
  27102. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27103. - conftest$ac_exeext conftest.$ac_ext
  27104. -LIBS=$ac_check_lib_save_LIBS
  27105. -fi
  27106. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  27107. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  27108. -if test $ac_cv_lib_dl_dlopen = yes; then
  27109. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  27110. -else
  27111. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  27112. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  27113. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  27114. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27115. -else
  27116. - ac_check_lib_save_LIBS=$LIBS
  27117. -LIBS="-lsvld $LIBS"
  27118. -cat >conftest.$ac_ext <<_ACEOF
  27119. -/* confdefs.h. */
  27120. -_ACEOF
  27121. -cat confdefs.h >>conftest.$ac_ext
  27122. -cat >>conftest.$ac_ext <<_ACEOF
  27123. -/* end confdefs.h. */
  27124. -
  27125. -/* Override any GCC internal prototype to avoid an error.
  27126. - Use char because int might match the return type of a GCC
  27127. - builtin and then its argument prototype would still apply. */
  27128. -#ifdef __cplusplus
  27129. -extern "C"
  27130. -#endif
  27131. -char dlopen ();
  27132. -int
  27133. -main ()
  27134. -{
  27135. -return dlopen ();
  27136. - ;
  27137. - return 0;
  27138. -}
  27139. -_ACEOF
  27140. -rm -f conftest.$ac_objext conftest$ac_exeext
  27141. -if { (ac_try="$ac_link"
  27142. -case "(($ac_try" in
  27143. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27144. - *) ac_try_echo=$ac_try;;
  27145. -esac
  27146. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27147. - (eval "$ac_link") 2>conftest.er1
  27148. - ac_status=$?
  27149. - grep -v '^ *+' conftest.er1 >conftest.err
  27150. - rm -f conftest.er1
  27151. - cat conftest.err >&5
  27152. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27153. - (exit $ac_status); } && {
  27154. - test -z "$ac_c_werror_flag" ||
  27155. - test ! -s conftest.err
  27156. - } && test -s conftest$ac_exeext &&
  27157. - $as_test_x conftest$ac_exeext; then
  27158. - ac_cv_lib_svld_dlopen=yes
  27159. -else
  27160. - echo "$as_me: failed program was:" >&5
  27161. -sed 's/^/| /' conftest.$ac_ext >&5
  27162. -
  27163. - ac_cv_lib_svld_dlopen=no
  27164. -fi
  27165. -
  27166. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27167. - conftest$ac_exeext conftest.$ac_ext
  27168. -LIBS=$ac_check_lib_save_LIBS
  27169. -fi
  27170. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  27171. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  27172. -if test $ac_cv_lib_svld_dlopen = yes; then
  27173. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  27174. -else
  27175. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  27176. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  27177. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  27178. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27179. -else
  27180. - ac_check_lib_save_LIBS=$LIBS
  27181. -LIBS="-ldld $LIBS"
  27182. -cat >conftest.$ac_ext <<_ACEOF
  27183. -/* confdefs.h. */
  27184. -_ACEOF
  27185. -cat confdefs.h >>conftest.$ac_ext
  27186. -cat >>conftest.$ac_ext <<_ACEOF
  27187. -/* end confdefs.h. */
  27188. -
  27189. -/* Override any GCC internal prototype to avoid an error.
  27190. - Use char because int might match the return type of a GCC
  27191. - builtin and then its argument prototype would still apply. */
  27192. -#ifdef __cplusplus
  27193. -extern "C"
  27194. -#endif
  27195. -char dld_link ();
  27196. -int
  27197. -main ()
  27198. -{
  27199. -return dld_link ();
  27200. - ;
  27201. - return 0;
  27202. -}
  27203. -_ACEOF
  27204. -rm -f conftest.$ac_objext conftest$ac_exeext
  27205. -if { (ac_try="$ac_link"
  27206. -case "(($ac_try" in
  27207. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27208. - *) ac_try_echo=$ac_try;;
  27209. -esac
  27210. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27211. - (eval "$ac_link") 2>conftest.er1
  27212. - ac_status=$?
  27213. - grep -v '^ *+' conftest.er1 >conftest.err
  27214. - rm -f conftest.er1
  27215. - cat conftest.err >&5
  27216. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27217. - (exit $ac_status); } && {
  27218. - test -z "$ac_c_werror_flag" ||
  27219. - test ! -s conftest.err
  27220. - } && test -s conftest$ac_exeext &&
  27221. - $as_test_x conftest$ac_exeext; then
  27222. - ac_cv_lib_dld_dld_link=yes
  27223. -else
  27224. - echo "$as_me: failed program was:" >&5
  27225. -sed 's/^/| /' conftest.$ac_ext >&5
  27226. -
  27227. - ac_cv_lib_dld_dld_link=no
  27228. -fi
  27229. -
  27230. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27231. - conftest$ac_exeext conftest.$ac_ext
  27232. -LIBS=$ac_check_lib_save_LIBS
  27233. -fi
  27234. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  27235. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  27236. -if test $ac_cv_lib_dld_dld_link = yes; then
  27237. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  27238. -fi
  27239. -
  27240. -
  27241. -fi
  27242. -
  27243. -
  27244. -fi
  27245. -
  27246. -
  27247. -fi
  27248. -
  27249. -
  27250. -fi
  27251. -
  27252. -
  27253. -fi
  27254. -
  27255. - ;;
  27256. - esac
  27257. -
  27258. - if test "x$lt_cv_dlopen" != xno; then
  27259. - enable_dlopen=yes
  27260. - else
  27261. - enable_dlopen=no
  27262. - fi
  27263. -
  27264. - case $lt_cv_dlopen in
  27265. - dlopen)
  27266. - save_CPPFLAGS="$CPPFLAGS"
  27267. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  27268. -
  27269. - save_LDFLAGS="$LDFLAGS"
  27270. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  27271. -
  27272. - save_LIBS="$LIBS"
  27273. - LIBS="$lt_cv_dlopen_libs $LIBS"
  27274. -
  27275. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  27276. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  27277. -if test "${lt_cv_dlopen_self+set}" = set; then
  27278. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27279. -else
  27280. - if test "$cross_compiling" = yes; then :
  27281. - lt_cv_dlopen_self=cross
  27282. -else
  27283. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  27284. - lt_status=$lt_dlunknown
  27285. - cat > conftest.$ac_ext <<EOF
  27286. -#line 10238 "configure"
  27287. -#include "confdefs.h"
  27288. -
  27289. -#if HAVE_DLFCN_H
  27290. -#include <dlfcn.h>
  27291. -#endif
  27292. -
  27293. -#include <stdio.h>
  27294. -
  27295. -#ifdef RTLD_GLOBAL
  27296. -# define LT_DLGLOBAL RTLD_GLOBAL
  27297. -#else
  27298. -# ifdef DL_GLOBAL
  27299. -# define LT_DLGLOBAL DL_GLOBAL
  27300. -# else
  27301. -# define LT_DLGLOBAL 0
  27302. -# endif
  27303. -#endif
  27304. -
  27305. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  27306. - find out it does not work in some platform. */
  27307. -#ifndef LT_DLLAZY_OR_NOW
  27308. -# ifdef RTLD_LAZY
  27309. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  27310. -# else
  27311. -# ifdef DL_LAZY
  27312. -# define LT_DLLAZY_OR_NOW DL_LAZY
  27313. -# else
  27314. -# ifdef RTLD_NOW
  27315. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  27316. -# else
  27317. -# ifdef DL_NOW
  27318. -# define LT_DLLAZY_OR_NOW DL_NOW
  27319. -# else
  27320. -# define LT_DLLAZY_OR_NOW 0
  27321. -# endif
  27322. -# endif
  27323. -# endif
  27324. -# endif
  27325. -#endif
  27326. -
  27327. -#ifdef __cplusplus
  27328. -extern "C" void exit (int);
  27329. -#endif
  27330. -
  27331. -void fnord() { int i=42;}
  27332. -int main ()
  27333. -{
  27334. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  27335. - int status = $lt_dlunknown;
  27336. -
  27337. - if (self)
  27338. - {
  27339. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  27340. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  27341. - /* dlclose (self); */
  27342. - }
  27343. - else
  27344. - puts (dlerror ());
  27345. -
  27346. - exit (status);
  27347. -}
  27348. -EOF
  27349. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27350. - (eval $ac_link) 2>&5
  27351. - ac_status=$?
  27352. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27353. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  27354. - (./conftest; exit; ) >&5 2>/dev/null
  27355. - lt_status=$?
  27356. - case x$lt_status in
  27357. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  27358. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  27359. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  27360. - esac
  27361. - else :
  27362. - # compilation failed
  27363. - lt_cv_dlopen_self=no
  27364. - fi
  27365. -fi
  27366. -rm -fr conftest*
  27367. -
  27368. -
  27369. -fi
  27370. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  27371. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  27372. -
  27373. - if test "x$lt_cv_dlopen_self" = xyes; then
  27374. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  27375. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  27376. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  27377. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  27378. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27379. -else
  27380. - if test "$cross_compiling" = yes; then :
  27381. - lt_cv_dlopen_self_static=cross
  27382. -else
  27383. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  27384. - lt_status=$lt_dlunknown
  27385. - cat > conftest.$ac_ext <<EOF
  27386. -#line 10338 "configure"
  27387. -#include "confdefs.h"
  27388. -
  27389. -#if HAVE_DLFCN_H
  27390. -#include <dlfcn.h>
  27391. -#endif
  27392. -
  27393. -#include <stdio.h>
  27394. -
  27395. -#ifdef RTLD_GLOBAL
  27396. -# define LT_DLGLOBAL RTLD_GLOBAL
  27397. -#else
  27398. -# ifdef DL_GLOBAL
  27399. -# define LT_DLGLOBAL DL_GLOBAL
  27400. -# else
  27401. -# define LT_DLGLOBAL 0
  27402. -# endif
  27403. -#endif
  27404. -
  27405. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  27406. - find out it does not work in some platform. */
  27407. -#ifndef LT_DLLAZY_OR_NOW
  27408. -# ifdef RTLD_LAZY
  27409. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  27410. -# else
  27411. -# ifdef DL_LAZY
  27412. -# define LT_DLLAZY_OR_NOW DL_LAZY
  27413. -# else
  27414. -# ifdef RTLD_NOW
  27415. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  27416. -# else
  27417. -# ifdef DL_NOW
  27418. -# define LT_DLLAZY_OR_NOW DL_NOW
  27419. -# else
  27420. -# define LT_DLLAZY_OR_NOW 0
  27421. -# endif
  27422. -# endif
  27423. -# endif
  27424. -# endif
  27425. -#endif
  27426. -
  27427. -#ifdef __cplusplus
  27428. -extern "C" void exit (int);
  27429. -#endif
  27430. -
  27431. -void fnord() { int i=42;}
  27432. -int main ()
  27433. -{
  27434. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  27435. - int status = $lt_dlunknown;
  27436. -
  27437. - if (self)
  27438. - {
  27439. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  27440. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  27441. - /* dlclose (self); */
  27442. - }
  27443. - else
  27444. - puts (dlerror ());
  27445. -
  27446. - exit (status);
  27447. -}
  27448. -EOF
  27449. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27450. - (eval $ac_link) 2>&5
  27451. - ac_status=$?
  27452. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27453. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  27454. - (./conftest; exit; ) >&5 2>/dev/null
  27455. - lt_status=$?
  27456. - case x$lt_status in
  27457. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  27458. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  27459. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  27460. - esac
  27461. - else :
  27462. - # compilation failed
  27463. - lt_cv_dlopen_self_static=no
  27464. - fi
  27465. -fi
  27466. -rm -fr conftest*
  27467. -
  27468. -
  27469. -fi
  27470. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  27471. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  27472. - fi
  27473. -
  27474. - CPPFLAGS="$save_CPPFLAGS"
  27475. - LDFLAGS="$save_LDFLAGS"
  27476. - LIBS="$save_LIBS"
  27477. - ;;
  27478. - esac
  27479. -
  27480. - case $lt_cv_dlopen_self in
  27481. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  27482. - *) enable_dlopen_self=unknown ;;
  27483. - esac
  27484. -
  27485. - case $lt_cv_dlopen_self_static in
  27486. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  27487. - *) enable_dlopen_self_static=unknown ;;
  27488. - esac
  27489. -fi
  27490. -
  27491. -
  27492. -# Report which library types will actually be built
  27493. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  27494. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  27495. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  27496. -echo "${ECHO_T}$can_build_shared" >&6; }
  27497. -
  27498. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  27499. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  27500. -test "$can_build_shared" = "no" && enable_shared=no
  27501. -
  27502. -# On AIX, shared libraries and static libraries use the same namespace, and
  27503. -# are all built from PIC.
  27504. -case $host_os in
  27505. -aix3*)
  27506. - test "$enable_shared" = yes && enable_static=no
  27507. - if test -n "$RANLIB"; then
  27508. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  27509. - postinstall_cmds='$RANLIB $lib'
  27510. - fi
  27511. - ;;
  27512. -
  27513. -aix4* | aix5*)
  27514. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  27515. - test "$enable_shared" = yes && enable_static=no
  27516. - fi
  27517. - ;;
  27518. -esac
  27519. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  27520. -echo "${ECHO_T}$enable_shared" >&6; }
  27521. -
  27522. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  27523. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  27524. -# Make sure either enable_shared or enable_static is yes.
  27525. -test "$enable_shared" = yes || enable_static=yes
  27526. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  27527. -echo "${ECHO_T}$enable_static" >&6; }
  27528. -
  27529. -# The else clause should only fire when bootstrapping the
  27530. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  27531. -# with your package, and you will get complaints that there are
  27532. -# no rules to generate ltmain.sh.
  27533. -if test -f "$ltmain"; then
  27534. - # See if we are running on zsh, and set the options which allow our commands through
  27535. - # without removal of \ escapes.
  27536. - if test -n "${ZSH_VERSION+set}" ; then
  27537. - setopt NO_GLOB_SUBST
  27538. - fi
  27539. - # Now quote all the things that may contain metacharacters while being
  27540. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  27541. - # variables and quote the copies for generation of the libtool script.
  27542. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  27543. - SED SHELL STRIP \
  27544. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  27545. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  27546. - deplibs_check_method reload_flag reload_cmds need_locks \
  27547. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  27548. - lt_cv_sys_global_symbol_to_c_name_address \
  27549. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  27550. - old_postinstall_cmds old_postuninstall_cmds \
  27551. - compiler \
  27552. - CC \
  27553. - LD \
  27554. - lt_prog_compiler_wl \
  27555. - lt_prog_compiler_pic \
  27556. - lt_prog_compiler_static \
  27557. - lt_prog_compiler_no_builtin_flag \
  27558. - export_dynamic_flag_spec \
  27559. - thread_safe_flag_spec \
  27560. - whole_archive_flag_spec \
  27561. - enable_shared_with_static_runtimes \
  27562. - old_archive_cmds \
  27563. - old_archive_from_new_cmds \
  27564. - predep_objects \
  27565. - postdep_objects \
  27566. - predeps \
  27567. - postdeps \
  27568. - compiler_lib_search_path \
  27569. - archive_cmds \
  27570. - archive_expsym_cmds \
  27571. - postinstall_cmds \
  27572. - postuninstall_cmds \
  27573. - old_archive_from_expsyms_cmds \
  27574. - allow_undefined_flag \
  27575. - no_undefined_flag \
  27576. - export_symbols_cmds \
  27577. - hardcode_libdir_flag_spec \
  27578. - hardcode_libdir_flag_spec_ld \
  27579. - hardcode_libdir_separator \
  27580. - hardcode_automatic \
  27581. - module_cmds \
  27582. - module_expsym_cmds \
  27583. - lt_cv_prog_compiler_c_o \
  27584. - fix_srcfile_path \
  27585. - exclude_expsyms \
  27586. - include_expsyms; do
  27587. -
  27588. - case $var in
  27589. - old_archive_cmds | \
  27590. - old_archive_from_new_cmds | \
  27591. - archive_cmds | \
  27592. - archive_expsym_cmds | \
  27593. - module_cmds | \
  27594. - module_expsym_cmds | \
  27595. - old_archive_from_expsyms_cmds | \
  27596. - export_symbols_cmds | \
  27597. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  27598. - postinstall_cmds | postuninstall_cmds | \
  27599. - old_postinstall_cmds | old_postuninstall_cmds | \
  27600. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  27601. - # Double-quote double-evaled strings.
  27602. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  27603. - ;;
  27604. - *)
  27605. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  27606. - ;;
  27607. - esac
  27608. - done
  27609. -
  27610. - case $lt_echo in
  27611. - *'\$0 --fallback-echo"')
  27612. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  27613. - ;;
  27614. - esac
  27615. -
  27616. -cfgfile="${ofile}T"
  27617. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  27618. - $rm -f "$cfgfile"
  27619. - { echo "$as_me:$LINENO: creating $ofile" >&5
  27620. -echo "$as_me: creating $ofile" >&6;}
  27621. -
  27622. - cat <<__EOF__ >> "$cfgfile"
  27623. -#! $SHELL
  27624. -
  27625. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  27626. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  27627. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27628. -#
  27629. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  27630. -# Free Software Foundation, Inc.
  27631. -#
  27632. -# This file is part of GNU Libtool:
  27633. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  27634. -#
  27635. -# This program is free software; you can redistribute it and/or modify
  27636. -# it under the terms of the GNU General Public License as published by
  27637. -# the Free Software Foundation; either version 2 of the License, or
  27638. -# (at your option) any later version.
  27639. -#
  27640. -# This program is distributed in the hope that it will be useful, but
  27641. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  27642. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  27643. -# General Public License for more details.
  27644. -#
  27645. -# You should have received a copy of the GNU General Public License
  27646. -# along with this program; if not, write to the Free Software
  27647. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  27648. -#
  27649. -# As a special exception to the GNU General Public License, if you
  27650. -# distribute this file as part of a program that contains a
  27651. -# configuration script generated by Autoconf, you may include it under
  27652. -# the same distribution terms that you use for the rest of that program.
  27653. -
  27654. -# A sed program that does not truncate output.
  27655. -SED=$lt_SED
  27656. -
  27657. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27658. -Xsed="$SED -e 1s/^X//"
  27659. -
  27660. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  27661. -# if CDPATH is set.
  27662. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27663. -
  27664. -# The names of the tagged configurations supported by this script.
  27665. -available_tags=
  27666. -
  27667. -# ### BEGIN LIBTOOL CONFIG
  27668. -
  27669. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27670. -
  27671. -# Shell to use when invoking shell scripts.
  27672. -SHELL=$lt_SHELL
  27673. -
  27674. -# Whether or not to build shared libraries.
  27675. -build_libtool_libs=$enable_shared
  27676. -
  27677. -# Whether or not to build static libraries.
  27678. -build_old_libs=$enable_static
  27679. -
  27680. -# Whether or not to add -lc for building shared libraries.
  27681. -build_libtool_need_lc=$archive_cmds_need_lc
  27682. -
  27683. -# Whether or not to disallow shared libs when runtime libs are static
  27684. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27685. -
  27686. -# Whether or not to optimize for fast installation.
  27687. -fast_install=$enable_fast_install
  27688. -
  27689. -# The host system.
  27690. -host_alias=$host_alias
  27691. -host=$host
  27692. -host_os=$host_os
  27693. -
  27694. -# The build system.
  27695. -build_alias=$build_alias
  27696. -build=$build
  27697. -build_os=$build_os
  27698. -
  27699. -# An echo program that does not interpret backslashes.
  27700. -echo=$lt_echo
  27701. -
  27702. -# The archiver.
  27703. -AR=$lt_AR
  27704. -AR_FLAGS=$lt_AR_FLAGS
  27705. -
  27706. -# A C compiler.
  27707. -LTCC=$lt_LTCC
  27708. -
  27709. -# LTCC compiler flags.
  27710. -LTCFLAGS=$lt_LTCFLAGS
  27711. -
  27712. -# A language-specific compiler.
  27713. -CC=$lt_compiler
  27714. -
  27715. -# Is the compiler the GNU C compiler?
  27716. -with_gcc=$GCC
  27717. -
  27718. -# An ERE matcher.
  27719. -EGREP=$lt_EGREP
  27720. -
  27721. -# The linker used to build libraries.
  27722. -LD=$lt_LD
  27723. -
  27724. -# Whether we need hard or soft links.
  27725. -LN_S=$lt_LN_S
  27726. -
  27727. -# A BSD-compatible nm program.
  27728. -NM=$lt_NM
  27729. -
  27730. -# A symbol stripping program
  27731. -STRIP=$lt_STRIP
  27732. -
  27733. -# Used to examine libraries when file_magic_cmd begins "file"
  27734. -MAGIC_CMD=$MAGIC_CMD
  27735. -
  27736. -# Used on cygwin: DLL creation program.
  27737. -DLLTOOL="$DLLTOOL"
  27738. -
  27739. -# Used on cygwin: object dumper.
  27740. -OBJDUMP="$OBJDUMP"
  27741. -
  27742. -# Used on cygwin: assembler.
  27743. -AS="$AS"
  27744. -
  27745. -# The name of the directory that contains temporary libtool files.
  27746. -objdir=$objdir
  27747. -
  27748. -# How to create reloadable object files.
  27749. -reload_flag=$lt_reload_flag
  27750. -reload_cmds=$lt_reload_cmds
  27751. -
  27752. -# How to pass a linker flag through the compiler.
  27753. -wl=$lt_lt_prog_compiler_wl
  27754. -
  27755. -# Object file suffix (normally "o").
  27756. -objext="$ac_objext"
  27757. -
  27758. -# Old archive suffix (normally "a").
  27759. -libext="$libext"
  27760. -
  27761. -# Shared library suffix (normally ".so").
  27762. -shrext_cmds='$shrext_cmds'
  27763. -
  27764. -# Executable file suffix (normally "").
  27765. -exeext="$exeext"
  27766. -
  27767. -# Additional compiler flags for building library objects.
  27768. -pic_flag=$lt_lt_prog_compiler_pic
  27769. -pic_mode=$pic_mode
  27770. -
  27771. -# What is the maximum length of a command?
  27772. -max_cmd_len=$lt_cv_sys_max_cmd_len
  27773. -
  27774. -# Does compiler simultaneously support -c and -o options?
  27775. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27776. -
  27777. -# Must we lock files when doing compilation?
  27778. -need_locks=$lt_need_locks
  27779. -
  27780. -# Do we need the lib prefix for modules?
  27781. -need_lib_prefix=$need_lib_prefix
  27782. -
  27783. -# Do we need a version for libraries?
  27784. -need_version=$need_version
  27785. -
  27786. -# Whether dlopen is supported.
  27787. -dlopen_support=$enable_dlopen
  27788. -
  27789. -# Whether dlopen of programs is supported.
  27790. -dlopen_self=$enable_dlopen_self
  27791. -
  27792. -# Whether dlopen of statically linked programs is supported.
  27793. -dlopen_self_static=$enable_dlopen_self_static
  27794. -
  27795. -# Compiler flag to prevent dynamic linking.
  27796. -link_static_flag=$lt_lt_prog_compiler_static
  27797. -
  27798. -# Compiler flag to turn off builtin functions.
  27799. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27800. -
  27801. -# Compiler flag to allow reflexive dlopens.
  27802. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27803. -
  27804. -# Compiler flag to generate shared objects directly from archives.
  27805. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27806. -
  27807. -# Compiler flag to generate thread-safe objects.
  27808. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  27809. -
  27810. -# Library versioning type.
  27811. -version_type=$version_type
  27812. -
  27813. -# Format of library name prefix.
  27814. -libname_spec=$lt_libname_spec
  27815. -
  27816. -# List of archive names. First name is the real one, the rest are links.
  27817. -# The last name is the one that the linker finds with -lNAME.
  27818. -library_names_spec=$lt_library_names_spec
  27819. -
  27820. -# The coded name of the library, if different from the real name.
  27821. -soname_spec=$lt_soname_spec
  27822. -
  27823. -# Commands used to build and install an old-style archive.
  27824. -RANLIB=$lt_RANLIB
  27825. -old_archive_cmds=$lt_old_archive_cmds
  27826. -old_postinstall_cmds=$lt_old_postinstall_cmds
  27827. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27828. -
  27829. -# Create an old-style archive from a shared archive.
  27830. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27831. -
  27832. -# Create a temporary old-style archive to link instead of a shared archive.
  27833. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27834. -
  27835. -# Commands used to build and install a shared archive.
  27836. -archive_cmds=$lt_archive_cmds
  27837. -archive_expsym_cmds=$lt_archive_expsym_cmds
  27838. -postinstall_cmds=$lt_postinstall_cmds
  27839. -postuninstall_cmds=$lt_postuninstall_cmds
  27840. -
  27841. -# Commands used to build a loadable module (assumed same as above if empty)
  27842. -module_cmds=$lt_module_cmds
  27843. -module_expsym_cmds=$lt_module_expsym_cmds
  27844. -
  27845. -# Commands to strip libraries.
  27846. -old_striplib=$lt_old_striplib
  27847. -striplib=$lt_striplib
  27848. -
  27849. -# Dependencies to place before the objects being linked to create a
  27850. -# shared library.
  27851. -predep_objects=$lt_predep_objects
  27852. -
  27853. -# Dependencies to place after the objects being linked to create a
  27854. -# shared library.
  27855. -postdep_objects=$lt_postdep_objects
  27856. -
  27857. -# Dependencies to place before the objects being linked to create a
  27858. -# shared library.
  27859. -predeps=$lt_predeps
  27860. -
  27861. -# Dependencies to place after the objects being linked to create a
  27862. -# shared library.
  27863. -postdeps=$lt_postdeps
  27864. -
  27865. -# The library search path used internally by the compiler when linking
  27866. -# a shared library.
  27867. -compiler_lib_search_path=$lt_compiler_lib_search_path
  27868. -
  27869. -# Method to check whether dependent libraries are shared objects.
  27870. -deplibs_check_method=$lt_deplibs_check_method
  27871. -
  27872. -# Command to use when deplibs_check_method == file_magic.
  27873. -file_magic_cmd=$lt_file_magic_cmd
  27874. -
  27875. -# Flag that allows shared libraries with undefined symbols to be built.
  27876. -allow_undefined_flag=$lt_allow_undefined_flag
  27877. -
  27878. -# Flag that forces no undefined symbols.
  27879. -no_undefined_flag=$lt_no_undefined_flag
  27880. -
  27881. -# Commands used to finish a libtool library installation in a directory.
  27882. -finish_cmds=$lt_finish_cmds
  27883. -
  27884. -# Same as above, but a single script fragment to be evaled but not shown.
  27885. -finish_eval=$lt_finish_eval
  27886. -
  27887. -# Take the output of nm and produce a listing of raw symbols and C names.
  27888. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27889. -
  27890. -# Transform the output of nm in a proper C declaration
  27891. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27892. -
  27893. -# Transform the output of nm in a C name address pair
  27894. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27895. -
  27896. -# This is the shared library runtime path variable.
  27897. -runpath_var=$runpath_var
  27898. -
  27899. -# This is the shared library path variable.
  27900. -shlibpath_var=$shlibpath_var
  27901. -
  27902. -# Is shlibpath searched before the hard-coded library search path?
  27903. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27904. -
  27905. -# How to hardcode a shared library path into an executable.
  27906. -hardcode_action=$hardcode_action
  27907. -
  27908. -# Whether we should hardcode library paths into libraries.
  27909. -hardcode_into_libs=$hardcode_into_libs
  27910. -
  27911. -# Flag to hardcode \$libdir into a binary during linking.
  27912. -# This must work even if \$libdir does not exist.
  27913. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27914. -
  27915. -# If ld is used when linking, flag to hardcode \$libdir into
  27916. -# a binary during linking. This must work even if \$libdir does
  27917. -# not exist.
  27918. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  27919. -
  27920. -# Whether we need a single -rpath flag with a separated argument.
  27921. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27922. -
  27923. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  27924. -# resulting binary.
  27925. -hardcode_direct=$hardcode_direct
  27926. -
  27927. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  27928. -# resulting binary.
  27929. -hardcode_minus_L=$hardcode_minus_L
  27930. -
  27931. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  27932. -# the resulting binary.
  27933. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  27934. -
  27935. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  27936. -# and all subsequent libraries and executables linked against it.
  27937. -hardcode_automatic=$hardcode_automatic
  27938. -
  27939. -# Variables whose values should be saved in libtool wrapper scripts and
  27940. -# restored at relink time.
  27941. -variables_saved_for_relink="$variables_saved_for_relink"
  27942. -
  27943. -# Whether libtool must link a program against all its dependency libraries.
  27944. -link_all_deplibs=$link_all_deplibs
  27945. -
  27946. -# Compile-time system search path for libraries
  27947. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27948. -
  27949. -# Run-time system search path for libraries
  27950. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  27951. -
  27952. -# Fix the shell variable \$srcfile for the compiler.
  27953. -fix_srcfile_path=$lt_fix_srcfile_path
  27954. -
  27955. -# Set to yes if exported symbols are required.
  27956. -always_export_symbols=$always_export_symbols
  27957. -
  27958. -# The commands to list exported symbols.
  27959. -export_symbols_cmds=$lt_export_symbols_cmds
  27960. -
  27961. -# The commands to extract the exported symbol list from a shared archive.
  27962. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27963. -
  27964. -# Symbols that should not be listed in the preloaded symbols.
  27965. -exclude_expsyms=$lt_exclude_expsyms
  27966. -
  27967. -# Symbols that must always be exported.
  27968. -include_expsyms=$lt_include_expsyms
  27969. -
  27970. -# ### END LIBTOOL CONFIG
  27971. -
  27972. -__EOF__
  27973. -
  27974. -
  27975. - case $host_os in
  27976. - aix3*)
  27977. - cat <<\EOF >> "$cfgfile"
  27978. -
  27979. -# AIX sometimes has problems with the GCC collect2 program. For some
  27980. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  27981. -# vanish in a puff of smoke.
  27982. -if test "X${COLLECT_NAMES+set}" != Xset; then
  27983. - COLLECT_NAMES=
  27984. - export COLLECT_NAMES
  27985. -fi
  27986. -EOF
  27987. - ;;
  27988. - esac
  27989. -
  27990. - # We use sed instead of cat because bash on DJGPP gets confused if
  27991. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27992. - # text mode, it properly converts lines to CR/LF. This bash problem
  27993. - # is reportedly fixed, but why not run on old versions too?
  27994. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  27995. -
  27996. - mv -f "$cfgfile" "$ofile" || \
  27997. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27998. - chmod +x "$ofile"
  27999. -
  28000. -else
  28001. - # If there is no Makefile yet, we rely on a make rule to execute
  28002. - # `config.status --recheck' to rerun these tests and create the
  28003. - # libtool script then.
  28004. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  28005. - if test -f "$ltmain_in"; then
  28006. - test -f Makefile && make "$ltmain"
  28007. - fi
  28008. -fi
  28009. -
  28010. -
  28011. -ac_ext=c
  28012. -ac_cpp='$CPP $CPPFLAGS'
  28013. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28014. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28015. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28016. -
  28017. -CC="$lt_save_CC"
  28018. -
  28019. -
  28020. -# Check whether --with-tags was given.
  28021. -if test "${with_tags+set}" = set; then
  28022. - withval=$with_tags; tagnames="$withval"
  28023. -fi
  28024. -
  28025. -
  28026. -if test -f "$ltmain" && test -n "$tagnames"; then
  28027. - if test ! -f "${ofile}"; then
  28028. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  28029. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  28030. - fi
  28031. -
  28032. - if test -z "$LTCC"; then
  28033. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  28034. - if test -z "$LTCC"; then
  28035. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  28036. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  28037. - else
  28038. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  28039. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  28040. - fi
  28041. - fi
  28042. - if test -z "$LTCFLAGS"; then
  28043. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  28044. - fi
  28045. -
  28046. - # Extract list of available tagged configurations in $ofile.
  28047. - # Note that this assumes the entire list is on one line.
  28048. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  28049. -
  28050. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  28051. - for tagname in $tagnames; do
  28052. - IFS="$lt_save_ifs"
  28053. - # Check whether tagname contains only valid characters
  28054. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  28055. - "") ;;
  28056. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  28057. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  28058. - { (exit 1); exit 1; }; }
  28059. - ;;
  28060. - esac
  28061. -
  28062. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  28063. - then
  28064. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  28065. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  28066. - { (exit 1); exit 1; }; }
  28067. - fi
  28068. -
  28069. - # Update the list of available tags.
  28070. - if test -n "$tagname"; then
  28071. - echo appending configuration tag \"$tagname\" to $ofile
  28072. -
  28073. - case $tagname in
  28074. - CXX)
  28075. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  28076. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  28077. - (test "X$CXX" != "Xg++"))) ; then
  28078. - ac_ext=cpp
  28079. -ac_cpp='$CXXCPP $CPPFLAGS'
  28080. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28081. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28082. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28083. -
  28084. -
  28085. -
  28086. -
  28087. -archive_cmds_need_lc_CXX=no
  28088. -allow_undefined_flag_CXX=
  28089. -always_export_symbols_CXX=no
  28090. -archive_expsym_cmds_CXX=
  28091. -export_dynamic_flag_spec_CXX=
  28092. -hardcode_direct_CXX=no
  28093. -hardcode_libdir_flag_spec_CXX=
  28094. -hardcode_libdir_flag_spec_ld_CXX=
  28095. -hardcode_libdir_separator_CXX=
  28096. -hardcode_minus_L_CXX=no
  28097. -hardcode_shlibpath_var_CXX=unsupported
  28098. -hardcode_automatic_CXX=no
  28099. -module_cmds_CXX=
  28100. -module_expsym_cmds_CXX=
  28101. -link_all_deplibs_CXX=unknown
  28102. -old_archive_cmds_CXX=$old_archive_cmds
  28103. -no_undefined_flag_CXX=
  28104. -whole_archive_flag_spec_CXX=
  28105. -enable_shared_with_static_runtimes_CXX=no
  28106. -
  28107. -# Dependencies to place before and after the object being linked:
  28108. -predep_objects_CXX=
  28109. -postdep_objects_CXX=
  28110. -predeps_CXX=
  28111. -postdeps_CXX=
  28112. -compiler_lib_search_path_CXX=
  28113. -
  28114. -# Source file extension for C++ test sources.
  28115. -ac_ext=cpp
  28116. -
  28117. -# Object file extension for compiled C++ test sources.
  28118. -objext=o
  28119. -objext_CXX=$objext
  28120. -
  28121. -# Code to be used in simple compile tests
  28122. -lt_simple_compile_test_code="int some_variable = 0;"
  28123. -
  28124. -# Code to be used in simple link tests
  28125. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  28126. -
  28127. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  28128. -
  28129. -# If no C compiler was specified, use CC.
  28130. -LTCC=${LTCC-"$CC"}
  28131. -
  28132. -# If no C compiler flags were specified, use CFLAGS.
  28133. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  28134. -
  28135. -# Allow CC to be a program name with arguments.
  28136. -compiler=$CC
  28137. -
  28138. -
  28139. -# save warnings/boilerplate of simple test code
  28140. -ac_outfile=conftest.$ac_objext
  28141. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  28142. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28143. -_lt_compiler_boilerplate=`cat conftest.err`
  28144. -$rm conftest*
  28145. -
  28146. -ac_outfile=conftest.$ac_objext
  28147. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  28148. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28149. -_lt_linker_boilerplate=`cat conftest.err`
  28150. -$rm conftest*
  28151. -
  28152. -
  28153. -# Allow CC to be a program name with arguments.
  28154. -lt_save_CC=$CC
  28155. -lt_save_LD=$LD
  28156. -lt_save_GCC=$GCC
  28157. -GCC=$GXX
  28158. -lt_save_with_gnu_ld=$with_gnu_ld
  28159. -lt_save_path_LD=$lt_cv_path_LD
  28160. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  28161. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  28162. -else
  28163. - $as_unset lt_cv_prog_gnu_ld
  28164. -fi
  28165. -if test -n "${lt_cv_path_LDCXX+set}"; then
  28166. - lt_cv_path_LD=$lt_cv_path_LDCXX
  28167. -else
  28168. - $as_unset lt_cv_path_LD
  28169. -fi
  28170. -test -z "${LDCXX+set}" || LD=$LDCXX
  28171. -CC=${CXX-"c++"}
  28172. -compiler=$CC
  28173. -compiler_CXX=$CC
  28174. -for cc_temp in $compiler""; do
  28175. - case $cc_temp in
  28176. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28177. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28178. - \-*) ;;
  28179. - *) break;;
  28180. - esac
  28181. -done
  28182. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  28183. -
  28184. -
  28185. -# We don't want -fno-exception wen compiling C++ code, so set the
  28186. -# no_builtin_flag separately
  28187. -if test "$GXX" = yes; then
  28188. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  28189. -else
  28190. - lt_prog_compiler_no_builtin_flag_CXX=
  28191. -fi
  28192. -
  28193. -if test "$GXX" = yes; then
  28194. - # Set up default GNU C++ configuration
  28195. -
  28196. -
  28197. -# Check whether --with-gnu-ld was given.
  28198. -if test "${with_gnu_ld+set}" = set; then
  28199. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  28200. -else
  28201. - with_gnu_ld=no
  28202. -fi
  28203. -
  28204. -ac_prog=ld
  28205. -if test "$GCC" = yes; then
  28206. - # Check if gcc -print-prog-name=ld gives a path.
  28207. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  28208. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  28209. - case $host in
  28210. - *-*-mingw*)
  28211. - # gcc leaves a trailing carriage return which upsets mingw
  28212. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  28213. - *)
  28214. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  28215. - esac
  28216. - case $ac_prog in
  28217. - # Accept absolute paths.
  28218. - [\\/]* | ?:[\\/]*)
  28219. - re_direlt='/[^/][^/]*/\.\./'
  28220. - # Canonicalize the pathname of ld
  28221. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  28222. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  28223. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  28224. - done
  28225. - test -z "$LD" && LD="$ac_prog"
  28226. - ;;
  28227. - "")
  28228. - # If it fails, then pretend we aren't using GCC.
  28229. - ac_prog=ld
  28230. - ;;
  28231. - *)
  28232. - # If it is relative, then search for the first ld in PATH.
  28233. - with_gnu_ld=unknown
  28234. - ;;
  28235. - esac
  28236. -elif test "$with_gnu_ld" = yes; then
  28237. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  28238. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  28239. -else
  28240. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  28241. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  28242. -fi
  28243. -if test "${lt_cv_path_LD+set}" = set; then
  28244. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28245. -else
  28246. - if test -z "$LD"; then
  28247. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  28248. - for ac_dir in $PATH; do
  28249. - IFS="$lt_save_ifs"
  28250. - test -z "$ac_dir" && ac_dir=.
  28251. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  28252. - lt_cv_path_LD="$ac_dir/$ac_prog"
  28253. - # Check to see if the program is GNU ld. I'd rather use --version,
  28254. - # but apparently some variants of GNU ld only accept -v.
  28255. - # Break only if it was the GNU/non-GNU ld that we prefer.
  28256. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  28257. - *GNU* | *'with BFD'*)
  28258. - test "$with_gnu_ld" != no && break
  28259. - ;;
  28260. - *)
  28261. - test "$with_gnu_ld" != yes && break
  28262. - ;;
  28263. - esac
  28264. - fi
  28265. - done
  28266. - IFS="$lt_save_ifs"
  28267. -else
  28268. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  28269. -fi
  28270. -fi
  28271. -
  28272. -LD="$lt_cv_path_LD"
  28273. -if test -n "$LD"; then
  28274. - { echo "$as_me:$LINENO: result: $LD" >&5
  28275. -echo "${ECHO_T}$LD" >&6; }
  28276. -else
  28277. - { echo "$as_me:$LINENO: result: no" >&5
  28278. -echo "${ECHO_T}no" >&6; }
  28279. -fi
  28280. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  28281. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  28282. - { (exit 1); exit 1; }; }
  28283. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  28284. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  28285. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  28286. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28287. -else
  28288. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  28289. -case `$LD -v 2>&1 </dev/null` in
  28290. -*GNU* | *'with BFD'*)
  28291. - lt_cv_prog_gnu_ld=yes
  28292. - ;;
  28293. -*)
  28294. - lt_cv_prog_gnu_ld=no
  28295. - ;;
  28296. -esac
  28297. -fi
  28298. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  28299. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  28300. -with_gnu_ld=$lt_cv_prog_gnu_ld
  28301. -
  28302. -
  28303. -
  28304. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  28305. - # archiving commands below assume that GNU ld is being used.
  28306. - if test "$with_gnu_ld" = yes; then
  28307. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28308. - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  28309. -
  28310. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  28311. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28312. -
  28313. - # If archive_cmds runs LD, not CC, wlarc should be empty
  28314. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  28315. - # investigate it a little bit more. (MM)
  28316. - wlarc='${wl}'
  28317. -
  28318. - # ancient GNU ld didn't support --whole-archive et. al.
  28319. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  28320. - grep 'no-whole-archive' > /dev/null; then
  28321. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  28322. - else
  28323. - whole_archive_flag_spec_CXX=
  28324. - fi
  28325. - else
  28326. - with_gnu_ld=no
  28327. - wlarc=
  28328. -
  28329. - # A generic and very simple default shared library creation
  28330. - # command for GNU C++ for the case where it uses the native
  28331. - # linker, instead of GNU ld. If possible, this setting should
  28332. - # overridden to take advantage of the native linker features on
  28333. - # the platform it is being used on.
  28334. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  28335. - fi
  28336. -
  28337. - # Commands to make compiler produce verbose output that lists
  28338. - # what "hidden" libraries, object files and flags are used when
  28339. - # linking a shared library.
  28340. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  28341. -
  28342. -else
  28343. - GXX=no
  28344. - with_gnu_ld=no
  28345. - wlarc=
  28346. -fi
  28347. -
  28348. -# PORTME: fill in a description of your system's C++ link characteristics
  28349. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28350. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  28351. -ld_shlibs_CXX=yes
  28352. -case $host_os in
  28353. - aix3*)
  28354. - # FIXME: insert proper C++ library support
  28355. - ld_shlibs_CXX=no
  28356. - ;;
  28357. - aix4* | aix5*)
  28358. - if test "$host_cpu" = ia64; then
  28359. - # On IA64, the linker does run time linking by default, so we don't
  28360. - # have to do anything special.
  28361. - aix_use_runtimelinking=no
  28362. - exp_sym_flag='-Bexport'
  28363. - no_entry_flag=""
  28364. - else
  28365. - aix_use_runtimelinking=no
  28366. -
  28367. - # Test if we are trying to use run time linking or normal
  28368. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  28369. - # need to do runtime linking.
  28370. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  28371. - for ld_flag in $LDFLAGS; do
  28372. - case $ld_flag in
  28373. - *-brtl*)
  28374. - aix_use_runtimelinking=yes
  28375. - break
  28376. - ;;
  28377. - esac
  28378. - done
  28379. - ;;
  28380. - esac
  28381. -
  28382. - exp_sym_flag='-bexport'
  28383. - no_entry_flag='-bnoentry'
  28384. - fi
  28385. -
  28386. - # When large executables or shared objects are built, AIX ld can
  28387. - # have problems creating the table of contents. If linking a library
  28388. - # or program results in "error TOC overflow" add -mminimal-toc to
  28389. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  28390. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  28391. -
  28392. - archive_cmds_CXX=''
  28393. - hardcode_direct_CXX=yes
  28394. - hardcode_libdir_separator_CXX=':'
  28395. - link_all_deplibs_CXX=yes
  28396. -
  28397. - if test "$GXX" = yes; then
  28398. - case $host_os in aix4.[012]|aix4.[012].*)
  28399. - # We only want to do this on AIX 4.2 and lower, the check
  28400. - # below for broken collect2 doesn't work under 4.3+
  28401. - collect2name=`${CC} -print-prog-name=collect2`
  28402. - if test -f "$collect2name" && \
  28403. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  28404. - then
  28405. - # We have reworked collect2
  28406. - :
  28407. - else
  28408. - # We have old collect2
  28409. - hardcode_direct_CXX=unsupported
  28410. - # It fails to find uninstalled libraries when the uninstalled
  28411. - # path is not listed in the libpath. Setting hardcode_minus_L
  28412. - # to unsupported forces relinking
  28413. - hardcode_minus_L_CXX=yes
  28414. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  28415. - hardcode_libdir_separator_CXX=
  28416. - fi
  28417. - ;;
  28418. - esac
  28419. - shared_flag='-shared'
  28420. - if test "$aix_use_runtimelinking" = yes; then
  28421. - shared_flag="$shared_flag "'${wl}-G'
  28422. - fi
  28423. - else
  28424. - # not using gcc
  28425. - if test "$host_cpu" = ia64; then
  28426. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  28427. - # chokes on -Wl,-G. The following line is correct:
  28428. - shared_flag='-G'
  28429. - else
  28430. - if test "$aix_use_runtimelinking" = yes; then
  28431. - shared_flag='${wl}-G'
  28432. - else
  28433. - shared_flag='${wl}-bM:SRE'
  28434. - fi
  28435. - fi
  28436. - fi
  28437. -
  28438. - # It seems that -bexpall does not export symbols beginning with
  28439. - # underscore (_), so it is better to generate a list of symbols to export.
  28440. - always_export_symbols_CXX=yes
  28441. - if test "$aix_use_runtimelinking" = yes; then
  28442. - # Warning - without using the other runtime loading flags (-brtl),
  28443. - # -berok will link without error, but may produce a broken library.
  28444. - allow_undefined_flag_CXX='-berok'
  28445. - # Determine the default libpath from the value encoded in an empty executable.
  28446. - cat >conftest.$ac_ext <<_ACEOF
  28447. -/* confdefs.h. */
  28448. -_ACEOF
  28449. -cat confdefs.h >>conftest.$ac_ext
  28450. -cat >>conftest.$ac_ext <<_ACEOF
  28451. -/* end confdefs.h. */
  28452. -
  28453. -int
  28454. -main ()
  28455. -{
  28456. -
  28457. - ;
  28458. - return 0;
  28459. -}
  28460. -_ACEOF
  28461. -rm -f conftest.$ac_objext conftest$ac_exeext
  28462. -if { (ac_try="$ac_link"
  28463. -case "(($ac_try" in
  28464. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28465. - *) ac_try_echo=$ac_try;;
  28466. -esac
  28467. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28468. - (eval "$ac_link") 2>conftest.er1
  28469. - ac_status=$?
  28470. - grep -v '^ *+' conftest.er1 >conftest.err
  28471. - rm -f conftest.er1
  28472. - cat conftest.err >&5
  28473. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28474. - (exit $ac_status); } && {
  28475. - test -z "$ac_cxx_werror_flag" ||
  28476. - test ! -s conftest.err
  28477. - } && test -s conftest$ac_exeext &&
  28478. - $as_test_x conftest$ac_exeext; then
  28479. -
  28480. -lt_aix_libpath_sed='
  28481. - /Import File Strings/,/^$/ {
  28482. - /^0/ {
  28483. - s/^0 *\(.*\)$/\1/
  28484. - p
  28485. - }
  28486. - }'
  28487. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  28488. -# Check for a 64-bit object if we didn't find anything.
  28489. -if test -z "$aix_libpath"; then
  28490. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  28491. -fi
  28492. -else
  28493. - echo "$as_me: failed program was:" >&5
  28494. -sed 's/^/| /' conftest.$ac_ext >&5
  28495. -
  28496. -
  28497. -fi
  28498. -
  28499. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28500. - conftest$ac_exeext conftest.$ac_ext
  28501. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28502. -
  28503. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  28504. -
  28505. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  28506. - else
  28507. - if test "$host_cpu" = ia64; then
  28508. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  28509. - allow_undefined_flag_CXX="-z nodefs"
  28510. - archive_expsym_cmds_CXX="\$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"
  28511. - else
  28512. - # Determine the default libpath from the value encoded in an empty executable.
  28513. - cat >conftest.$ac_ext <<_ACEOF
  28514. -/* confdefs.h. */
  28515. -_ACEOF
  28516. -cat confdefs.h >>conftest.$ac_ext
  28517. -cat >>conftest.$ac_ext <<_ACEOF
  28518. -/* end confdefs.h. */
  28519. -
  28520. -int
  28521. -main ()
  28522. -{
  28523. -
  28524. - ;
  28525. - return 0;
  28526. -}
  28527. -_ACEOF
  28528. -rm -f conftest.$ac_objext conftest$ac_exeext
  28529. -if { (ac_try="$ac_link"
  28530. -case "(($ac_try" in
  28531. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28532. - *) ac_try_echo=$ac_try;;
  28533. -esac
  28534. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28535. - (eval "$ac_link") 2>conftest.er1
  28536. - ac_status=$?
  28537. - grep -v '^ *+' conftest.er1 >conftest.err
  28538. - rm -f conftest.er1
  28539. - cat conftest.err >&5
  28540. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28541. - (exit $ac_status); } && {
  28542. - test -z "$ac_cxx_werror_flag" ||
  28543. - test ! -s conftest.err
  28544. - } && test -s conftest$ac_exeext &&
  28545. - $as_test_x conftest$ac_exeext; then
  28546. -
  28547. -lt_aix_libpath_sed='
  28548. - /Import File Strings/,/^$/ {
  28549. - /^0/ {
  28550. - s/^0 *\(.*\)$/\1/
  28551. - p
  28552. - }
  28553. - }'
  28554. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  28555. -# Check for a 64-bit object if we didn't find anything.
  28556. -if test -z "$aix_libpath"; then
  28557. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  28558. -fi
  28559. -else
  28560. - echo "$as_me: failed program was:" >&5
  28561. -sed 's/^/| /' conftest.$ac_ext >&5
  28562. -
  28563. -
  28564. -fi
  28565. -
  28566. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28567. - conftest$ac_exeext conftest.$ac_ext
  28568. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28569. -
  28570. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  28571. - # Warning - without using the other run time loading flags,
  28572. - # -berok will link without error, but may produce a broken library.
  28573. - no_undefined_flag_CXX=' ${wl}-bernotok'
  28574. - allow_undefined_flag_CXX=' ${wl}-berok'
  28575. - # Exported symbols can be pulled into shared objects from archives
  28576. - whole_archive_flag_spec_CXX='$convenience'
  28577. - archive_cmds_need_lc_CXX=yes
  28578. - # This is similar to how AIX traditionally builds its shared libraries.
  28579. - archive_expsym_cmds_CXX="\$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'
  28580. - fi
  28581. - fi
  28582. - ;;
  28583. -
  28584. - beos*)
  28585. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28586. - allow_undefined_flag_CXX=unsupported
  28587. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  28588. - # support --undefined. This deserves some investigation. FIXME
  28589. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28590. - else
  28591. - ld_shlibs_CXX=no
  28592. - fi
  28593. - ;;
  28594. -
  28595. - chorus*)
  28596. - case $cc_basename in
  28597. - *)
  28598. - # FIXME: insert proper C++ library support
  28599. - ld_shlibs_CXX=no
  28600. - ;;
  28601. - esac
  28602. - ;;
  28603. -
  28604. - cygwin* | mingw* | pw32*)
  28605. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  28606. - # as there is no search path for DLLs.
  28607. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  28608. - allow_undefined_flag_CXX=unsupported
  28609. - always_export_symbols_CXX=no
  28610. - enable_shared_with_static_runtimes_CXX=yes
  28611. -
  28612. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  28613. - archive_cmds_CXX='$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'
  28614. - # If the export-symbols file already is a .def file (1st line
  28615. - # is EXPORTS), use it as is; otherwise, prepend...
  28616. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  28617. - cp $export_symbols $output_objdir/$soname.def;
  28618. - else
  28619. - echo EXPORTS > $output_objdir/$soname.def;
  28620. - cat $export_symbols >> $output_objdir/$soname.def;
  28621. - fi~
  28622. - $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'
  28623. - else
  28624. - ld_shlibs_CXX=no
  28625. - fi
  28626. - ;;
  28627. - darwin* | rhapsody*)
  28628. - case $host_os in
  28629. - rhapsody* | darwin1.[012])
  28630. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  28631. - ;;
  28632. - *) # Darwin 1.3 on
  28633. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  28634. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28635. - else
  28636. - case ${MACOSX_DEPLOYMENT_TARGET} in
  28637. - 10.[012])
  28638. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28639. - ;;
  28640. - 10.*)
  28641. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  28642. - ;;
  28643. - esac
  28644. - fi
  28645. - ;;
  28646. - esac
  28647. - archive_cmds_need_lc_CXX=no
  28648. - hardcode_direct_CXX=no
  28649. - hardcode_automatic_CXX=yes
  28650. - hardcode_shlibpath_var_CXX=unsupported
  28651. - whole_archive_flag_spec_CXX=''
  28652. - link_all_deplibs_CXX=yes
  28653. -
  28654. - if test "$GXX" = yes ; then
  28655. - lt_int_apple_cc_single_mod=no
  28656. - output_verbose_link_cmd='echo'
  28657. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  28658. - lt_int_apple_cc_single_mod=yes
  28659. - fi
  28660. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  28661. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  28662. - else
  28663. - archive_cmds_CXX='$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'
  28664. - fi
  28665. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28666. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28667. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  28668. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28669. - else
  28670. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28671. - fi
  28672. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28673. - else
  28674. - case $cc_basename in
  28675. - xlc*)
  28676. - output_verbose_link_cmd='echo'
  28677. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  28678. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28679. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28680. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28681. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28682. - ;;
  28683. - *)
  28684. - ld_shlibs_CXX=no
  28685. - ;;
  28686. - esac
  28687. - fi
  28688. - ;;
  28689. -
  28690. - dgux*)
  28691. - case $cc_basename in
  28692. - ec++*)
  28693. - # FIXME: insert proper C++ library support
  28694. - ld_shlibs_CXX=no
  28695. - ;;
  28696. - ghcx*)
  28697. - # Green Hills C++ Compiler
  28698. - # FIXME: insert proper C++ library support
  28699. - ld_shlibs_CXX=no
  28700. - ;;
  28701. - *)
  28702. - # FIXME: insert proper C++ library support
  28703. - ld_shlibs_CXX=no
  28704. - ;;
  28705. - esac
  28706. - ;;
  28707. - freebsd[12]*)
  28708. - # C++ shared libraries reported to be fairly broken before switch to ELF
  28709. - ld_shlibs_CXX=no
  28710. - ;;
  28711. - freebsd-elf*)
  28712. - archive_cmds_need_lc_CXX=no
  28713. - ;;
  28714. - freebsd* | dragonfly*)
  28715. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  28716. - # conventions
  28717. - ld_shlibs_CXX=yes
  28718. - ;;
  28719. - gnu*)
  28720. - ;;
  28721. - hpux9*)
  28722. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  28723. - hardcode_libdir_separator_CXX=:
  28724. - export_dynamic_flag_spec_CXX='${wl}-E'
  28725. - hardcode_direct_CXX=yes
  28726. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  28727. - # but as the default
  28728. - # location of the library.
  28729. -
  28730. - case $cc_basename in
  28731. - CC*)
  28732. - # FIXME: insert proper C++ library support
  28733. - ld_shlibs_CXX=no
  28734. - ;;
  28735. - aCC*)
  28736. - archive_cmds_CXX='$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'
  28737. - # Commands to make compiler produce verbose output that lists
  28738. - # what "hidden" libraries, object files and flags are used when
  28739. - # linking a shared library.
  28740. - #
  28741. - # There doesn't appear to be a way to prevent this compiler from
  28742. - # explicitly linking system object files so we need to strip them
  28743. - # from the output so that they don't get included in the library
  28744. - # dependencies.
  28745. - 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 $list'
  28746. - ;;
  28747. - *)
  28748. - if test "$GXX" = yes; then
  28749. - archive_cmds_CXX='$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'
  28750. - else
  28751. - # FIXME: insert proper C++ library support
  28752. - ld_shlibs_CXX=no
  28753. - fi
  28754. - ;;
  28755. - esac
  28756. - ;;
  28757. - hpux10*|hpux11*)
  28758. - if test $with_gnu_ld = no; then
  28759. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  28760. - hardcode_libdir_separator_CXX=:
  28761. -
  28762. - case $host_cpu in
  28763. - hppa*64*|ia64*) ;;
  28764. - *)
  28765. - export_dynamic_flag_spec_CXX='${wl}-E'
  28766. - ;;
  28767. - esac
  28768. - fi
  28769. - case $host_cpu in
  28770. - hppa*64*|ia64*)
  28771. - hardcode_direct_CXX=no
  28772. - hardcode_shlibpath_var_CXX=no
  28773. - ;;
  28774. - *)
  28775. - hardcode_direct_CXX=yes
  28776. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  28777. - # but as the default
  28778. - # location of the library.
  28779. - ;;
  28780. - esac
  28781. -
  28782. - case $cc_basename in
  28783. - CC*)
  28784. - # FIXME: insert proper C++ library support
  28785. - ld_shlibs_CXX=no
  28786. - ;;
  28787. - aCC*)
  28788. - case $host_cpu in
  28789. - hppa*64*)
  28790. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28791. - ;;
  28792. - ia64*)
  28793. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28794. - ;;
  28795. - *)
  28796. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28797. - ;;
  28798. - esac
  28799. - # Commands to make compiler produce verbose output that lists
  28800. - # what "hidden" libraries, object files and flags are used when
  28801. - # linking a shared library.
  28802. - #
  28803. - # There doesn't appear to be a way to prevent this compiler from
  28804. - # explicitly linking system object files so we need to strip them
  28805. - # from the output so that they don't get included in the library
  28806. - # dependencies.
  28807. - 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 $list'
  28808. - ;;
  28809. - *)
  28810. - if test "$GXX" = yes; then
  28811. - if test $with_gnu_ld = no; then
  28812. - case $host_cpu in
  28813. - hppa*64*)
  28814. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28815. - ;;
  28816. - ia64*)
  28817. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28818. - ;;
  28819. - *)
  28820. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28821. - ;;
  28822. - esac
  28823. - fi
  28824. - else
  28825. - # FIXME: insert proper C++ library support
  28826. - ld_shlibs_CXX=no
  28827. - fi
  28828. - ;;
  28829. - esac
  28830. - ;;
  28831. - interix[3-9]*)
  28832. - hardcode_direct_CXX=no
  28833. - hardcode_shlibpath_var_CXX=no
  28834. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28835. - export_dynamic_flag_spec_CXX='${wl}-E'
  28836. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  28837. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  28838. - # default) and relocated if they conflict, which is a slow very memory
  28839. - # consuming and fragmenting process. To avoid this, we pick a random,
  28840. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  28841. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  28842. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  28843. - archive_expsym_cmds_CXX='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'
  28844. - ;;
  28845. - irix5* | irix6*)
  28846. - case $cc_basename in
  28847. - CC*)
  28848. - # SGI C++
  28849. - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  28850. -
  28851. - # Archives containing C++ object files must be created using
  28852. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  28853. - # necessary to make sure instantiated templates are included
  28854. - # in the archive.
  28855. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  28856. - ;;
  28857. - *)
  28858. - if test "$GXX" = yes; then
  28859. - if test "$with_gnu_ld" = no; then
  28860. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28861. - else
  28862. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  28863. - fi
  28864. - fi
  28865. - link_all_deplibs_CXX=yes
  28866. - ;;
  28867. - esac
  28868. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28869. - hardcode_libdir_separator_CXX=:
  28870. - ;;
  28871. - linux* | k*bsd*-gnu)
  28872. - case $cc_basename in
  28873. - KCC*)
  28874. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  28875. -
  28876. - # KCC will only create a shared library if the output file
  28877. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  28878. - # to its proper name (with version) after linking.
  28879. - archive_cmds_CXX='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'
  28880. - archive_expsym_cmds_CXX='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'
  28881. - # Commands to make compiler produce verbose output that lists
  28882. - # what "hidden" libraries, object files and flags are used when
  28883. - # linking a shared library.
  28884. - #
  28885. - # There doesn't appear to be a way to prevent this compiler from
  28886. - # explicitly linking system object files so we need to strip them
  28887. - # from the output so that they don't get included in the library
  28888. - # dependencies.
  28889. - 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 $list'
  28890. -
  28891. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  28892. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28893. -
  28894. - # Archives containing C++ object files must be created using
  28895. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  28896. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  28897. - ;;
  28898. - icpc*)
  28899. - # Intel C++
  28900. - with_gnu_ld=yes
  28901. - # version 8.0 and above of icpc choke on multiply defined symbols
  28902. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  28903. - # earlier do not add the objects themselves.
  28904. - case `$CC -V 2>&1` in
  28905. - *"Version 7."*)
  28906. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28907. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  28908. - ;;
  28909. - *) # Version 8.0 or newer
  28910. - tmp_idyn=
  28911. - case $host_cpu in
  28912. - ia64*) tmp_idyn=' -i_dynamic';;
  28913. - esac
  28914. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28915. - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  28916. - ;;
  28917. - esac
  28918. - archive_cmds_need_lc_CXX=no
  28919. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28920. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28921. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  28922. - ;;
  28923. - pgCC*)
  28924. - # Portland Group C++ compiler
  28925. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  28926. - archive_expsym_cmds_CXX='$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'
  28927. -
  28928. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  28929. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28930. - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  28931. - ;;
  28932. - cxx*)
  28933. - # Compaq C++
  28934. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28935. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  28936. -
  28937. - runpath_var=LD_RUN_PATH
  28938. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  28939. - hardcode_libdir_separator_CXX=:
  28940. -
  28941. - # Commands to make compiler produce verbose output that lists
  28942. - # what "hidden" libraries, object files and flags are used when
  28943. - # linking a shared library.
  28944. - #
  28945. - # There doesn't appear to be a way to prevent this compiler from
  28946. - # explicitly linking system object files so we need to strip them
  28947. - # from the output so that they don't get included in the library
  28948. - # dependencies.
  28949. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
  28950. - ;;
  28951. - *)
  28952. - case `$CC -V 2>&1 | sed 5q` in
  28953. - *Sun\ C*)
  28954. - # Sun C++ 5.9
  28955. - no_undefined_flag_CXX=' -zdefs'
  28956. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28957. - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  28958. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  28959. - whole_archive_flag_spec_CXX='${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'
  28960. -
  28961. - # Not sure whether something based on
  28962. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  28963. - # would be better.
  28964. - output_verbose_link_cmd='echo'
  28965. -
  28966. - # Archives containing C++ object files must be created using
  28967. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  28968. - # necessary to make sure instantiated templates are included
  28969. - # in the archive.
  28970. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  28971. - ;;
  28972. - esac
  28973. - ;;
  28974. - esac
  28975. - ;;
  28976. - lynxos*)
  28977. - # FIXME: insert proper C++ library support
  28978. - ld_shlibs_CXX=no
  28979. - ;;
  28980. - m88k*)
  28981. - # FIXME: insert proper C++ library support
  28982. - ld_shlibs_CXX=no
  28983. - ;;
  28984. - mvs*)
  28985. - case $cc_basename in
  28986. - cxx*)
  28987. - # FIXME: insert proper C++ library support
  28988. - ld_shlibs_CXX=no
  28989. - ;;
  28990. - *)
  28991. - # FIXME: insert proper C++ library support
  28992. - ld_shlibs_CXX=no
  28993. - ;;
  28994. - esac
  28995. - ;;
  28996. - netbsd* | netbsdelf*-gnu)
  28997. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28998. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  28999. - wlarc=
  29000. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  29001. - hardcode_direct_CXX=yes
  29002. - hardcode_shlibpath_var_CXX=no
  29003. - fi
  29004. - # Workaround some broken pre-1.5 toolchains
  29005. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  29006. - ;;
  29007. - openbsd2*)
  29008. - # C++ shared libraries are fairly broken
  29009. - ld_shlibs_CXX=no
  29010. - ;;
  29011. - openbsd*)
  29012. - if test -f /usr/libexec/ld.so; then
  29013. - hardcode_direct_CXX=yes
  29014. - hardcode_shlibpath_var_CXX=no
  29015. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  29016. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29017. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29018. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  29019. - export_dynamic_flag_spec_CXX='${wl}-E'
  29020. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29021. - fi
  29022. - output_verbose_link_cmd='echo'
  29023. - else
  29024. - ld_shlibs_CXX=no
  29025. - fi
  29026. - ;;
  29027. - osf3*)
  29028. - case $cc_basename in
  29029. - KCC*)
  29030. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  29031. -
  29032. - # KCC will only create a shared library if the output file
  29033. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29034. - # to its proper name (with version) after linking.
  29035. - archive_cmds_CXX='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'
  29036. -
  29037. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29038. - hardcode_libdir_separator_CXX=:
  29039. -
  29040. - # Archives containing C++ object files must be created using
  29041. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  29042. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  29043. -
  29044. - ;;
  29045. - RCC*)
  29046. - # Rational C++ 2.4.1
  29047. - # FIXME: insert proper C++ library support
  29048. - ld_shlibs_CXX=no
  29049. - ;;
  29050. - cxx*)
  29051. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29052. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  29053. -
  29054. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29055. - hardcode_libdir_separator_CXX=:
  29056. -
  29057. - # Commands to make compiler produce verbose output that lists
  29058. - # what "hidden" libraries, object files and flags are used when
  29059. - # linking a shared library.
  29060. - #
  29061. - # There doesn't appear to be a way to prevent this compiler from
  29062. - # explicitly linking system object files so we need to strip them
  29063. - # from the output so that they don't get included in the library
  29064. - # dependencies.
  29065. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
  29066. - ;;
  29067. - *)
  29068. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29069. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29070. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  29071. -
  29072. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29073. - hardcode_libdir_separator_CXX=:
  29074. -
  29075. - # Commands to make compiler produce verbose output that lists
  29076. - # what "hidden" libraries, object files and flags are used when
  29077. - # linking a shared library.
  29078. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  29079. -
  29080. - else
  29081. - # FIXME: insert proper C++ library support
  29082. - ld_shlibs_CXX=no
  29083. - fi
  29084. - ;;
  29085. - esac
  29086. - ;;
  29087. - osf4* | osf5*)
  29088. - case $cc_basename in
  29089. - KCC*)
  29090. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  29091. -
  29092. - # KCC will only create a shared library if the output file
  29093. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29094. - # to its proper name (with version) after linking.
  29095. - archive_cmds_CXX='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'
  29096. -
  29097. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29098. - hardcode_libdir_separator_CXX=:
  29099. -
  29100. - # Archives containing C++ object files must be created using
  29101. - # the KAI C++ compiler.
  29102. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  29103. - ;;
  29104. - RCC*)
  29105. - # Rational C++ 2.4.1
  29106. - # FIXME: insert proper C++ library support
  29107. - ld_shlibs_CXX=no
  29108. - ;;
  29109. - cxx*)
  29110. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  29111. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  29112. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  29113. - echo "-hidden">> $lib.exp~
  29114. - $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  29115. - $rm $lib.exp'
  29116. -
  29117. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  29118. - hardcode_libdir_separator_CXX=:
  29119. -
  29120. - # Commands to make compiler produce verbose output that lists
  29121. - # what "hidden" libraries, object files and flags are used when
  29122. - # linking a shared library.
  29123. - #
  29124. - # There doesn't appear to be a way to prevent this compiler from
  29125. - # explicitly linking system object files so we need to strip them
  29126. - # from the output so that they don't get included in the library
  29127. - # dependencies.
  29128. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
  29129. - ;;
  29130. - *)
  29131. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29132. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29133. - archive_cmds_CXX='$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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  29134. -
  29135. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29136. - hardcode_libdir_separator_CXX=:
  29137. -
  29138. - # Commands to make compiler produce verbose output that lists
  29139. - # what "hidden" libraries, object files and flags are used when
  29140. - # linking a shared library.
  29141. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  29142. -
  29143. - else
  29144. - # FIXME: insert proper C++ library support
  29145. - ld_shlibs_CXX=no
  29146. - fi
  29147. - ;;
  29148. - esac
  29149. - ;;
  29150. - psos*)
  29151. - # FIXME: insert proper C++ library support
  29152. - ld_shlibs_CXX=no
  29153. - ;;
  29154. - sunos4*)
  29155. - case $cc_basename in
  29156. - CC*)
  29157. - # Sun C++ 4.x
  29158. - # FIXME: insert proper C++ library support
  29159. - ld_shlibs_CXX=no
  29160. - ;;
  29161. - lcc*)
  29162. - # Lucid
  29163. - # FIXME: insert proper C++ library support
  29164. - ld_shlibs_CXX=no
  29165. - ;;
  29166. - *)
  29167. - # FIXME: insert proper C++ library support
  29168. - ld_shlibs_CXX=no
  29169. - ;;
  29170. - esac
  29171. - ;;
  29172. - solaris*)
  29173. - case $cc_basename in
  29174. - CC*)
  29175. - # Sun C++ 4.2, 5.x and Centerline C++
  29176. - archive_cmds_need_lc_CXX=yes
  29177. - no_undefined_flag_CXX=' -zdefs'
  29178. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29179. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29180. - $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'
  29181. -
  29182. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  29183. - hardcode_shlibpath_var_CXX=no
  29184. - case $host_os in
  29185. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  29186. - *)
  29187. - # The compiler driver will combine and reorder linker options,
  29188. - # but understands `-z linker_flag'.
  29189. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  29190. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  29191. - ;;
  29192. - esac
  29193. - link_all_deplibs_CXX=yes
  29194. -
  29195. - output_verbose_link_cmd='echo'
  29196. -
  29197. - # Archives containing C++ object files must be created using
  29198. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  29199. - # necessary to make sure instantiated templates are included
  29200. - # in the archive.
  29201. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  29202. - ;;
  29203. - gcx*)
  29204. - # Green Hills C++ Compiler
  29205. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29206. -
  29207. - # The C++ compiler must be used to create the archive.
  29208. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  29209. - ;;
  29210. - *)
  29211. - # GNU C++ compiler with Solaris linker
  29212. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29213. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  29214. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  29215. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29216. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29217. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  29218. -
  29219. - # Commands to make compiler produce verbose output that lists
  29220. - # what "hidden" libraries, object files and flags are used when
  29221. - # linking a shared library.
  29222. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  29223. - else
  29224. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  29225. - # platform.
  29226. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29227. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29228. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  29229. -
  29230. - # Commands to make compiler produce verbose output that lists
  29231. - # what "hidden" libraries, object files and flags are used when
  29232. - # linking a shared library.
  29233. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  29234. - fi
  29235. -
  29236. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  29237. - case $host_os in
  29238. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  29239. - *)
  29240. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  29241. - ;;
  29242. - esac
  29243. - fi
  29244. - ;;
  29245. - esac
  29246. - ;;
  29247. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  29248. - no_undefined_flag_CXX='${wl}-z,text'
  29249. - archive_cmds_need_lc_CXX=no
  29250. - hardcode_shlibpath_var_CXX=no
  29251. - runpath_var='LD_RUN_PATH'
  29252. -
  29253. - case $cc_basename in
  29254. - CC*)
  29255. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29256. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29257. - ;;
  29258. - *)
  29259. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29260. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29261. - ;;
  29262. - esac
  29263. - ;;
  29264. - sysv5* | sco3.2v5* | sco5v6*)
  29265. - # Note: We can NOT use -z defs as we might desire, because we do not
  29266. - # link with -lc, and that would cause any symbols used from libc to
  29267. - # always be unresolved, which means just about no library would
  29268. - # ever link correctly. If we're not using GNU ld we use -z text
  29269. - # though, which does catch some bad symbols but isn't as heavy-handed
  29270. - # as -z defs.
  29271. - # For security reasons, it is highly recommended that you always
  29272. - # use absolute paths for naming shared libraries, and exclude the
  29273. - # DT_RUNPATH tag from executables and libraries. But doing so
  29274. - # requires that you compile everything twice, which is a pain.
  29275. - # So that behaviour is only enabled if SCOABSPATH is set to a
  29276. - # non-empty value in the environment. Most likely only useful for
  29277. - # creating official distributions of packages.
  29278. - # This is a hack until libtool officially supports absolute path
  29279. - # names for shared libraries.
  29280. - no_undefined_flag_CXX='${wl}-z,text'
  29281. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  29282. - archive_cmds_need_lc_CXX=no
  29283. - hardcode_shlibpath_var_CXX=no
  29284. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  29285. - hardcode_libdir_separator_CXX=':'
  29286. - link_all_deplibs_CXX=yes
  29287. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  29288. - runpath_var='LD_RUN_PATH'
  29289. -
  29290. - case $cc_basename in
  29291. - CC*)
  29292. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29293. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29294. - ;;
  29295. - *)
  29296. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29297. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29298. - ;;
  29299. - esac
  29300. - ;;
  29301. - tandem*)
  29302. - case $cc_basename in
  29303. - NCC*)
  29304. - # NonStop-UX NCC 3.20
  29305. - # FIXME: insert proper C++ library support
  29306. - ld_shlibs_CXX=no
  29307. - ;;
  29308. - *)
  29309. - # FIXME: insert proper C++ library support
  29310. - ld_shlibs_CXX=no
  29311. - ;;
  29312. - esac
  29313. - ;;
  29314. - vxworks*)
  29315. - # FIXME: insert proper C++ library support
  29316. - ld_shlibs_CXX=no
  29317. - ;;
  29318. - *)
  29319. - # FIXME: insert proper C++ library support
  29320. - ld_shlibs_CXX=no
  29321. - ;;
  29322. -esac
  29323. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  29324. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  29325. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  29326. -
  29327. -GCC_CXX="$GXX"
  29328. -LD_CXX="$LD"
  29329. -
  29330. -
  29331. -cat > conftest.$ac_ext <<EOF
  29332. -class Foo
  29333. -{
  29334. -public:
  29335. - Foo (void) { a = 0; }
  29336. -private:
  29337. - int a;
  29338. -};
  29339. -EOF
  29340. -
  29341. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29342. - (eval $ac_compile) 2>&5
  29343. - ac_status=$?
  29344. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29345. - (exit $ac_status); }; then
  29346. - # Parse the compiler output and extract the necessary
  29347. - # objects, libraries and library flags.
  29348. -
  29349. - # Sentinel used to keep track of whether or not we are before
  29350. - # the conftest object file.
  29351. - pre_test_object_deps_done=no
  29352. -
  29353. - # The `*' in the case matches for architectures that use `case' in
  29354. - # $output_verbose_cmd can trigger glob expansion during the loop
  29355. - # eval without this substitution.
  29356. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  29357. -
  29358. - for p in `eval $output_verbose_link_cmd`; do
  29359. - case $p in
  29360. -
  29361. - -L* | -R* | -l*)
  29362. - # Some compilers place space between "-{L,R}" and the path.
  29363. - # Remove the space.
  29364. - if test $p = "-L" \
  29365. - || test $p = "-R"; then
  29366. - prev=$p
  29367. - continue
  29368. - else
  29369. - prev=
  29370. - fi
  29371. -
  29372. - if test "$pre_test_object_deps_done" = no; then
  29373. - case $p in
  29374. - -L* | -R*)
  29375. - # Internal compiler library paths should come after those
  29376. - # provided the user. The postdeps already come after the
  29377. - # user supplied libs so there is no need to process them.
  29378. - if test -z "$compiler_lib_search_path_CXX"; then
  29379. - compiler_lib_search_path_CXX="${prev}${p}"
  29380. - else
  29381. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  29382. - fi
  29383. - ;;
  29384. - # The "-l" case would never come before the object being
  29385. - # linked, so don't bother handling this case.
  29386. - esac
  29387. - else
  29388. - if test -z "$postdeps_CXX"; then
  29389. - postdeps_CXX="${prev}${p}"
  29390. - else
  29391. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  29392. - fi
  29393. - fi
  29394. - ;;
  29395. -
  29396. - *.$objext)
  29397. - # This assumes that the test object file only shows up
  29398. - # once in the compiler output.
  29399. - if test "$p" = "conftest.$objext"; then
  29400. - pre_test_object_deps_done=yes
  29401. - continue
  29402. - fi
  29403. -
  29404. - if test "$pre_test_object_deps_done" = no; then
  29405. - if test -z "$predep_objects_CXX"; then
  29406. - predep_objects_CXX="$p"
  29407. - else
  29408. - predep_objects_CXX="$predep_objects_CXX $p"
  29409. - fi
  29410. - else
  29411. - if test -z "$postdep_objects_CXX"; then
  29412. - postdep_objects_CXX="$p"
  29413. - else
  29414. - postdep_objects_CXX="$postdep_objects_CXX $p"
  29415. - fi
  29416. - fi
  29417. - ;;
  29418. -
  29419. - *) ;; # Ignore the rest.
  29420. -
  29421. - esac
  29422. - done
  29423. -
  29424. - # Clean up.
  29425. - rm -f a.out a.exe
  29426. -else
  29427. - echo "libtool.m4: error: problem compiling CXX test program"
  29428. -fi
  29429. -
  29430. -$rm -f confest.$objext
  29431. -
  29432. -# PORTME: override above test on systems where it is broken
  29433. -case $host_os in
  29434. -interix[3-9]*)
  29435. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  29436. - # hack all around it, let's just trust "g++" to DTRT.
  29437. - predep_objects_CXX=
  29438. - postdep_objects_CXX=
  29439. - postdeps_CXX=
  29440. - ;;
  29441. -
  29442. -linux*)
  29443. - case `$CC -V 2>&1 | sed 5q` in
  29444. - *Sun\ C*)
  29445. - # Sun C++ 5.9
  29446. - #
  29447. - # The more standards-conforming stlport4 library is
  29448. - # incompatible with the Cstd library. Avoid specifying
  29449. - # it if it's in CXXFLAGS. Ignore libCrun as
  29450. - # -library=stlport4 depends on it.
  29451. - case " $CXX $CXXFLAGS " in
  29452. - *" -library=stlport4 "*)
  29453. - solaris_use_stlport4=yes
  29454. - ;;
  29455. - esac
  29456. - if test "$solaris_use_stlport4" != yes; then
  29457. - postdeps_CXX='-library=Cstd -library=Crun'
  29458. - fi
  29459. - ;;
  29460. - esac
  29461. - ;;
  29462. -
  29463. -solaris*)
  29464. - case $cc_basename in
  29465. - CC*)
  29466. - # The more standards-conforming stlport4 library is
  29467. - # incompatible with the Cstd library. Avoid specifying
  29468. - # it if it's in CXXFLAGS. Ignore libCrun as
  29469. - # -library=stlport4 depends on it.
  29470. - case " $CXX $CXXFLAGS " in
  29471. - *" -library=stlport4 "*)
  29472. - solaris_use_stlport4=yes
  29473. - ;;
  29474. - esac
  29475. -
  29476. - # Adding this requires a known-good setup of shared libraries for
  29477. - # Sun compiler versions before 5.6, else PIC objects from an old
  29478. - # archive will be linked into the output, leading to subtle bugs.
  29479. - if test "$solaris_use_stlport4" != yes; then
  29480. - postdeps_CXX='-library=Cstd -library=Crun'
  29481. - fi
  29482. - ;;
  29483. - esac
  29484. - ;;
  29485. -esac
  29486. -
  29487. -
  29488. -case " $postdeps_CXX " in
  29489. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  29490. -esac
  29491. -
  29492. -lt_prog_compiler_wl_CXX=
  29493. -lt_prog_compiler_pic_CXX=
  29494. -lt_prog_compiler_static_CXX=
  29495. -
  29496. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  29497. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  29498. -
  29499. - # C++ specific cases for pic, static, wl, etc.
  29500. - if test "$GXX" = yes; then
  29501. - lt_prog_compiler_wl_CXX='-Wl,'
  29502. - lt_prog_compiler_static_CXX='-static'
  29503. -
  29504. - case $host_os in
  29505. - aix*)
  29506. - # All AIX code is PIC.
  29507. - if test "$host_cpu" = ia64; then
  29508. - # AIX 5 now supports IA64 processor
  29509. - lt_prog_compiler_static_CXX='-Bstatic'
  29510. - fi
  29511. - ;;
  29512. - amigaos*)
  29513. - # FIXME: we need at least 68020 code to build shared libraries, but
  29514. - # adding the `-m68020' flag to GCC prevents building anything better,
  29515. - # like `-m68040'.
  29516. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  29517. - ;;
  29518. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  29519. - # PIC is the default for these OSes.
  29520. - ;;
  29521. - mingw* | cygwin* | os2* | pw32*)
  29522. - # This hack is so that the source file can tell whether it is being
  29523. - # built for inclusion in a dll (and should export symbols for example).
  29524. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  29525. - # (--disable-auto-import) libraries
  29526. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  29527. - ;;
  29528. - darwin* | rhapsody*)
  29529. - # PIC is the default on this platform
  29530. - # Common symbols not allowed in MH_DYLIB files
  29531. - lt_prog_compiler_pic_CXX='-fno-common'
  29532. - ;;
  29533. - *djgpp*)
  29534. - # DJGPP does not support shared libraries at all
  29535. - lt_prog_compiler_pic_CXX=
  29536. - ;;
  29537. - interix[3-9]*)
  29538. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  29539. - # Instead, we relocate shared libraries at runtime.
  29540. - ;;
  29541. - sysv4*MP*)
  29542. - if test -d /usr/nec; then
  29543. - lt_prog_compiler_pic_CXX=-Kconform_pic
  29544. - fi
  29545. - ;;
  29546. - hpux*)
  29547. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29548. - # not for PA HP-UX.
  29549. - case $host_cpu in
  29550. - hppa*64*|ia64*)
  29551. - ;;
  29552. - *)
  29553. - lt_prog_compiler_pic_CXX='-fPIC'
  29554. - ;;
  29555. - esac
  29556. - ;;
  29557. - *)
  29558. - lt_prog_compiler_pic_CXX='-fPIC'
  29559. - ;;
  29560. - esac
  29561. - else
  29562. - case $host_os in
  29563. - aix4* | aix5*)
  29564. - # All AIX code is PIC.
  29565. - if test "$host_cpu" = ia64; then
  29566. - # AIX 5 now supports IA64 processor
  29567. - lt_prog_compiler_static_CXX='-Bstatic'
  29568. - else
  29569. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  29570. - fi
  29571. - ;;
  29572. - chorus*)
  29573. - case $cc_basename in
  29574. - cxch68*)
  29575. - # Green Hills C++ Compiler
  29576. - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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"
  29577. - ;;
  29578. - esac
  29579. - ;;
  29580. - darwin*)
  29581. - # PIC is the default on this platform
  29582. - # Common symbols not allowed in MH_DYLIB files
  29583. - case $cc_basename in
  29584. - xlc*)
  29585. - lt_prog_compiler_pic_CXX='-qnocommon'
  29586. - lt_prog_compiler_wl_CXX='-Wl,'
  29587. - ;;
  29588. - esac
  29589. - ;;
  29590. - dgux*)
  29591. - case $cc_basename in
  29592. - ec++*)
  29593. - lt_prog_compiler_pic_CXX='-KPIC'
  29594. - ;;
  29595. - ghcx*)
  29596. - # Green Hills C++ Compiler
  29597. - lt_prog_compiler_pic_CXX='-pic'
  29598. - ;;
  29599. - *)
  29600. - ;;
  29601. - esac
  29602. - ;;
  29603. - freebsd* | dragonfly*)
  29604. - # FreeBSD uses GNU C++
  29605. - ;;
  29606. - hpux9* | hpux10* | hpux11*)
  29607. - case $cc_basename in
  29608. - CC*)
  29609. - lt_prog_compiler_wl_CXX='-Wl,'
  29610. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  29611. - if test "$host_cpu" != ia64; then
  29612. - lt_prog_compiler_pic_CXX='+Z'
  29613. - fi
  29614. - ;;
  29615. - aCC*)
  29616. - lt_prog_compiler_wl_CXX='-Wl,'
  29617. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  29618. - case $host_cpu in
  29619. - hppa*64*|ia64*)
  29620. - # +Z the default
  29621. - ;;
  29622. - *)
  29623. - lt_prog_compiler_pic_CXX='+Z'
  29624. - ;;
  29625. - esac
  29626. - ;;
  29627. - *)
  29628. - ;;
  29629. - esac
  29630. - ;;
  29631. - interix*)
  29632. - # This is c89, which is MS Visual C++ (no shared libs)
  29633. - # Anyone wants to do a port?
  29634. - ;;
  29635. - irix5* | irix6* | nonstopux*)
  29636. - case $cc_basename in
  29637. - CC*)
  29638. - lt_prog_compiler_wl_CXX='-Wl,'
  29639. - lt_prog_compiler_static_CXX='-non_shared'
  29640. - # CC pic flag -KPIC is the default.
  29641. - ;;
  29642. - *)
  29643. - ;;
  29644. - esac
  29645. - ;;
  29646. - linux* | k*bsd*-gnu)
  29647. - case $cc_basename in
  29648. - KCC*)
  29649. - # KAI C++ Compiler
  29650. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  29651. - lt_prog_compiler_pic_CXX='-fPIC'
  29652. - ;;
  29653. - icpc* | ecpc*)
  29654. - # Intel C++
  29655. - lt_prog_compiler_wl_CXX='-Wl,'
  29656. - lt_prog_compiler_pic_CXX='-KPIC'
  29657. - lt_prog_compiler_static_CXX='-static'
  29658. - ;;
  29659. - pgCC*)
  29660. - # Portland Group C++ compiler.
  29661. - lt_prog_compiler_wl_CXX='-Wl,'
  29662. - lt_prog_compiler_pic_CXX='-fpic'
  29663. - lt_prog_compiler_static_CXX='-Bstatic'
  29664. - ;;
  29665. - cxx*)
  29666. - # Compaq C++
  29667. - # Make sure the PIC flag is empty. It appears that all Alpha
  29668. - # Linux and Compaq Tru64 Unix objects are PIC.
  29669. - lt_prog_compiler_pic_CXX=
  29670. - lt_prog_compiler_static_CXX='-non_shared'
  29671. - ;;
  29672. - *)
  29673. - case `$CC -V 2>&1 | sed 5q` in
  29674. - *Sun\ C*)
  29675. - # Sun C++ 5.9
  29676. - lt_prog_compiler_pic_CXX='-KPIC'
  29677. - lt_prog_compiler_static_CXX='-Bstatic'
  29678. - lt_prog_compiler_wl_CXX='-Qoption ld '
  29679. - ;;
  29680. - esac
  29681. - ;;
  29682. - esac
  29683. - ;;
  29684. - lynxos*)
  29685. - ;;
  29686. - m88k*)
  29687. - ;;
  29688. - mvs*)
  29689. - case $cc_basename in
  29690. - cxx*)
  29691. - lt_prog_compiler_pic_CXX='-W c,exportall'
  29692. - ;;
  29693. - *)
  29694. - ;;
  29695. - esac
  29696. - ;;
  29697. - netbsd* | netbsdelf*-gnu)
  29698. - ;;
  29699. - osf3* | osf4* | osf5*)
  29700. - case $cc_basename in
  29701. - KCC*)
  29702. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  29703. - ;;
  29704. - RCC*)
  29705. - # Rational C++ 2.4.1
  29706. - lt_prog_compiler_pic_CXX='-pic'
  29707. - ;;
  29708. - cxx*)
  29709. - # Digital/Compaq C++
  29710. - lt_prog_compiler_wl_CXX='-Wl,'
  29711. - # Make sure the PIC flag is empty. It appears that all Alpha
  29712. - # Linux and Compaq Tru64 Unix objects are PIC.
  29713. - lt_prog_compiler_pic_CXX=
  29714. - lt_prog_compiler_static_CXX='-non_shared'
  29715. - ;;
  29716. - *)
  29717. - ;;
  29718. - esac
  29719. - ;;
  29720. - psos*)
  29721. - ;;
  29722. - solaris*)
  29723. - case $cc_basename in
  29724. - CC*)
  29725. - # Sun C++ 4.2, 5.x and Centerline C++
  29726. - lt_prog_compiler_pic_CXX='-KPIC'
  29727. - lt_prog_compiler_static_CXX='-Bstatic'
  29728. - lt_prog_compiler_wl_CXX='-Qoption ld '
  29729. - ;;
  29730. - gcx*)
  29731. - # Green Hills C++ Compiler
  29732. - lt_prog_compiler_pic_CXX='-PIC'
  29733. - ;;
  29734. - *)
  29735. - ;;
  29736. - esac
  29737. - ;;
  29738. - sunos4*)
  29739. - case $cc_basename in
  29740. - CC*)
  29741. - # Sun C++ 4.x
  29742. - lt_prog_compiler_pic_CXX='-pic'
  29743. - lt_prog_compiler_static_CXX='-Bstatic'
  29744. - ;;
  29745. - lcc*)
  29746. - # Lucid
  29747. - lt_prog_compiler_pic_CXX='-pic'
  29748. - ;;
  29749. - *)
  29750. - ;;
  29751. - esac
  29752. - ;;
  29753. - tandem*)
  29754. - case $cc_basename in
  29755. - NCC*)
  29756. - # NonStop-UX NCC 3.20
  29757. - lt_prog_compiler_pic_CXX='-KPIC'
  29758. - ;;
  29759. - *)
  29760. - ;;
  29761. - esac
  29762. - ;;
  29763. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  29764. - case $cc_basename in
  29765. - CC*)
  29766. - lt_prog_compiler_wl_CXX='-Wl,'
  29767. - lt_prog_compiler_pic_CXX='-KPIC'
  29768. - lt_prog_compiler_static_CXX='-Bstatic'
  29769. - ;;
  29770. - esac
  29771. - ;;
  29772. - vxworks*)
  29773. - ;;
  29774. - *)
  29775. - lt_prog_compiler_can_build_shared_CXX=no
  29776. - ;;
  29777. - esac
  29778. - fi
  29779. -
  29780. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  29781. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  29782. -
  29783. -#
  29784. -# Check to make sure the PIC flag actually works.
  29785. -#
  29786. -if test -n "$lt_prog_compiler_pic_CXX"; then
  29787. -
  29788. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  29789. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  29790. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  29791. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29792. -else
  29793. - lt_prog_compiler_pic_works_CXX=no
  29794. - ac_outfile=conftest.$ac_objext
  29795. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29796. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  29797. - # Insert the option either (1) after the last *FLAGS variable, or
  29798. - # (2) before a word containing "conftest.", or (3) at the end.
  29799. - # Note that $ac_compile itself does not contain backslashes and begins
  29800. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29801. - # The option is referenced via a variable to avoid confusing sed.
  29802. - lt_compile=`echo "$ac_compile" | $SED \
  29803. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29804. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29805. - -e 's:$: $lt_compiler_flag:'`
  29806. - (eval echo "\"\$as_me:12758: $lt_compile\"" >&5)
  29807. - (eval "$lt_compile" 2>conftest.err)
  29808. - ac_status=$?
  29809. - cat conftest.err >&5
  29810. - echo "$as_me:12762: \$? = $ac_status" >&5
  29811. - if (exit $ac_status) && test -s "$ac_outfile"; then
  29812. - # The compiler can only warn and ignore the option if not recognized
  29813. - # So say no if there are warnings other than the usual output.
  29814. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29815. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29816. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29817. - lt_prog_compiler_pic_works_CXX=yes
  29818. - fi
  29819. - fi
  29820. - $rm conftest*
  29821. -
  29822. -fi
  29823. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  29824. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  29825. -
  29826. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  29827. - case $lt_prog_compiler_pic_CXX in
  29828. - "" | " "*) ;;
  29829. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  29830. - esac
  29831. -else
  29832. - lt_prog_compiler_pic_CXX=
  29833. - lt_prog_compiler_can_build_shared_CXX=no
  29834. -fi
  29835. -
  29836. -fi
  29837. -case $host_os in
  29838. - # For platforms which do not support PIC, -DPIC is meaningless:
  29839. - *djgpp*)
  29840. - lt_prog_compiler_pic_CXX=
  29841. - ;;
  29842. - *)
  29843. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  29844. - ;;
  29845. -esac
  29846. -
  29847. -#
  29848. -# Check to make sure the static flag actually works.
  29849. -#
  29850. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  29851. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  29852. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  29853. -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  29854. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29855. -else
  29856. - lt_prog_compiler_static_works_CXX=no
  29857. - save_LDFLAGS="$LDFLAGS"
  29858. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  29859. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  29860. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  29861. - # The linker can only warn and ignore the option if not recognized
  29862. - # So say no if there are warnings
  29863. - if test -s conftest.err; then
  29864. - # Append any errors to the config.log.
  29865. - cat conftest.err 1>&5
  29866. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  29867. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29868. - if diff conftest.exp conftest.er2 >/dev/null; then
  29869. - lt_prog_compiler_static_works_CXX=yes
  29870. - fi
  29871. - else
  29872. - lt_prog_compiler_static_works_CXX=yes
  29873. - fi
  29874. - fi
  29875. - $rm conftest*
  29876. - LDFLAGS="$save_LDFLAGS"
  29877. -
  29878. -fi
  29879. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  29880. -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  29881. -
  29882. -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  29883. - :
  29884. -else
  29885. - lt_prog_compiler_static_CXX=
  29886. -fi
  29887. -
  29888. -
  29889. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  29890. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  29891. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  29892. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29893. -else
  29894. - lt_cv_prog_compiler_c_o_CXX=no
  29895. - $rm -r conftest 2>/dev/null
  29896. - mkdir conftest
  29897. - cd conftest
  29898. - mkdir out
  29899. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29900. -
  29901. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  29902. - # Insert the option either (1) after the last *FLAGS variable, or
  29903. - # (2) before a word containing "conftest.", or (3) at the end.
  29904. - # Note that $ac_compile itself does not contain backslashes and begins
  29905. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29906. - lt_compile=`echo "$ac_compile" | $SED \
  29907. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29908. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29909. - -e 's:$: $lt_compiler_flag:'`
  29910. - (eval echo "\"\$as_me:12862: $lt_compile\"" >&5)
  29911. - (eval "$lt_compile" 2>out/conftest.err)
  29912. - ac_status=$?
  29913. - cat out/conftest.err >&5
  29914. - echo "$as_me:12866: \$? = $ac_status" >&5
  29915. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  29916. - then
  29917. - # The compiler can only warn and ignore the option if not recognized
  29918. - # So say no if there are warnings
  29919. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  29920. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  29921. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  29922. - lt_cv_prog_compiler_c_o_CXX=yes
  29923. - fi
  29924. - fi
  29925. - chmod u+w . 2>&5
  29926. - $rm conftest*
  29927. - # SGI C++ compiler will create directory out/ii_files/ for
  29928. - # template instantiation
  29929. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  29930. - $rm out/* && rmdir out
  29931. - cd ..
  29932. - rmdir conftest
  29933. - $rm conftest*
  29934. -
  29935. -fi
  29936. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  29937. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  29938. -
  29939. -
  29940. -hard_links="nottested"
  29941. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  29942. - # do not overwrite the value of need_locks provided by the user
  29943. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  29944. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  29945. - hard_links=yes
  29946. - $rm conftest*
  29947. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29948. - touch conftest.a
  29949. - ln conftest.a conftest.b 2>&5 || hard_links=no
  29950. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29951. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  29952. -echo "${ECHO_T}$hard_links" >&6; }
  29953. - if test "$hard_links" = no; then
  29954. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  29955. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  29956. - need_locks=warn
  29957. - fi
  29958. -else
  29959. - need_locks=no
  29960. -fi
  29961. -
  29962. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  29963. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  29964. -
  29965. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29966. - case $host_os in
  29967. - aix4* | aix5*)
  29968. - # If we're using GNU nm, then we don't want the "-C" option.
  29969. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  29970. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  29971. - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  29972. - else
  29973. - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  29974. - fi
  29975. - ;;
  29976. - pw32*)
  29977. - export_symbols_cmds_CXX="$ltdll_cmds"
  29978. - ;;
  29979. - cygwin* | mingw*)
  29980. - export_symbols_cmds_CXX='$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'
  29981. - ;;
  29982. - linux* | k*bsd*-gnu)
  29983. - link_all_deplibs_CXX=no
  29984. - ;;
  29985. - *)
  29986. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29987. - ;;
  29988. - esac
  29989. -
  29990. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  29991. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  29992. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  29993. -
  29994. -#
  29995. -# Do we need to explicitly link libc?
  29996. -#
  29997. -case "x$archive_cmds_need_lc_CXX" in
  29998. -x|xyes)
  29999. - # Assume -lc should be added
  30000. - archive_cmds_need_lc_CXX=yes
  30001. -
  30002. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  30003. - case $archive_cmds_CXX in
  30004. - *'~'*)
  30005. - # FIXME: we may have to deal with multi-command sequences.
  30006. - ;;
  30007. - '$CC '*)
  30008. - # Test whether the compiler implicitly links with -lc since on some
  30009. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  30010. - # to ld, don't add -lc before -lgcc.
  30011. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  30012. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  30013. - $rm conftest*
  30014. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30015. -
  30016. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30017. - (eval $ac_compile) 2>&5
  30018. - ac_status=$?
  30019. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30020. - (exit $ac_status); } 2>conftest.err; then
  30021. - soname=conftest
  30022. - lib=conftest
  30023. - libobjs=conftest.$ac_objext
  30024. - deplibs=
  30025. - wl=$lt_prog_compiler_wl_CXX
  30026. - pic_flag=$lt_prog_compiler_pic_CXX
  30027. - compiler_flags=-v
  30028. - linker_flags=-v
  30029. - verstring=
  30030. - output_objdir=.
  30031. - libname=conftest
  30032. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  30033. - allow_undefined_flag_CXX=
  30034. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  30035. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  30036. - ac_status=$?
  30037. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30038. - (exit $ac_status); }
  30039. - then
  30040. - archive_cmds_need_lc_CXX=no
  30041. - else
  30042. - archive_cmds_need_lc_CXX=yes
  30043. - fi
  30044. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  30045. - else
  30046. - cat conftest.err 1>&5
  30047. - fi
  30048. - $rm conftest*
  30049. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  30050. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  30051. - ;;
  30052. - esac
  30053. - fi
  30054. - ;;
  30055. -esac
  30056. -
  30057. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  30058. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  30059. -library_names_spec=
  30060. -libname_spec='lib$name'
  30061. -soname_spec=
  30062. -shrext_cmds=".so"
  30063. -postinstall_cmds=
  30064. -postuninstall_cmds=
  30065. -finish_cmds=
  30066. -finish_eval=
  30067. -shlibpath_var=
  30068. -shlibpath_overrides_runpath=unknown
  30069. -version_type=none
  30070. -dynamic_linker="$host_os ld.so"
  30071. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  30072. -
  30073. -need_lib_prefix=unknown
  30074. -hardcode_into_libs=no
  30075. -
  30076. -# when you set need_version to no, make sure it does not cause -set_version
  30077. -# flags to be left without arguments
  30078. -need_version=unknown
  30079. -
  30080. -case $host_os in
  30081. -aix3*)
  30082. - version_type=linux
  30083. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  30084. - shlibpath_var=LIBPATH
  30085. -
  30086. - # AIX 3 has no versioning support, so we append a major version to the name.
  30087. - soname_spec='${libname}${release}${shared_ext}$major'
  30088. - ;;
  30089. -
  30090. -aix4* | aix5*)
  30091. - version_type=linux
  30092. - need_lib_prefix=no
  30093. - need_version=no
  30094. - hardcode_into_libs=yes
  30095. - if test "$host_cpu" = ia64; then
  30096. - # AIX 5 supports IA64
  30097. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  30098. - shlibpath_var=LD_LIBRARY_PATH
  30099. - else
  30100. - # With GCC up to 2.95.x, collect2 would create an import file
  30101. - # for dependence libraries. The import file would start with
  30102. - # the line `#! .'. This would cause the generated library to
  30103. - # depend on `.', always an invalid library. This was fixed in
  30104. - # development snapshots of GCC prior to 3.0.
  30105. - case $host_os in
  30106. - aix4 | aix4.[01] | aix4.[01].*)
  30107. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  30108. - echo ' yes '
  30109. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  30110. - :
  30111. - else
  30112. - can_build_shared=no
  30113. - fi
  30114. - ;;
  30115. - esac
  30116. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  30117. - # soname into executable. Probably we can add versioning support to
  30118. - # collect2, so additional links can be useful in future.
  30119. - if test "$aix_use_runtimelinking" = yes; then
  30120. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  30121. - # instead of lib<name>.a to let people know that these are not
  30122. - # typical AIX shared libraries.
  30123. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30124. - else
  30125. - # We preserve .a as extension for shared libraries through AIX4.2
  30126. - # and later when we are not doing run time linking.
  30127. - library_names_spec='${libname}${release}.a $libname.a'
  30128. - soname_spec='${libname}${release}${shared_ext}$major'
  30129. - fi
  30130. - shlibpath_var=LIBPATH
  30131. - fi
  30132. - ;;
  30133. -
  30134. -amigaos*)
  30135. - library_names_spec='$libname.ixlibrary $libname.a'
  30136. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  30137. - 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'
  30138. - ;;
  30139. -
  30140. -beos*)
  30141. - library_names_spec='${libname}${shared_ext}'
  30142. - dynamic_linker="$host_os ld.so"
  30143. - shlibpath_var=LIBRARY_PATH
  30144. - ;;
  30145. -
  30146. -bsdi[45]*)
  30147. - version_type=linux
  30148. - need_version=no
  30149. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30150. - soname_spec='${libname}${release}${shared_ext}$major'
  30151. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  30152. - shlibpath_var=LD_LIBRARY_PATH
  30153. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  30154. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  30155. - # the default ld.so.conf also contains /usr/contrib/lib and
  30156. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  30157. - # libtool to hard-code these into programs
  30158. - ;;
  30159. -
  30160. -cygwin* | mingw* | pw32*)
  30161. - version_type=windows
  30162. - shrext_cmds=".dll"
  30163. - need_version=no
  30164. - need_lib_prefix=no
  30165. -
  30166. - case $GCC,$host_os in
  30167. - yes,cygwin* | yes,mingw* | yes,pw32*)
  30168. - library_names_spec='$libname.dll.a'
  30169. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  30170. - postinstall_cmds='base_file=`basename \${file}`~
  30171. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  30172. - dldir=$destdir/`dirname \$dlpath`~
  30173. - test -d \$dldir || mkdir -p \$dldir~
  30174. - $install_prog $dir/$dlname \$dldir/$dlname~
  30175. - chmod a+x \$dldir/$dlname'
  30176. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  30177. - dlpath=$dir/\$dldll~
  30178. - $rm \$dlpath'
  30179. - shlibpath_overrides_runpath=yes
  30180. -
  30181. - case $host_os in
  30182. - cygwin*)
  30183. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  30184. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30185. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  30186. - ;;
  30187. - mingw*)
  30188. - # MinGW DLLs use traditional 'lib' prefix
  30189. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30190. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  30191. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  30192. - # It is most probably a Windows format PATH printed by
  30193. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  30194. - # path with ; separators, and with drive letters. We can handle the
  30195. - # drive letters (cygwin fileutils understands them), so leave them,
  30196. - # especially as we might pass files found there to a mingw objdump,
  30197. - # which wouldn't understand a cygwinified path. Ahh.
  30198. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  30199. - else
  30200. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  30201. - fi
  30202. - ;;
  30203. - pw32*)
  30204. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  30205. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30206. - ;;
  30207. - esac
  30208. - ;;
  30209. -
  30210. - *)
  30211. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  30212. - ;;
  30213. - esac
  30214. - dynamic_linker='Win32 ld.exe'
  30215. - # FIXME: first we should search . and the directory the executable is in
  30216. - shlibpath_var=PATH
  30217. - ;;
  30218. -
  30219. -darwin* | rhapsody*)
  30220. - dynamic_linker="$host_os dyld"
  30221. - version_type=darwin
  30222. - need_lib_prefix=no
  30223. - need_version=no
  30224. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  30225. - soname_spec='${libname}${release}${major}$shared_ext'
  30226. - shlibpath_overrides_runpath=yes
  30227. - shlibpath_var=DYLD_LIBRARY_PATH
  30228. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  30229. -
  30230. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  30231. - ;;
  30232. -
  30233. -dgux*)
  30234. - version_type=linux
  30235. - need_lib_prefix=no
  30236. - need_version=no
  30237. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  30238. - soname_spec='${libname}${release}${shared_ext}$major'
  30239. - shlibpath_var=LD_LIBRARY_PATH
  30240. - ;;
  30241. -
  30242. -freebsd1*)
  30243. - dynamic_linker=no
  30244. - ;;
  30245. -
  30246. -freebsd* | dragonfly*)
  30247. - # DragonFly does not have aout. When/if they implement a new
  30248. - # versioning mechanism, adjust this.
  30249. - if test -x /usr/bin/objformat; then
  30250. - objformat=`/usr/bin/objformat`
  30251. - else
  30252. - case $host_os in
  30253. - freebsd[123]*) objformat=aout ;;
  30254. - *) objformat=elf ;;
  30255. - esac
  30256. - fi
  30257. - version_type=freebsd-$objformat
  30258. - case $version_type in
  30259. - freebsd-elf*)
  30260. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30261. - need_version=no
  30262. - need_lib_prefix=no
  30263. - ;;
  30264. - freebsd-*)
  30265. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  30266. - need_version=yes
  30267. - ;;
  30268. - esac
  30269. - shlibpath_var=LD_LIBRARY_PATH
  30270. - case $host_os in
  30271. - freebsd2*)
  30272. - shlibpath_overrides_runpath=yes
  30273. - ;;
  30274. - freebsd3.[01]* | freebsdelf3.[01]*)
  30275. - shlibpath_overrides_runpath=yes
  30276. - hardcode_into_libs=yes
  30277. - ;;
  30278. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  30279. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  30280. - shlibpath_overrides_runpath=no
  30281. - hardcode_into_libs=yes
  30282. - ;;
  30283. - *) # from 4.6 on, and DragonFly
  30284. - shlibpath_overrides_runpath=yes
  30285. - hardcode_into_libs=yes
  30286. - ;;
  30287. - esac
  30288. - ;;
  30289. -
  30290. -gnu*)
  30291. - version_type=linux
  30292. - need_lib_prefix=no
  30293. - need_version=no
  30294. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  30295. - soname_spec='${libname}${release}${shared_ext}$major'
  30296. - shlibpath_var=LD_LIBRARY_PATH
  30297. - hardcode_into_libs=yes
  30298. - ;;
  30299. -
  30300. -hpux9* | hpux10* | hpux11*)
  30301. - # Give a soname corresponding to the major version so that dld.sl refuses to
  30302. - # link against other versions.
  30303. - version_type=sunos
  30304. - need_lib_prefix=no
  30305. - need_version=no
  30306. - case $host_cpu in
  30307. - ia64*)
  30308. - shrext_cmds='.so'
  30309. - hardcode_into_libs=yes
  30310. - dynamic_linker="$host_os dld.so"
  30311. - shlibpath_var=LD_LIBRARY_PATH
  30312. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30313. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30314. - soname_spec='${libname}${release}${shared_ext}$major'
  30315. - if test "X$HPUX_IA64_MODE" = X32; then
  30316. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  30317. - else
  30318. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  30319. - fi
  30320. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30321. - ;;
  30322. - hppa*64*)
  30323. - shrext_cmds='.sl'
  30324. - hardcode_into_libs=yes
  30325. - dynamic_linker="$host_os dld.sl"
  30326. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  30327. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30328. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30329. - soname_spec='${libname}${release}${shared_ext}$major'
  30330. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  30331. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30332. - ;;
  30333. - *)
  30334. - shrext_cmds='.sl'
  30335. - dynamic_linker="$host_os dld.sl"
  30336. - shlibpath_var=SHLIB_PATH
  30337. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  30338. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30339. - soname_spec='${libname}${release}${shared_ext}$major'
  30340. - ;;
  30341. - esac
  30342. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  30343. - postinstall_cmds='chmod 555 $lib'
  30344. - ;;
  30345. -
  30346. -interix[3-9]*)
  30347. - version_type=linux
  30348. - need_lib_prefix=no
  30349. - need_version=no
  30350. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30351. - soname_spec='${libname}${release}${shared_ext}$major'
  30352. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  30353. - shlibpath_var=LD_LIBRARY_PATH
  30354. - shlibpath_overrides_runpath=no
  30355. - hardcode_into_libs=yes
  30356. - ;;
  30357. -
  30358. -irix5* | irix6* | nonstopux*)
  30359. - case $host_os in
  30360. - nonstopux*) version_type=nonstopux ;;
  30361. - *)
  30362. - if test "$lt_cv_prog_gnu_ld" = yes; then
  30363. - version_type=linux
  30364. - else
  30365. - version_type=irix
  30366. - fi ;;
  30367. - esac
  30368. - need_lib_prefix=no
  30369. - need_version=no
  30370. - soname_spec='${libname}${release}${shared_ext}$major'
  30371. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  30372. - case $host_os in
  30373. - irix5* | nonstopux*)
  30374. - libsuff= shlibsuff=
  30375. - ;;
  30376. - *)
  30377. - case $LD in # libtool.m4 will add one of these switches to LD
  30378. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  30379. - libsuff= shlibsuff= libmagic=32-bit;;
  30380. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  30381. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  30382. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  30383. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  30384. - *) libsuff= shlibsuff= libmagic=never-match;;
  30385. - esac
  30386. - ;;
  30387. - esac
  30388. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  30389. - shlibpath_overrides_runpath=no
  30390. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  30391. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  30392. - hardcode_into_libs=yes
  30393. - ;;
  30394. -
  30395. -# No shared lib support for Linux oldld, aout, or coff.
  30396. -linux*oldld* | linux*aout* | linux*coff*)
  30397. - dynamic_linker=no
  30398. - ;;
  30399. -
  30400. -# This must be Linux ELF.
  30401. -linux* | k*bsd*-gnu)
  30402. - version_type=linux
  30403. - need_lib_prefix=no
  30404. - need_version=no
  30405. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30406. - soname_spec='${libname}${release}${shared_ext}$major'
  30407. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  30408. - shlibpath_var=LD_LIBRARY_PATH
  30409. - shlibpath_overrides_runpath=no
  30410. - # This implies no fast_install, which is unacceptable.
  30411. - # Some rework will be needed to allow for fast_install
  30412. - # before this can be enabled.
  30413. - hardcode_into_libs=yes
  30414. -
  30415. - # Append ld.so.conf contents to the search path
  30416. - if test -f /etc/ld.so.conf; then
  30417. - 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' ' '`
  30418. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  30419. - fi
  30420. -
  30421. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  30422. - # powerpc, because MkLinux only supported shared libraries with the
  30423. - # GNU dynamic linker. Since this was broken with cross compilers,
  30424. - # most powerpc-linux boxes support dynamic linking these days and
  30425. - # people can always --disable-shared, the test was removed, and we
  30426. - # assume the GNU/Linux dynamic linker is in use.
  30427. - dynamic_linker='GNU/Linux ld.so'
  30428. - ;;
  30429. -
  30430. -netbsdelf*-gnu)
  30431. - version_type=linux
  30432. - need_lib_prefix=no
  30433. - need_version=no
  30434. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30435. - soname_spec='${libname}${release}${shared_ext}$major'
  30436. - shlibpath_var=LD_LIBRARY_PATH
  30437. - shlibpath_overrides_runpath=no
  30438. - hardcode_into_libs=yes
  30439. - dynamic_linker='NetBSD ld.elf_so'
  30440. - ;;
  30441. -
  30442. -netbsd*)
  30443. - version_type=sunos
  30444. - need_lib_prefix=no
  30445. - need_version=no
  30446. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30447. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30448. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30449. - dynamic_linker='NetBSD (a.out) ld.so'
  30450. - else
  30451. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30452. - soname_spec='${libname}${release}${shared_ext}$major'
  30453. - dynamic_linker='NetBSD ld.elf_so'
  30454. - fi
  30455. - shlibpath_var=LD_LIBRARY_PATH
  30456. - shlibpath_overrides_runpath=yes
  30457. - hardcode_into_libs=yes
  30458. - ;;
  30459. -
  30460. -newsos6)
  30461. - version_type=linux
  30462. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30463. - shlibpath_var=LD_LIBRARY_PATH
  30464. - shlibpath_overrides_runpath=yes
  30465. - ;;
  30466. -
  30467. -nto-qnx*)
  30468. - version_type=linux
  30469. - need_lib_prefix=no
  30470. - need_version=no
  30471. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30472. - soname_spec='${libname}${release}${shared_ext}$major'
  30473. - shlibpath_var=LD_LIBRARY_PATH
  30474. - shlibpath_overrides_runpath=yes
  30475. - ;;
  30476. -
  30477. -openbsd*)
  30478. - version_type=sunos
  30479. - sys_lib_dlsearch_path_spec="/usr/lib"
  30480. - need_lib_prefix=no
  30481. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  30482. - case $host_os in
  30483. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  30484. - *) need_version=no ;;
  30485. - esac
  30486. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30487. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30488. - shlibpath_var=LD_LIBRARY_PATH
  30489. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  30490. - case $host_os in
  30491. - openbsd2.[89] | openbsd2.[89].*)
  30492. - shlibpath_overrides_runpath=no
  30493. - ;;
  30494. - *)
  30495. - shlibpath_overrides_runpath=yes
  30496. - ;;
  30497. - esac
  30498. - else
  30499. - shlibpath_overrides_runpath=yes
  30500. - fi
  30501. - ;;
  30502. -
  30503. -os2*)
  30504. - libname_spec='$name'
  30505. - shrext_cmds=".dll"
  30506. - need_lib_prefix=no
  30507. - library_names_spec='$libname${shared_ext} $libname.a'
  30508. - dynamic_linker='OS/2 ld.exe'
  30509. - shlibpath_var=LIBPATH
  30510. - ;;
  30511. -
  30512. -osf3* | osf4* | osf5*)
  30513. - version_type=osf
  30514. - need_lib_prefix=no
  30515. - need_version=no
  30516. - soname_spec='${libname}${release}${shared_ext}$major'
  30517. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30518. - shlibpath_var=LD_LIBRARY_PATH
  30519. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  30520. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  30521. - ;;
  30522. -
  30523. -rdos*)
  30524. - dynamic_linker=no
  30525. - ;;
  30526. -
  30527. -solaris*)
  30528. - version_type=linux
  30529. - need_lib_prefix=no
  30530. - need_version=no
  30531. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30532. - soname_spec='${libname}${release}${shared_ext}$major'
  30533. - shlibpath_var=LD_LIBRARY_PATH
  30534. - shlibpath_overrides_runpath=yes
  30535. - hardcode_into_libs=yes
  30536. - # ldd complains unless libraries are executable
  30537. - postinstall_cmds='chmod +x $lib'
  30538. - ;;
  30539. -
  30540. -sunos4*)
  30541. - version_type=sunos
  30542. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30543. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  30544. - shlibpath_var=LD_LIBRARY_PATH
  30545. - shlibpath_overrides_runpath=yes
  30546. - if test "$with_gnu_ld" = yes; then
  30547. - need_lib_prefix=no
  30548. - fi
  30549. - need_version=yes
  30550. - ;;
  30551. -
  30552. -sysv4 | sysv4.3*)
  30553. - version_type=linux
  30554. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30555. - soname_spec='${libname}${release}${shared_ext}$major'
  30556. - shlibpath_var=LD_LIBRARY_PATH
  30557. - case $host_vendor in
  30558. - sni)
  30559. - shlibpath_overrides_runpath=no
  30560. - need_lib_prefix=no
  30561. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  30562. - runpath_var=LD_RUN_PATH
  30563. - ;;
  30564. - siemens)
  30565. - need_lib_prefix=no
  30566. - ;;
  30567. - motorola)
  30568. - need_lib_prefix=no
  30569. - need_version=no
  30570. - shlibpath_overrides_runpath=no
  30571. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  30572. - ;;
  30573. - esac
  30574. - ;;
  30575. -
  30576. -sysv4*MP*)
  30577. - if test -d /usr/nec ;then
  30578. - version_type=linux
  30579. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  30580. - soname_spec='$libname${shared_ext}.$major'
  30581. - shlibpath_var=LD_LIBRARY_PATH
  30582. - fi
  30583. - ;;
  30584. -
  30585. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  30586. - version_type=freebsd-elf
  30587. - need_lib_prefix=no
  30588. - need_version=no
  30589. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30590. - soname_spec='${libname}${release}${shared_ext}$major'
  30591. - shlibpath_var=LD_LIBRARY_PATH
  30592. - hardcode_into_libs=yes
  30593. - if test "$with_gnu_ld" = yes; then
  30594. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  30595. - shlibpath_overrides_runpath=no
  30596. - else
  30597. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  30598. - shlibpath_overrides_runpath=yes
  30599. - case $host_os in
  30600. - sco3.2v5*)
  30601. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  30602. - ;;
  30603. - esac
  30604. - fi
  30605. - sys_lib_dlsearch_path_spec='/usr/lib'
  30606. - ;;
  30607. -
  30608. -uts4*)
  30609. - version_type=linux
  30610. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30611. - soname_spec='${libname}${release}${shared_ext}$major'
  30612. - shlibpath_var=LD_LIBRARY_PATH
  30613. - ;;
  30614. -
  30615. -*)
  30616. - dynamic_linker=no
  30617. - ;;
  30618. -esac
  30619. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  30620. -echo "${ECHO_T}$dynamic_linker" >&6; }
  30621. -test "$dynamic_linker" = no && can_build_shared=no
  30622. -
  30623. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  30624. -if test "$GCC" = yes; then
  30625. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  30626. -fi
  30627. -
  30628. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  30629. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  30630. -hardcode_action_CXX=
  30631. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  30632. - test -n "$runpath_var_CXX" || \
  30633. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  30634. -
  30635. - # We can hardcode non-existant directories.
  30636. - if test "$hardcode_direct_CXX" != no &&
  30637. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  30638. - # have to relink, otherwise we might link with an installed library
  30639. - # when we should be linking with a yet-to-be-installed one
  30640. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  30641. - test "$hardcode_minus_L_CXX" != no; then
  30642. - # Linking always hardcodes the temporary library directory.
  30643. - hardcode_action_CXX=relink
  30644. - else
  30645. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  30646. - hardcode_action_CXX=immediate
  30647. - fi
  30648. -else
  30649. - # We cannot hardcode anything, or else we can only hardcode existing
  30650. - # directories.
  30651. - hardcode_action_CXX=unsupported
  30652. -fi
  30653. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  30654. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  30655. -
  30656. -if test "$hardcode_action_CXX" = relink; then
  30657. - # Fast installation is not supported
  30658. - enable_fast_install=no
  30659. -elif test "$shlibpath_overrides_runpath" = yes ||
  30660. - test "$enable_shared" = no; then
  30661. - # Fast installation is not necessary
  30662. - enable_fast_install=needless
  30663. -fi
  30664. -
  30665. -
  30666. -# The else clause should only fire when bootstrapping the
  30667. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  30668. -# with your package, and you will get complaints that there are
  30669. -# no rules to generate ltmain.sh.
  30670. -if test -f "$ltmain"; then
  30671. - # See if we are running on zsh, and set the options which allow our commands through
  30672. - # without removal of \ escapes.
  30673. - if test -n "${ZSH_VERSION+set}" ; then
  30674. - setopt NO_GLOB_SUBST
  30675. - fi
  30676. - # Now quote all the things that may contain metacharacters while being
  30677. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  30678. - # variables and quote the copies for generation of the libtool script.
  30679. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  30680. - SED SHELL STRIP \
  30681. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  30682. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  30683. - deplibs_check_method reload_flag reload_cmds need_locks \
  30684. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  30685. - lt_cv_sys_global_symbol_to_c_name_address \
  30686. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  30687. - old_postinstall_cmds old_postuninstall_cmds \
  30688. - compiler_CXX \
  30689. - CC_CXX \
  30690. - LD_CXX \
  30691. - lt_prog_compiler_wl_CXX \
  30692. - lt_prog_compiler_pic_CXX \
  30693. - lt_prog_compiler_static_CXX \
  30694. - lt_prog_compiler_no_builtin_flag_CXX \
  30695. - export_dynamic_flag_spec_CXX \
  30696. - thread_safe_flag_spec_CXX \
  30697. - whole_archive_flag_spec_CXX \
  30698. - enable_shared_with_static_runtimes_CXX \
  30699. - old_archive_cmds_CXX \
  30700. - old_archive_from_new_cmds_CXX \
  30701. - predep_objects_CXX \
  30702. - postdep_objects_CXX \
  30703. - predeps_CXX \
  30704. - postdeps_CXX \
  30705. - compiler_lib_search_path_CXX \
  30706. - archive_cmds_CXX \
  30707. - archive_expsym_cmds_CXX \
  30708. - postinstall_cmds_CXX \
  30709. - postuninstall_cmds_CXX \
  30710. - old_archive_from_expsyms_cmds_CXX \
  30711. - allow_undefined_flag_CXX \
  30712. - no_undefined_flag_CXX \
  30713. - export_symbols_cmds_CXX \
  30714. - hardcode_libdir_flag_spec_CXX \
  30715. - hardcode_libdir_flag_spec_ld_CXX \
  30716. - hardcode_libdir_separator_CXX \
  30717. - hardcode_automatic_CXX \
  30718. - module_cmds_CXX \
  30719. - module_expsym_cmds_CXX \
  30720. - lt_cv_prog_compiler_c_o_CXX \
  30721. - fix_srcfile_path_CXX \
  30722. - exclude_expsyms_CXX \
  30723. - include_expsyms_CXX; do
  30724. -
  30725. - case $var in
  30726. - old_archive_cmds_CXX | \
  30727. - old_archive_from_new_cmds_CXX | \
  30728. - archive_cmds_CXX | \
  30729. - archive_expsym_cmds_CXX | \
  30730. - module_cmds_CXX | \
  30731. - module_expsym_cmds_CXX | \
  30732. - old_archive_from_expsyms_cmds_CXX | \
  30733. - export_symbols_cmds_CXX | \
  30734. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30735. - postinstall_cmds | postuninstall_cmds | \
  30736. - old_postinstall_cmds | old_postuninstall_cmds | \
  30737. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30738. - # Double-quote double-evaled strings.
  30739. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30740. - ;;
  30741. - *)
  30742. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30743. - ;;
  30744. - esac
  30745. - done
  30746. -
  30747. - case $lt_echo in
  30748. - *'\$0 --fallback-echo"')
  30749. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30750. - ;;
  30751. - esac
  30752. -
  30753. -cfgfile="$ofile"
  30754. -
  30755. - cat <<__EOF__ >> "$cfgfile"
  30756. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  30757. -
  30758. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30759. -
  30760. -# Shell to use when invoking shell scripts.
  30761. -SHELL=$lt_SHELL
  30762. -
  30763. -# Whether or not to build shared libraries.
  30764. -build_libtool_libs=$enable_shared
  30765. -
  30766. -# Whether or not to build static libraries.
  30767. -build_old_libs=$enable_static
  30768. -
  30769. -# Whether or not to add -lc for building shared libraries.
  30770. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  30771. -
  30772. -# Whether or not to disallow shared libs when runtime libs are static
  30773. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  30774. -
  30775. -# Whether or not to optimize for fast installation.
  30776. -fast_install=$enable_fast_install
  30777. -
  30778. -# The host system.
  30779. -host_alias=$host_alias
  30780. -host=$host
  30781. -host_os=$host_os
  30782. -
  30783. -# The build system.
  30784. -build_alias=$build_alias
  30785. -build=$build
  30786. -build_os=$build_os
  30787. -
  30788. -# An echo program that does not interpret backslashes.
  30789. -echo=$lt_echo
  30790. -
  30791. -# The archiver.
  30792. -AR=$lt_AR
  30793. -AR_FLAGS=$lt_AR_FLAGS
  30794. -
  30795. -# A C compiler.
  30796. -LTCC=$lt_LTCC
  30797. -
  30798. -# LTCC compiler flags.
  30799. -LTCFLAGS=$lt_LTCFLAGS
  30800. -
  30801. -# A language-specific compiler.
  30802. -CC=$lt_compiler_CXX
  30803. -
  30804. -# Is the compiler the GNU C compiler?
  30805. -with_gcc=$GCC_CXX
  30806. -
  30807. -# An ERE matcher.
  30808. -EGREP=$lt_EGREP
  30809. -
  30810. -# The linker used to build libraries.
  30811. -LD=$lt_LD_CXX
  30812. -
  30813. -# Whether we need hard or soft links.
  30814. -LN_S=$lt_LN_S
  30815. -
  30816. -# A BSD-compatible nm program.
  30817. -NM=$lt_NM
  30818. -
  30819. -# A symbol stripping program
  30820. -STRIP=$lt_STRIP
  30821. -
  30822. -# Used to examine libraries when file_magic_cmd begins "file"
  30823. -MAGIC_CMD=$MAGIC_CMD
  30824. -
  30825. -# Used on cygwin: DLL creation program.
  30826. -DLLTOOL="$DLLTOOL"
  30827. -
  30828. -# Used on cygwin: object dumper.
  30829. -OBJDUMP="$OBJDUMP"
  30830. -
  30831. -# Used on cygwin: assembler.
  30832. -AS="$AS"
  30833. -
  30834. -# The name of the directory that contains temporary libtool files.
  30835. -objdir=$objdir
  30836. -
  30837. -# How to create reloadable object files.
  30838. -reload_flag=$lt_reload_flag
  30839. -reload_cmds=$lt_reload_cmds
  30840. -
  30841. -# How to pass a linker flag through the compiler.
  30842. -wl=$lt_lt_prog_compiler_wl_CXX
  30843. -
  30844. -# Object file suffix (normally "o").
  30845. -objext="$ac_objext"
  30846. -
  30847. -# Old archive suffix (normally "a").
  30848. -libext="$libext"
  30849. -
  30850. -# Shared library suffix (normally ".so").
  30851. -shrext_cmds='$shrext_cmds'
  30852. -
  30853. -# Executable file suffix (normally "").
  30854. -exeext="$exeext"
  30855. -
  30856. -# Additional compiler flags for building library objects.
  30857. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  30858. -pic_mode=$pic_mode
  30859. -
  30860. -# What is the maximum length of a command?
  30861. -max_cmd_len=$lt_cv_sys_max_cmd_len
  30862. -
  30863. -# Does compiler simultaneously support -c and -o options?
  30864. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  30865. -
  30866. -# Must we lock files when doing compilation?
  30867. -need_locks=$lt_need_locks
  30868. -
  30869. -# Do we need the lib prefix for modules?
  30870. -need_lib_prefix=$need_lib_prefix
  30871. -
  30872. -# Do we need a version for libraries?
  30873. -need_version=$need_version
  30874. -
  30875. -# Whether dlopen is supported.
  30876. -dlopen_support=$enable_dlopen
  30877. -
  30878. -# Whether dlopen of programs is supported.
  30879. -dlopen_self=$enable_dlopen_self
  30880. -
  30881. -# Whether dlopen of statically linked programs is supported.
  30882. -dlopen_self_static=$enable_dlopen_self_static
  30883. -
  30884. -# Compiler flag to prevent dynamic linking.
  30885. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  30886. -
  30887. -# Compiler flag to turn off builtin functions.
  30888. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  30889. -
  30890. -# Compiler flag to allow reflexive dlopens.
  30891. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  30892. -
  30893. -# Compiler flag to generate shared objects directly from archives.
  30894. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  30895. -
  30896. -# Compiler flag to generate thread-safe objects.
  30897. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  30898. -
  30899. -# Library versioning type.
  30900. -version_type=$version_type
  30901. -
  30902. -# Format of library name prefix.
  30903. -libname_spec=$lt_libname_spec
  30904. -
  30905. -# List of archive names. First name is the real one, the rest are links.
  30906. -# The last name is the one that the linker finds with -lNAME.
  30907. -library_names_spec=$lt_library_names_spec
  30908. -
  30909. -# The coded name of the library, if different from the real name.
  30910. -soname_spec=$lt_soname_spec
  30911. -
  30912. -# Commands used to build and install an old-style archive.
  30913. -RANLIB=$lt_RANLIB
  30914. -old_archive_cmds=$lt_old_archive_cmds_CXX
  30915. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30916. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30917. -
  30918. -# Create an old-style archive from a shared archive.
  30919. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  30920. -
  30921. -# Create a temporary old-style archive to link instead of a shared archive.
  30922. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  30923. -
  30924. -# Commands used to build and install a shared archive.
  30925. -archive_cmds=$lt_archive_cmds_CXX
  30926. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  30927. -postinstall_cmds=$lt_postinstall_cmds
  30928. -postuninstall_cmds=$lt_postuninstall_cmds
  30929. -
  30930. -# Commands used to build a loadable module (assumed same as above if empty)
  30931. -module_cmds=$lt_module_cmds_CXX
  30932. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  30933. -
  30934. -# Commands to strip libraries.
  30935. -old_striplib=$lt_old_striplib
  30936. -striplib=$lt_striplib
  30937. -
  30938. -# Dependencies to place before the objects being linked to create a
  30939. -# shared library.
  30940. -predep_objects=$lt_predep_objects_CXX
  30941. -
  30942. -# Dependencies to place after the objects being linked to create a
  30943. -# shared library.
  30944. -postdep_objects=$lt_postdep_objects_CXX
  30945. -
  30946. -# Dependencies to place before the objects being linked to create a
  30947. -# shared library.
  30948. -predeps=$lt_predeps_CXX
  30949. -
  30950. -# Dependencies to place after the objects being linked to create a
  30951. -# shared library.
  30952. -postdeps=$lt_postdeps_CXX
  30953. -
  30954. -# The library search path used internally by the compiler when linking
  30955. -# a shared library.
  30956. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  30957. -
  30958. -# Method to check whether dependent libraries are shared objects.
  30959. -deplibs_check_method=$lt_deplibs_check_method
  30960. -
  30961. -# Command to use when deplibs_check_method == file_magic.
  30962. -file_magic_cmd=$lt_file_magic_cmd
  30963. -
  30964. -# Flag that allows shared libraries with undefined symbols to be built.
  30965. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  30966. -
  30967. -# Flag that forces no undefined symbols.
  30968. -no_undefined_flag=$lt_no_undefined_flag_CXX
  30969. -
  30970. -# Commands used to finish a libtool library installation in a directory.
  30971. -finish_cmds=$lt_finish_cmds
  30972. -
  30973. -# Same as above, but a single script fragment to be evaled but not shown.
  30974. -finish_eval=$lt_finish_eval
  30975. -
  30976. -# Take the output of nm and produce a listing of raw symbols and C names.
  30977. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30978. -
  30979. -# Transform the output of nm in a proper C declaration
  30980. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30981. -
  30982. -# Transform the output of nm in a C name address pair
  30983. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30984. -
  30985. -# This is the shared library runtime path variable.
  30986. -runpath_var=$runpath_var
  30987. -
  30988. -# This is the shared library path variable.
  30989. -shlibpath_var=$shlibpath_var
  30990. -
  30991. -# Is shlibpath searched before the hard-coded library search path?
  30992. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30993. -
  30994. -# How to hardcode a shared library path into an executable.
  30995. -hardcode_action=$hardcode_action_CXX
  30996. -
  30997. -# Whether we should hardcode library paths into libraries.
  30998. -hardcode_into_libs=$hardcode_into_libs
  30999. -
  31000. -# Flag to hardcode \$libdir into a binary during linking.
  31001. -# This must work even if \$libdir does not exist.
  31002. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  31003. -
  31004. -# If ld is used when linking, flag to hardcode \$libdir into
  31005. -# a binary during linking. This must work even if \$libdir does
  31006. -# not exist.
  31007. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  31008. -
  31009. -# Whether we need a single -rpath flag with a separated argument.
  31010. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  31011. -
  31012. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  31013. -# resulting binary.
  31014. -hardcode_direct=$hardcode_direct_CXX
  31015. -
  31016. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  31017. -# resulting binary.
  31018. -hardcode_minus_L=$hardcode_minus_L_CXX
  31019. -
  31020. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  31021. -# the resulting binary.
  31022. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  31023. -
  31024. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  31025. -# and all subsequent libraries and executables linked against it.
  31026. -hardcode_automatic=$hardcode_automatic_CXX
  31027. -
  31028. -# Variables whose values should be saved in libtool wrapper scripts and
  31029. -# restored at relink time.
  31030. -variables_saved_for_relink="$variables_saved_for_relink"
  31031. -
  31032. -# Whether libtool must link a program against all its dependency libraries.
  31033. -link_all_deplibs=$link_all_deplibs_CXX
  31034. -
  31035. -# Compile-time system search path for libraries
  31036. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  31037. -
  31038. -# Run-time system search path for libraries
  31039. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  31040. -
  31041. -# Fix the shell variable \$srcfile for the compiler.
  31042. -fix_srcfile_path=$lt_fix_srcfile_path
  31043. -
  31044. -# Set to yes if exported symbols are required.
  31045. -always_export_symbols=$always_export_symbols_CXX
  31046. -
  31047. -# The commands to list exported symbols.
  31048. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  31049. -
  31050. -# The commands to extract the exported symbol list from a shared archive.
  31051. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  31052. -
  31053. -# Symbols that should not be listed in the preloaded symbols.
  31054. -exclude_expsyms=$lt_exclude_expsyms_CXX
  31055. -
  31056. -# Symbols that must always be exported.
  31057. -include_expsyms=$lt_include_expsyms_CXX
  31058. -
  31059. -# ### END LIBTOOL TAG CONFIG: $tagname
  31060. -
  31061. -__EOF__
  31062. -
  31063. -
  31064. -else
  31065. - # If there is no Makefile yet, we rely on a make rule to execute
  31066. - # `config.status --recheck' to rerun these tests and create the
  31067. - # libtool script then.
  31068. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  31069. - if test -f "$ltmain_in"; then
  31070. - test -f Makefile && make "$ltmain"
  31071. - fi
  31072. -fi
  31073. -
  31074. -
  31075. -ac_ext=c
  31076. -ac_cpp='$CPP $CPPFLAGS'
  31077. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31078. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31079. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31080. -
  31081. -CC=$lt_save_CC
  31082. -LDCXX=$LD
  31083. -LD=$lt_save_LD
  31084. -GCC=$lt_save_GCC
  31085. -with_gnu_ldcxx=$with_gnu_ld
  31086. -with_gnu_ld=$lt_save_with_gnu_ld
  31087. -lt_cv_path_LDCXX=$lt_cv_path_LD
  31088. -lt_cv_path_LD=$lt_save_path_LD
  31089. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  31090. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  31091. -
  31092. - else
  31093. - tagname=""
  31094. - fi
  31095. - ;;
  31096. -
  31097. - F77)
  31098. - if test -n "$F77" && test "X$F77" != "Xno"; then
  31099. -
  31100. -ac_ext=f
  31101. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  31102. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31103. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  31104. -
  31105. -
  31106. -archive_cmds_need_lc_F77=no
  31107. -allow_undefined_flag_F77=
  31108. -always_export_symbols_F77=no
  31109. -archive_expsym_cmds_F77=
  31110. -export_dynamic_flag_spec_F77=
  31111. -hardcode_direct_F77=no
  31112. -hardcode_libdir_flag_spec_F77=
  31113. -hardcode_libdir_flag_spec_ld_F77=
  31114. -hardcode_libdir_separator_F77=
  31115. -hardcode_minus_L_F77=no
  31116. -hardcode_automatic_F77=no
  31117. -module_cmds_F77=
  31118. -module_expsym_cmds_F77=
  31119. -link_all_deplibs_F77=unknown
  31120. -old_archive_cmds_F77=$old_archive_cmds
  31121. -no_undefined_flag_F77=
  31122. -whole_archive_flag_spec_F77=
  31123. -enable_shared_with_static_runtimes_F77=no
  31124. -
  31125. -# Source file extension for f77 test sources.
  31126. -ac_ext=f
  31127. -
  31128. -# Object file extension for compiled f77 test sources.
  31129. -objext=o
  31130. -objext_F77=$objext
  31131. -
  31132. -# Code to be used in simple compile tests
  31133. -lt_simple_compile_test_code="\
  31134. - subroutine t
  31135. - return
  31136. - end
  31137. -"
  31138. -
  31139. -# Code to be used in simple link tests
  31140. -lt_simple_link_test_code="\
  31141. - program t
  31142. - end
  31143. -"
  31144. -
  31145. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  31146. -
  31147. -# If no C compiler was specified, use CC.
  31148. -LTCC=${LTCC-"$CC"}
  31149. -
  31150. -# If no C compiler flags were specified, use CFLAGS.
  31151. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  31152. -
  31153. -# Allow CC to be a program name with arguments.
  31154. -compiler=$CC
  31155. -
  31156. -
  31157. -# save warnings/boilerplate of simple test code
  31158. -ac_outfile=conftest.$ac_objext
  31159. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  31160. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31161. -_lt_compiler_boilerplate=`cat conftest.err`
  31162. -$rm conftest*
  31163. -
  31164. -ac_outfile=conftest.$ac_objext
  31165. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  31166. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31167. -_lt_linker_boilerplate=`cat conftest.err`
  31168. -$rm conftest*
  31169. -
  31170. -
  31171. -# Allow CC to be a program name with arguments.
  31172. -lt_save_CC="$CC"
  31173. -CC=${F77-"f77"}
  31174. -compiler=$CC
  31175. -compiler_F77=$CC
  31176. -for cc_temp in $compiler""; do
  31177. - case $cc_temp in
  31178. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31179. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31180. - \-*) ;;
  31181. - *) break;;
  31182. - esac
  31183. -done
  31184. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31185. -
  31186. -
  31187. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  31188. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  31189. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  31190. -echo "${ECHO_T}$can_build_shared" >&6; }
  31191. -
  31192. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  31193. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  31194. -test "$can_build_shared" = "no" && enable_shared=no
  31195. -
  31196. -# On AIX, shared libraries and static libraries use the same namespace, and
  31197. -# are all built from PIC.
  31198. -case $host_os in
  31199. -aix3*)
  31200. - test "$enable_shared" = yes && enable_static=no
  31201. - if test -n "$RANLIB"; then
  31202. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  31203. - postinstall_cmds='$RANLIB $lib'
  31204. - fi
  31205. - ;;
  31206. -aix4* | aix5*)
  31207. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  31208. - test "$enable_shared" = yes && enable_static=no
  31209. - fi
  31210. - ;;
  31211. -esac
  31212. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  31213. -echo "${ECHO_T}$enable_shared" >&6; }
  31214. -
  31215. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  31216. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  31217. -# Make sure either enable_shared or enable_static is yes.
  31218. -test "$enable_shared" = yes || enable_static=yes
  31219. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  31220. -echo "${ECHO_T}$enable_static" >&6; }
  31221. -
  31222. -GCC_F77="$G77"
  31223. -LD_F77="$LD"
  31224. -
  31225. -lt_prog_compiler_wl_F77=
  31226. -lt_prog_compiler_pic_F77=
  31227. -lt_prog_compiler_static_F77=
  31228. -
  31229. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  31230. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  31231. -
  31232. - if test "$GCC" = yes; then
  31233. - lt_prog_compiler_wl_F77='-Wl,'
  31234. - lt_prog_compiler_static_F77='-static'
  31235. -
  31236. - case $host_os in
  31237. - aix*)
  31238. - # All AIX code is PIC.
  31239. - if test "$host_cpu" = ia64; then
  31240. - # AIX 5 now supports IA64 processor
  31241. - lt_prog_compiler_static_F77='-Bstatic'
  31242. - fi
  31243. - ;;
  31244. -
  31245. - amigaos*)
  31246. - # FIXME: we need at least 68020 code to build shared libraries, but
  31247. - # adding the `-m68020' flag to GCC prevents building anything better,
  31248. - # like `-m68040'.
  31249. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  31250. - ;;
  31251. -
  31252. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  31253. - # PIC is the default for these OSes.
  31254. - ;;
  31255. -
  31256. - mingw* | cygwin* | pw32* | os2*)
  31257. - # This hack is so that the source file can tell whether it is being
  31258. - # built for inclusion in a dll (and should export symbols for example).
  31259. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  31260. - # (--disable-auto-import) libraries
  31261. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  31262. - ;;
  31263. -
  31264. - darwin* | rhapsody*)
  31265. - # PIC is the default on this platform
  31266. - # Common symbols not allowed in MH_DYLIB files
  31267. - lt_prog_compiler_pic_F77='-fno-common'
  31268. - ;;
  31269. -
  31270. - interix[3-9]*)
  31271. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  31272. - # Instead, we relocate shared libraries at runtime.
  31273. - ;;
  31274. -
  31275. - msdosdjgpp*)
  31276. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  31277. - # on systems that don't support them.
  31278. - lt_prog_compiler_can_build_shared_F77=no
  31279. - enable_shared=no
  31280. - ;;
  31281. -
  31282. - sysv4*MP*)
  31283. - if test -d /usr/nec; then
  31284. - lt_prog_compiler_pic_F77=-Kconform_pic
  31285. - fi
  31286. - ;;
  31287. -
  31288. - hpux*)
  31289. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31290. - # not for PA HP-UX.
  31291. - case $host_cpu in
  31292. - hppa*64*|ia64*)
  31293. - # +Z the default
  31294. - ;;
  31295. - *)
  31296. - lt_prog_compiler_pic_F77='-fPIC'
  31297. - ;;
  31298. - esac
  31299. - ;;
  31300. -
  31301. - *)
  31302. - lt_prog_compiler_pic_F77='-fPIC'
  31303. - ;;
  31304. - esac
  31305. - else
  31306. - # PORTME Check for flag to pass linker flags through the system compiler.
  31307. - case $host_os in
  31308. - aix*)
  31309. - lt_prog_compiler_wl_F77='-Wl,'
  31310. - if test "$host_cpu" = ia64; then
  31311. - # AIX 5 now supports IA64 processor
  31312. - lt_prog_compiler_static_F77='-Bstatic'
  31313. - else
  31314. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  31315. - fi
  31316. - ;;
  31317. - darwin*)
  31318. - # PIC is the default on this platform
  31319. - # Common symbols not allowed in MH_DYLIB files
  31320. - case $cc_basename in
  31321. - xlc*)
  31322. - lt_prog_compiler_pic_F77='-qnocommon'
  31323. - lt_prog_compiler_wl_F77='-Wl,'
  31324. - ;;
  31325. - esac
  31326. - ;;
  31327. -
  31328. - mingw* | cygwin* | pw32* | os2*)
  31329. - # This hack is so that the source file can tell whether it is being
  31330. - # built for inclusion in a dll (and should export symbols for example).
  31331. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  31332. - ;;
  31333. -
  31334. - hpux9* | hpux10* | hpux11*)
  31335. - lt_prog_compiler_wl_F77='-Wl,'
  31336. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31337. - # not for PA HP-UX.
  31338. - case $host_cpu in
  31339. - hppa*64*|ia64*)
  31340. - # +Z the default
  31341. - ;;
  31342. - *)
  31343. - lt_prog_compiler_pic_F77='+Z'
  31344. - ;;
  31345. - esac
  31346. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  31347. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  31348. - ;;
  31349. -
  31350. - irix5* | irix6* | nonstopux*)
  31351. - lt_prog_compiler_wl_F77='-Wl,'
  31352. - # PIC (with -KPIC) is the default.
  31353. - lt_prog_compiler_static_F77='-non_shared'
  31354. - ;;
  31355. -
  31356. - newsos6)
  31357. - lt_prog_compiler_pic_F77='-KPIC'
  31358. - lt_prog_compiler_static_F77='-Bstatic'
  31359. - ;;
  31360. -
  31361. - linux* | k*bsd*-gnu)
  31362. - case $cc_basename in
  31363. - icc* | ecc*)
  31364. - lt_prog_compiler_wl_F77='-Wl,'
  31365. - lt_prog_compiler_pic_F77='-KPIC'
  31366. - lt_prog_compiler_static_F77='-static'
  31367. - ;;
  31368. - pgcc* | pgf77* | pgf90* | pgf95*)
  31369. - # Portland Group compilers (*not* the Pentium gcc compiler,
  31370. - # which looks to be a dead project)
  31371. - lt_prog_compiler_wl_F77='-Wl,'
  31372. - lt_prog_compiler_pic_F77='-fpic'
  31373. - lt_prog_compiler_static_F77='-Bstatic'
  31374. - ;;
  31375. - ccc*)
  31376. - lt_prog_compiler_wl_F77='-Wl,'
  31377. - # All Alpha code is PIC.
  31378. - lt_prog_compiler_static_F77='-non_shared'
  31379. - ;;
  31380. - *)
  31381. - case `$CC -V 2>&1 | sed 5q` in
  31382. - *Sun\ C*)
  31383. - # Sun C 5.9
  31384. - lt_prog_compiler_pic_F77='-KPIC'
  31385. - lt_prog_compiler_static_F77='-Bstatic'
  31386. - lt_prog_compiler_wl_F77='-Wl,'
  31387. - ;;
  31388. - *Sun\ F*)
  31389. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  31390. - lt_prog_compiler_pic_F77='-KPIC'
  31391. - lt_prog_compiler_static_F77='-Bstatic'
  31392. - lt_prog_compiler_wl_F77=''
  31393. - ;;
  31394. - esac
  31395. - ;;
  31396. - esac
  31397. - ;;
  31398. -
  31399. - osf3* | osf4* | osf5*)
  31400. - lt_prog_compiler_wl_F77='-Wl,'
  31401. - # All OSF/1 code is PIC.
  31402. - lt_prog_compiler_static_F77='-non_shared'
  31403. - ;;
  31404. -
  31405. - rdos*)
  31406. - lt_prog_compiler_static_F77='-non_shared'
  31407. - ;;
  31408. -
  31409. - solaris*)
  31410. - lt_prog_compiler_pic_F77='-KPIC'
  31411. - lt_prog_compiler_static_F77='-Bstatic'
  31412. - case $cc_basename in
  31413. - f77* | f90* | f95*)
  31414. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  31415. - *)
  31416. - lt_prog_compiler_wl_F77='-Wl,';;
  31417. - esac
  31418. - ;;
  31419. -
  31420. - sunos4*)
  31421. - lt_prog_compiler_wl_F77='-Qoption ld '
  31422. - lt_prog_compiler_pic_F77='-PIC'
  31423. - lt_prog_compiler_static_F77='-Bstatic'
  31424. - ;;
  31425. -
  31426. - sysv4 | sysv4.2uw2* | sysv4.3*)
  31427. - lt_prog_compiler_wl_F77='-Wl,'
  31428. - lt_prog_compiler_pic_F77='-KPIC'
  31429. - lt_prog_compiler_static_F77='-Bstatic'
  31430. - ;;
  31431. -
  31432. - sysv4*MP*)
  31433. - if test -d /usr/nec ;then
  31434. - lt_prog_compiler_pic_F77='-Kconform_pic'
  31435. - lt_prog_compiler_static_F77='-Bstatic'
  31436. - fi
  31437. - ;;
  31438. -
  31439. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  31440. - lt_prog_compiler_wl_F77='-Wl,'
  31441. - lt_prog_compiler_pic_F77='-KPIC'
  31442. - lt_prog_compiler_static_F77='-Bstatic'
  31443. - ;;
  31444. -
  31445. - unicos*)
  31446. - lt_prog_compiler_wl_F77='-Wl,'
  31447. - lt_prog_compiler_can_build_shared_F77=no
  31448. - ;;
  31449. -
  31450. - uts4*)
  31451. - lt_prog_compiler_pic_F77='-pic'
  31452. - lt_prog_compiler_static_F77='-Bstatic'
  31453. - ;;
  31454. -
  31455. - *)
  31456. - lt_prog_compiler_can_build_shared_F77=no
  31457. - ;;
  31458. - esac
  31459. - fi
  31460. -
  31461. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  31462. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  31463. -
  31464. -#
  31465. -# Check to make sure the PIC flag actually works.
  31466. -#
  31467. -if test -n "$lt_prog_compiler_pic_F77"; then
  31468. -
  31469. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  31470. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  31471. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  31472. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31473. -else
  31474. - lt_prog_compiler_pic_works_F77=no
  31475. - ac_outfile=conftest.$ac_objext
  31476. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31477. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  31478. - # Insert the option either (1) after the last *FLAGS variable, or
  31479. - # (2) before a word containing "conftest.", or (3) at the end.
  31480. - # Note that $ac_compile itself does not contain backslashes and begins
  31481. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31482. - # The option is referenced via a variable to avoid confusing sed.
  31483. - lt_compile=`echo "$ac_compile" | $SED \
  31484. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31485. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31486. - -e 's:$: $lt_compiler_flag:'`
  31487. - (eval echo "\"\$as_me:14439: $lt_compile\"" >&5)
  31488. - (eval "$lt_compile" 2>conftest.err)
  31489. - ac_status=$?
  31490. - cat conftest.err >&5
  31491. - echo "$as_me:14443: \$? = $ac_status" >&5
  31492. - if (exit $ac_status) && test -s "$ac_outfile"; then
  31493. - # The compiler can only warn and ignore the option if not recognized
  31494. - # So say no if there are warnings other than the usual output.
  31495. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31496. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31497. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  31498. - lt_prog_compiler_pic_works_F77=yes
  31499. - fi
  31500. - fi
  31501. - $rm conftest*
  31502. -
  31503. -fi
  31504. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  31505. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  31506. -
  31507. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  31508. - case $lt_prog_compiler_pic_F77 in
  31509. - "" | " "*) ;;
  31510. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  31511. - esac
  31512. -else
  31513. - lt_prog_compiler_pic_F77=
  31514. - lt_prog_compiler_can_build_shared_F77=no
  31515. -fi
  31516. -
  31517. -fi
  31518. -case $host_os in
  31519. - # For platforms which do not support PIC, -DPIC is meaningless:
  31520. - *djgpp*)
  31521. - lt_prog_compiler_pic_F77=
  31522. - ;;
  31523. - *)
  31524. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  31525. - ;;
  31526. -esac
  31527. -
  31528. -#
  31529. -# Check to make sure the static flag actually works.
  31530. -#
  31531. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  31532. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  31533. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  31534. -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  31535. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31536. -else
  31537. - lt_prog_compiler_static_works_F77=no
  31538. - save_LDFLAGS="$LDFLAGS"
  31539. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  31540. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  31541. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  31542. - # The linker can only warn and ignore the option if not recognized
  31543. - # So say no if there are warnings
  31544. - if test -s conftest.err; then
  31545. - # Append any errors to the config.log.
  31546. - cat conftest.err 1>&5
  31547. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  31548. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31549. - if diff conftest.exp conftest.er2 >/dev/null; then
  31550. - lt_prog_compiler_static_works_F77=yes
  31551. - fi
  31552. - else
  31553. - lt_prog_compiler_static_works_F77=yes
  31554. - fi
  31555. - fi
  31556. - $rm conftest*
  31557. - LDFLAGS="$save_LDFLAGS"
  31558. -
  31559. -fi
  31560. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  31561. -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  31562. -
  31563. -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  31564. - :
  31565. -else
  31566. - lt_prog_compiler_static_F77=
  31567. -fi
  31568. -
  31569. -
  31570. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  31571. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  31572. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  31573. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31574. -else
  31575. - lt_cv_prog_compiler_c_o_F77=no
  31576. - $rm -r conftest 2>/dev/null
  31577. - mkdir conftest
  31578. - cd conftest
  31579. - mkdir out
  31580. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31581. -
  31582. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  31583. - # Insert the option either (1) after the last *FLAGS variable, or
  31584. - # (2) before a word containing "conftest.", or (3) at the end.
  31585. - # Note that $ac_compile itself does not contain backslashes and begins
  31586. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31587. - lt_compile=`echo "$ac_compile" | $SED \
  31588. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31589. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31590. - -e 's:$: $lt_compiler_flag:'`
  31591. - (eval echo "\"\$as_me:14543: $lt_compile\"" >&5)
  31592. - (eval "$lt_compile" 2>out/conftest.err)
  31593. - ac_status=$?
  31594. - cat out/conftest.err >&5
  31595. - echo "$as_me:14547: \$? = $ac_status" >&5
  31596. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31597. - then
  31598. - # The compiler can only warn and ignore the option if not recognized
  31599. - # So say no if there are warnings
  31600. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31601. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31602. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31603. - lt_cv_prog_compiler_c_o_F77=yes
  31604. - fi
  31605. - fi
  31606. - chmod u+w . 2>&5
  31607. - $rm conftest*
  31608. - # SGI C++ compiler will create directory out/ii_files/ for
  31609. - # template instantiation
  31610. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  31611. - $rm out/* && rmdir out
  31612. - cd ..
  31613. - rmdir conftest
  31614. - $rm conftest*
  31615. -
  31616. -fi
  31617. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  31618. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  31619. -
  31620. -
  31621. -hard_links="nottested"
  31622. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  31623. - # do not overwrite the value of need_locks provided by the user
  31624. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  31625. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  31626. - hard_links=yes
  31627. - $rm conftest*
  31628. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31629. - touch conftest.a
  31630. - ln conftest.a conftest.b 2>&5 || hard_links=no
  31631. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31632. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  31633. -echo "${ECHO_T}$hard_links" >&6; }
  31634. - if test "$hard_links" = no; then
  31635. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31636. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31637. - need_locks=warn
  31638. - fi
  31639. -else
  31640. - need_locks=no
  31641. -fi
  31642. -
  31643. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31644. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  31645. -
  31646. - runpath_var=
  31647. - allow_undefined_flag_F77=
  31648. - enable_shared_with_static_runtimes_F77=no
  31649. - archive_cmds_F77=
  31650. - archive_expsym_cmds_F77=
  31651. - old_archive_From_new_cmds_F77=
  31652. - old_archive_from_expsyms_cmds_F77=
  31653. - export_dynamic_flag_spec_F77=
  31654. - whole_archive_flag_spec_F77=
  31655. - thread_safe_flag_spec_F77=
  31656. - hardcode_libdir_flag_spec_F77=
  31657. - hardcode_libdir_flag_spec_ld_F77=
  31658. - hardcode_libdir_separator_F77=
  31659. - hardcode_direct_F77=no
  31660. - hardcode_minus_L_F77=no
  31661. - hardcode_shlibpath_var_F77=unsupported
  31662. - link_all_deplibs_F77=unknown
  31663. - hardcode_automatic_F77=no
  31664. - module_cmds_F77=
  31665. - module_expsym_cmds_F77=
  31666. - always_export_symbols_F77=no
  31667. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31668. - # include_expsyms should be a list of space-separated symbols to be *always*
  31669. - # included in the symbol list
  31670. - include_expsyms_F77=
  31671. - # exclude_expsyms can be an extended regexp of symbols to exclude
  31672. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  31673. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  31674. - # as well as any symbol that contains `d'.
  31675. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  31676. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  31677. - # platforms (ab)use it in PIC code, but their linkers get confused if
  31678. - # the symbol is explicitly referenced. Since portable code cannot
  31679. - # rely on this symbol name, it's probably fine to never include it in
  31680. - # preloaded symbol tables.
  31681. - extract_expsyms_cmds=
  31682. - # Just being paranoid about ensuring that cc_basename is set.
  31683. - for cc_temp in $compiler""; do
  31684. - case $cc_temp in
  31685. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31686. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31687. - \-*) ;;
  31688. - *) break;;
  31689. - esac
  31690. -done
  31691. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31692. -
  31693. - case $host_os in
  31694. - cygwin* | mingw* | pw32*)
  31695. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  31696. - # When not using gcc, we currently assume that we are using
  31697. - # Microsoft Visual C++.
  31698. - if test "$GCC" != yes; then
  31699. - with_gnu_ld=no
  31700. - fi
  31701. - ;;
  31702. - interix*)
  31703. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  31704. - with_gnu_ld=yes
  31705. - ;;
  31706. - openbsd*)
  31707. - with_gnu_ld=no
  31708. - ;;
  31709. - esac
  31710. -
  31711. - ld_shlibs_F77=yes
  31712. - if test "$with_gnu_ld" = yes; then
  31713. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31714. - wlarc='${wl}'
  31715. -
  31716. - # Set some defaults for GNU ld with shared library support. These
  31717. - # are reset later if shared libraries are not supported. Putting them
  31718. - # here allows them to be overridden if necessary.
  31719. - runpath_var=LD_RUN_PATH
  31720. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  31721. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  31722. - # ancient GNU ld didn't support --whole-archive et. al.
  31723. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  31724. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31725. - else
  31726. - whole_archive_flag_spec_F77=
  31727. - fi
  31728. - supports_anon_versioning=no
  31729. - case `$LD -v 2>/dev/null` in
  31730. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  31731. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  31732. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  31733. - *\ 2.11.*) ;; # other 2.11 versions
  31734. - *) supports_anon_versioning=yes ;;
  31735. - esac
  31736. -
  31737. - # See if GNU ld supports shared libraries.
  31738. - case $host_os in
  31739. - aix3* | aix4* | aix5*)
  31740. - # On AIX/PPC, the GNU linker is very broken
  31741. - if test "$host_cpu" != ia64; then
  31742. - ld_shlibs_F77=no
  31743. - cat <<EOF 1>&2
  31744. -
  31745. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  31746. -*** to be unable to reliably create shared libraries on AIX.
  31747. -*** Therefore, libtool is disabling shared libraries support. If you
  31748. -*** really care for shared libraries, you may want to modify your PATH
  31749. -*** so that a non-GNU linker is found, and then restart.
  31750. -
  31751. -EOF
  31752. - fi
  31753. - ;;
  31754. -
  31755. - amigaos*)
  31756. - archive_cmds_F77='$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)'
  31757. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31758. - hardcode_minus_L_F77=yes
  31759. -
  31760. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  31761. - # that the semantics of dynamic libraries on AmigaOS, at least up
  31762. - # to version 4, is to share data among multiple programs linked
  31763. - # with the same dynamic library. Since this doesn't match the
  31764. - # behavior of shared libraries on other platforms, we can't use
  31765. - # them.
  31766. - ld_shlibs_F77=no
  31767. - ;;
  31768. -
  31769. - beos*)
  31770. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31771. - allow_undefined_flag_F77=unsupported
  31772. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31773. - # support --undefined. This deserves some investigation. FIXME
  31774. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31775. - else
  31776. - ld_shlibs_F77=no
  31777. - fi
  31778. - ;;
  31779. -
  31780. - cygwin* | mingw* | pw32*)
  31781. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  31782. - # as there is no search path for DLLs.
  31783. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31784. - allow_undefined_flag_F77=unsupported
  31785. - always_export_symbols_F77=no
  31786. - enable_shared_with_static_runtimes_F77=yes
  31787. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  31788. -
  31789. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31790. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31791. - # If the export-symbols file already is a .def file (1st line
  31792. - # is EXPORTS), use it as is; otherwise, prepend...
  31793. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31794. - cp $export_symbols $output_objdir/$soname.def;
  31795. - else
  31796. - echo EXPORTS > $output_objdir/$soname.def;
  31797. - cat $export_symbols >> $output_objdir/$soname.def;
  31798. - fi~
  31799. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31800. - else
  31801. - ld_shlibs_F77=no
  31802. - fi
  31803. - ;;
  31804. -
  31805. - interix[3-9]*)
  31806. - hardcode_direct_F77=no
  31807. - hardcode_shlibpath_var_F77=no
  31808. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31809. - export_dynamic_flag_spec_F77='${wl}-E'
  31810. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31811. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  31812. - # default) and relocated if they conflict, which is a slow very memory
  31813. - # consuming and fragmenting process. To avoid this, we pick a random,
  31814. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31815. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31816. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  31817. - archive_expsym_cmds_F77='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'
  31818. - ;;
  31819. -
  31820. - gnu* | linux* | k*bsd*-gnu)
  31821. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31822. - tmp_addflag=
  31823. - case $cc_basename,$host_cpu in
  31824. - pgcc*) # Portland Group C compiler
  31825. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31826. - tmp_addflag=' $pic_flag'
  31827. - ;;
  31828. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  31829. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31830. - tmp_addflag=' $pic_flag -Mnomain' ;;
  31831. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  31832. - tmp_addflag=' -i_dynamic' ;;
  31833. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  31834. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  31835. - ifc* | ifort*) # Intel Fortran compiler
  31836. - tmp_addflag=' -nofor_main' ;;
  31837. - esac
  31838. - case `$CC -V 2>&1 | sed 5q` in
  31839. - *Sun\ C*) # Sun C 5.9
  31840. - whole_archive_flag_spec_F77='${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'
  31841. - tmp_sharedflag='-G' ;;
  31842. - *Sun\ F*) # Sun Fortran 8.3
  31843. - tmp_sharedflag='-G' ;;
  31844. - *)
  31845. - tmp_sharedflag='-shared' ;;
  31846. - esac
  31847. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31848. -
  31849. - if test $supports_anon_versioning = yes; then
  31850. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  31851. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  31852. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  31853. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  31854. - fi
  31855. - link_all_deplibs_F77=no
  31856. - else
  31857. - ld_shlibs_F77=no
  31858. - fi
  31859. - ;;
  31860. -
  31861. - netbsd* | netbsdelf*-gnu)
  31862. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31863. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  31864. - wlarc=
  31865. - else
  31866. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31867. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31868. - fi
  31869. - ;;
  31870. -
  31871. - solaris*)
  31872. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  31873. - ld_shlibs_F77=no
  31874. - cat <<EOF 1>&2
  31875. -
  31876. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  31877. -*** create shared libraries on Solaris systems. Therefore, libtool
  31878. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31879. -*** binutils to release 2.9.1 or newer. Another option is to modify
  31880. -*** your PATH or compiler configuration so that the native linker is
  31881. -*** used, and then restart.
  31882. -
  31883. -EOF
  31884. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31885. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31886. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31887. - else
  31888. - ld_shlibs_F77=no
  31889. - fi
  31890. - ;;
  31891. -
  31892. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  31893. - case `$LD -v 2>&1` in
  31894. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  31895. - ld_shlibs_F77=no
  31896. - cat <<_LT_EOF 1>&2
  31897. -
  31898. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  31899. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  31900. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31901. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  31902. -*** your PATH or compiler configuration so that the native linker is
  31903. -*** used, and then restart.
  31904. -
  31905. -_LT_EOF
  31906. - ;;
  31907. - *)
  31908. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31909. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  31910. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  31911. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  31912. - else
  31913. - ld_shlibs_F77=no
  31914. - fi
  31915. - ;;
  31916. - esac
  31917. - ;;
  31918. -
  31919. - sunos4*)
  31920. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31921. - wlarc=
  31922. - hardcode_direct_F77=yes
  31923. - hardcode_shlibpath_var_F77=no
  31924. - ;;
  31925. -
  31926. - *)
  31927. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31928. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31929. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31930. - else
  31931. - ld_shlibs_F77=no
  31932. - fi
  31933. - ;;
  31934. - esac
  31935. -
  31936. - if test "$ld_shlibs_F77" = no; then
  31937. - runpath_var=
  31938. - hardcode_libdir_flag_spec_F77=
  31939. - export_dynamic_flag_spec_F77=
  31940. - whole_archive_flag_spec_F77=
  31941. - fi
  31942. - else
  31943. - # PORTME fill in a description of your system's linker (not GNU ld)
  31944. - case $host_os in
  31945. - aix3*)
  31946. - allow_undefined_flag_F77=unsupported
  31947. - always_export_symbols_F77=yes
  31948. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  31949. - # Note: this linker hardcodes the directories in LIBPATH if there
  31950. - # are no directories specified by -L.
  31951. - hardcode_minus_L_F77=yes
  31952. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  31953. - # Neither direct hardcoding nor static linking is supported with a
  31954. - # broken collect2.
  31955. - hardcode_direct_F77=unsupported
  31956. - fi
  31957. - ;;
  31958. -
  31959. - aix4* | aix5*)
  31960. - if test "$host_cpu" = ia64; then
  31961. - # On IA64, the linker does run time linking by default, so we don't
  31962. - # have to do anything special.
  31963. - aix_use_runtimelinking=no
  31964. - exp_sym_flag='-Bexport'
  31965. - no_entry_flag=""
  31966. - else
  31967. - # If we're using GNU nm, then we don't want the "-C" option.
  31968. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  31969. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  31970. - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  31971. - else
  31972. - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  31973. - fi
  31974. - aix_use_runtimelinking=no
  31975. -
  31976. - # Test if we are trying to use run time linking or normal
  31977. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31978. - # need to do runtime linking.
  31979. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  31980. - for ld_flag in $LDFLAGS; do
  31981. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  31982. - aix_use_runtimelinking=yes
  31983. - break
  31984. - fi
  31985. - done
  31986. - ;;
  31987. - esac
  31988. -
  31989. - exp_sym_flag='-bexport'
  31990. - no_entry_flag='-bnoentry'
  31991. - fi
  31992. -
  31993. - # When large executables or shared objects are built, AIX ld can
  31994. - # have problems creating the table of contents. If linking a library
  31995. - # or program results in "error TOC overflow" add -mminimal-toc to
  31996. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31997. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31998. -
  31999. - archive_cmds_F77=''
  32000. - hardcode_direct_F77=yes
  32001. - hardcode_libdir_separator_F77=':'
  32002. - link_all_deplibs_F77=yes
  32003. -
  32004. - if test "$GCC" = yes; then
  32005. - case $host_os in aix4.[012]|aix4.[012].*)
  32006. - # We only want to do this on AIX 4.2 and lower, the check
  32007. - # below for broken collect2 doesn't work under 4.3+
  32008. - collect2name=`${CC} -print-prog-name=collect2`
  32009. - if test -f "$collect2name" && \
  32010. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  32011. - then
  32012. - # We have reworked collect2
  32013. - :
  32014. - else
  32015. - # We have old collect2
  32016. - hardcode_direct_F77=unsupported
  32017. - # It fails to find uninstalled libraries when the uninstalled
  32018. - # path is not listed in the libpath. Setting hardcode_minus_L
  32019. - # to unsupported forces relinking
  32020. - hardcode_minus_L_F77=yes
  32021. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32022. - hardcode_libdir_separator_F77=
  32023. - fi
  32024. - ;;
  32025. - esac
  32026. - shared_flag='-shared'
  32027. - if test "$aix_use_runtimelinking" = yes; then
  32028. - shared_flag="$shared_flag "'${wl}-G'
  32029. - fi
  32030. - else
  32031. - # not using gcc
  32032. - if test "$host_cpu" = ia64; then
  32033. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  32034. - # chokes on -Wl,-G. The following line is correct:
  32035. - shared_flag='-G'
  32036. - else
  32037. - if test "$aix_use_runtimelinking" = yes; then
  32038. - shared_flag='${wl}-G'
  32039. - else
  32040. - shared_flag='${wl}-bM:SRE'
  32041. - fi
  32042. - fi
  32043. - fi
  32044. -
  32045. - # It seems that -bexpall does not export symbols beginning with
  32046. - # underscore (_), so it is better to generate a list of symbols to export.
  32047. - always_export_symbols_F77=yes
  32048. - if test "$aix_use_runtimelinking" = yes; then
  32049. - # Warning - without using the other runtime loading flags (-brtl),
  32050. - # -berok will link without error, but may produce a broken library.
  32051. - allow_undefined_flag_F77='-berok'
  32052. - # Determine the default libpath from the value encoded in an empty executable.
  32053. - cat >conftest.$ac_ext <<_ACEOF
  32054. - program main
  32055. -
  32056. - end
  32057. -_ACEOF
  32058. -rm -f conftest.$ac_objext conftest$ac_exeext
  32059. -if { (ac_try="$ac_link"
  32060. -case "(($ac_try" in
  32061. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32062. - *) ac_try_echo=$ac_try;;
  32063. -esac
  32064. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32065. - (eval "$ac_link") 2>conftest.er1
  32066. - ac_status=$?
  32067. - grep -v '^ *+' conftest.er1 >conftest.err
  32068. - rm -f conftest.er1
  32069. - cat conftest.err >&5
  32070. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32071. - (exit $ac_status); } && {
  32072. - test -z "$ac_f77_werror_flag" ||
  32073. - test ! -s conftest.err
  32074. - } && test -s conftest$ac_exeext &&
  32075. - $as_test_x conftest$ac_exeext; then
  32076. -
  32077. -lt_aix_libpath_sed='
  32078. - /Import File Strings/,/^$/ {
  32079. - /^0/ {
  32080. - s/^0 *\(.*\)$/\1/
  32081. - p
  32082. - }
  32083. - }'
  32084. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32085. -# Check for a 64-bit object if we didn't find anything.
  32086. -if test -z "$aix_libpath"; then
  32087. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32088. -fi
  32089. -else
  32090. - echo "$as_me: failed program was:" >&5
  32091. -sed 's/^/| /' conftest.$ac_ext >&5
  32092. -
  32093. -
  32094. -fi
  32095. -
  32096. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32097. - conftest$ac_exeext conftest.$ac_ext
  32098. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32099. -
  32100. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  32101. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  32102. - else
  32103. - if test "$host_cpu" = ia64; then
  32104. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  32105. - allow_undefined_flag_F77="-z nodefs"
  32106. - archive_expsym_cmds_F77="\$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"
  32107. - else
  32108. - # Determine the default libpath from the value encoded in an empty executable.
  32109. - cat >conftest.$ac_ext <<_ACEOF
  32110. - program main
  32111. -
  32112. - end
  32113. -_ACEOF
  32114. -rm -f conftest.$ac_objext conftest$ac_exeext
  32115. -if { (ac_try="$ac_link"
  32116. -case "(($ac_try" in
  32117. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32118. - *) ac_try_echo=$ac_try;;
  32119. -esac
  32120. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32121. - (eval "$ac_link") 2>conftest.er1
  32122. - ac_status=$?
  32123. - grep -v '^ *+' conftest.er1 >conftest.err
  32124. - rm -f conftest.er1
  32125. - cat conftest.err >&5
  32126. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32127. - (exit $ac_status); } && {
  32128. - test -z "$ac_f77_werror_flag" ||
  32129. - test ! -s conftest.err
  32130. - } && test -s conftest$ac_exeext &&
  32131. - $as_test_x conftest$ac_exeext; then
  32132. -
  32133. -lt_aix_libpath_sed='
  32134. - /Import File Strings/,/^$/ {
  32135. - /^0/ {
  32136. - s/^0 *\(.*\)$/\1/
  32137. - p
  32138. - }
  32139. - }'
  32140. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32141. -# Check for a 64-bit object if we didn't find anything.
  32142. -if test -z "$aix_libpath"; then
  32143. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32144. -fi
  32145. -else
  32146. - echo "$as_me: failed program was:" >&5
  32147. -sed 's/^/| /' conftest.$ac_ext >&5
  32148. -
  32149. -
  32150. -fi
  32151. -
  32152. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32153. - conftest$ac_exeext conftest.$ac_ext
  32154. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32155. -
  32156. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  32157. - # Warning - without using the other run time loading flags,
  32158. - # -berok will link without error, but may produce a broken library.
  32159. - no_undefined_flag_F77=' ${wl}-bernotok'
  32160. - allow_undefined_flag_F77=' ${wl}-berok'
  32161. - # Exported symbols can be pulled into shared objects from archives
  32162. - whole_archive_flag_spec_F77='$convenience'
  32163. - archive_cmds_need_lc_F77=yes
  32164. - # This is similar to how AIX traditionally builds its shared libraries.
  32165. - archive_expsym_cmds_F77="\$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'
  32166. - fi
  32167. - fi
  32168. - ;;
  32169. -
  32170. - amigaos*)
  32171. - archive_cmds_F77='$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)'
  32172. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32173. - hardcode_minus_L_F77=yes
  32174. - # see comment about different semantics on the GNU ld section
  32175. - ld_shlibs_F77=no
  32176. - ;;
  32177. -
  32178. - bsdi[45]*)
  32179. - export_dynamic_flag_spec_F77=-rdynamic
  32180. - ;;
  32181. -
  32182. - cygwin* | mingw* | pw32*)
  32183. - # When not using gcc, we currently assume that we are using
  32184. - # Microsoft Visual C++.
  32185. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  32186. - # no search path for DLLs.
  32187. - hardcode_libdir_flag_spec_F77=' '
  32188. - allow_undefined_flag_F77=unsupported
  32189. - # Tell ltmain to make .lib files, not .a files.
  32190. - libext=lib
  32191. - # Tell ltmain to make .dll files, not .so files.
  32192. - shrext_cmds=".dll"
  32193. - # FIXME: Setting linknames here is a bad hack.
  32194. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  32195. - # The linker will automatically build a .lib file if we build a DLL.
  32196. - old_archive_From_new_cmds_F77='true'
  32197. - # FIXME: Should let the user specify the lib program.
  32198. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  32199. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  32200. - enable_shared_with_static_runtimes_F77=yes
  32201. - ;;
  32202. -
  32203. - darwin* | rhapsody*)
  32204. - case $host_os in
  32205. - rhapsody* | darwin1.[012])
  32206. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  32207. - ;;
  32208. - *) # Darwin 1.3 on
  32209. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  32210. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32211. - else
  32212. - case ${MACOSX_DEPLOYMENT_TARGET} in
  32213. - 10.[012])
  32214. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32215. - ;;
  32216. - 10.*)
  32217. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  32218. - ;;
  32219. - esac
  32220. - fi
  32221. - ;;
  32222. - esac
  32223. - archive_cmds_need_lc_F77=no
  32224. - hardcode_direct_F77=no
  32225. - hardcode_automatic_F77=yes
  32226. - hardcode_shlibpath_var_F77=unsupported
  32227. - whole_archive_flag_spec_F77=''
  32228. - link_all_deplibs_F77=yes
  32229. - if test "$GCC" = yes ; then
  32230. - output_verbose_link_cmd='echo'
  32231. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  32232. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32233. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32234. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32235. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32236. - else
  32237. - case $cc_basename in
  32238. - xlc*)
  32239. - output_verbose_link_cmd='echo'
  32240. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  32241. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32242. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32243. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32244. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32245. - ;;
  32246. - *)
  32247. - ld_shlibs_F77=no
  32248. - ;;
  32249. - esac
  32250. - fi
  32251. - ;;
  32252. -
  32253. - dgux*)
  32254. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32255. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32256. - hardcode_shlibpath_var_F77=no
  32257. - ;;
  32258. -
  32259. - freebsd1*)
  32260. - ld_shlibs_F77=no
  32261. - ;;
  32262. -
  32263. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  32264. - # support. Future versions do this automatically, but an explicit c++rt0.o
  32265. - # does not break anything, and helps significantly (at the cost of a little
  32266. - # extra space).
  32267. - freebsd2.2*)
  32268. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  32269. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32270. - hardcode_direct_F77=yes
  32271. - hardcode_shlibpath_var_F77=no
  32272. - ;;
  32273. -
  32274. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  32275. - freebsd2*)
  32276. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32277. - hardcode_direct_F77=yes
  32278. - hardcode_minus_L_F77=yes
  32279. - hardcode_shlibpath_var_F77=no
  32280. - ;;
  32281. -
  32282. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  32283. - freebsd* | dragonfly*)
  32284. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  32285. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32286. - hardcode_direct_F77=yes
  32287. - hardcode_shlibpath_var_F77=no
  32288. - ;;
  32289. -
  32290. - hpux9*)
  32291. - if test "$GCC" = yes; then
  32292. - archive_cmds_F77='$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'
  32293. - else
  32294. - archive_cmds_F77='$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'
  32295. - fi
  32296. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  32297. - hardcode_libdir_separator_F77=:
  32298. - hardcode_direct_F77=yes
  32299. -
  32300. - # hardcode_minus_L: Not really in the search PATH,
  32301. - # but as the default location of the library.
  32302. - hardcode_minus_L_F77=yes
  32303. - export_dynamic_flag_spec_F77='${wl}-E'
  32304. - ;;
  32305. -
  32306. - hpux10*)
  32307. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32308. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32309. - else
  32310. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  32311. - fi
  32312. - if test "$with_gnu_ld" = no; then
  32313. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  32314. - hardcode_libdir_separator_F77=:
  32315. -
  32316. - hardcode_direct_F77=yes
  32317. - export_dynamic_flag_spec_F77='${wl}-E'
  32318. -
  32319. - # hardcode_minus_L: Not really in the search PATH,
  32320. - # but as the default location of the library.
  32321. - hardcode_minus_L_F77=yes
  32322. - fi
  32323. - ;;
  32324. -
  32325. - hpux11*)
  32326. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32327. - case $host_cpu in
  32328. - hppa*64*)
  32329. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32330. - ;;
  32331. - ia64*)
  32332. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32333. - ;;
  32334. - *)
  32335. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32336. - ;;
  32337. - esac
  32338. - else
  32339. - case $host_cpu in
  32340. - hppa*64*)
  32341. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32342. - ;;
  32343. - ia64*)
  32344. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32345. - ;;
  32346. - *)
  32347. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32348. - ;;
  32349. - esac
  32350. - fi
  32351. - if test "$with_gnu_ld" = no; then
  32352. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  32353. - hardcode_libdir_separator_F77=:
  32354. -
  32355. - case $host_cpu in
  32356. - hppa*64*|ia64*)
  32357. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  32358. - hardcode_direct_F77=no
  32359. - hardcode_shlibpath_var_F77=no
  32360. - ;;
  32361. - *)
  32362. - hardcode_direct_F77=yes
  32363. - export_dynamic_flag_spec_F77='${wl}-E'
  32364. -
  32365. - # hardcode_minus_L: Not really in the search PATH,
  32366. - # but as the default location of the library.
  32367. - hardcode_minus_L_F77=yes
  32368. - ;;
  32369. - esac
  32370. - fi
  32371. - ;;
  32372. -
  32373. - irix5* | irix6* | nonstopux*)
  32374. - if test "$GCC" = yes; then
  32375. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  32376. - else
  32377. - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  32378. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  32379. - fi
  32380. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32381. - hardcode_libdir_separator_F77=:
  32382. - link_all_deplibs_F77=yes
  32383. - ;;
  32384. -
  32385. - netbsd* | netbsdelf*-gnu)
  32386. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32387. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  32388. - else
  32389. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  32390. - fi
  32391. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32392. - hardcode_direct_F77=yes
  32393. - hardcode_shlibpath_var_F77=no
  32394. - ;;
  32395. -
  32396. - newsos6)
  32397. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32398. - hardcode_direct_F77=yes
  32399. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32400. - hardcode_libdir_separator_F77=:
  32401. - hardcode_shlibpath_var_F77=no
  32402. - ;;
  32403. -
  32404. - openbsd*)
  32405. - if test -f /usr/libexec/ld.so; then
  32406. - hardcode_direct_F77=yes
  32407. - hardcode_shlibpath_var_F77=no
  32408. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32409. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32410. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  32411. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  32412. - export_dynamic_flag_spec_F77='${wl}-E'
  32413. - else
  32414. - case $host_os in
  32415. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  32416. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32417. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32418. - ;;
  32419. - *)
  32420. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32421. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  32422. - ;;
  32423. - esac
  32424. - fi
  32425. - else
  32426. - ld_shlibs_F77=no
  32427. - fi
  32428. - ;;
  32429. -
  32430. - os2*)
  32431. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32432. - hardcode_minus_L_F77=yes
  32433. - allow_undefined_flag_F77=unsupported
  32434. - archive_cmds_F77='$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'
  32435. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  32436. - ;;
  32437. -
  32438. - osf3*)
  32439. - if test "$GCC" = yes; then
  32440. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  32441. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  32442. - else
  32443. - allow_undefined_flag_F77=' -expect_unresolved \*'
  32444. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  32445. - fi
  32446. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32447. - hardcode_libdir_separator_F77=:
  32448. - ;;
  32449. -
  32450. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  32451. - if test "$GCC" = yes; then
  32452. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  32453. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  32454. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32455. - else
  32456. - allow_undefined_flag_F77=' -expect_unresolved \*'
  32457. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  32458. - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  32459. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  32460. -
  32461. - # Both c and cxx compiler support -rpath directly
  32462. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  32463. - fi
  32464. - hardcode_libdir_separator_F77=:
  32465. - ;;
  32466. -
  32467. - solaris*)
  32468. - no_undefined_flag_F77=' -z text'
  32469. - if test "$GCC" = yes; then
  32470. - wlarc='${wl}'
  32471. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32472. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32473. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  32474. - else
  32475. - wlarc=''
  32476. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32477. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32478. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  32479. - fi
  32480. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32481. - hardcode_shlibpath_var_F77=no
  32482. - case $host_os in
  32483. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  32484. - *)
  32485. - # The compiler driver will combine and reorder linker options,
  32486. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  32487. - # but is careful enough not to reorder.
  32488. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32489. - if test "$GCC" = yes; then
  32490. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  32491. - else
  32492. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  32493. - fi
  32494. - ;;
  32495. - esac
  32496. - link_all_deplibs_F77=yes
  32497. - ;;
  32498. -
  32499. - sunos4*)
  32500. - if test "x$host_vendor" = xsequent; then
  32501. - # Use $CC to link under sequent, because it throws in some extra .o
  32502. - # files that make .init and .fini sections work.
  32503. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  32504. - else
  32505. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  32506. - fi
  32507. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32508. - hardcode_direct_F77=yes
  32509. - hardcode_minus_L_F77=yes
  32510. - hardcode_shlibpath_var_F77=no
  32511. - ;;
  32512. -
  32513. - sysv4)
  32514. - case $host_vendor in
  32515. - sni)
  32516. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32517. - hardcode_direct_F77=yes # is this really true???
  32518. - ;;
  32519. - siemens)
  32520. - ## LD is ld it makes a PLAMLIB
  32521. - ## CC just makes a GrossModule.
  32522. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  32523. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  32524. - hardcode_direct_F77=no
  32525. - ;;
  32526. - motorola)
  32527. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32528. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  32529. - ;;
  32530. - esac
  32531. - runpath_var='LD_RUN_PATH'
  32532. - hardcode_shlibpath_var_F77=no
  32533. - ;;
  32534. -
  32535. - sysv4.3*)
  32536. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32537. - hardcode_shlibpath_var_F77=no
  32538. - export_dynamic_flag_spec_F77='-Bexport'
  32539. - ;;
  32540. -
  32541. - sysv4*MP*)
  32542. - if test -d /usr/nec; then
  32543. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32544. - hardcode_shlibpath_var_F77=no
  32545. - runpath_var=LD_RUN_PATH
  32546. - hardcode_runpath_var=yes
  32547. - ld_shlibs_F77=yes
  32548. - fi
  32549. - ;;
  32550. -
  32551. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  32552. - no_undefined_flag_F77='${wl}-z,text'
  32553. - archive_cmds_need_lc_F77=no
  32554. - hardcode_shlibpath_var_F77=no
  32555. - runpath_var='LD_RUN_PATH'
  32556. -
  32557. - if test "$GCC" = yes; then
  32558. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32559. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32560. - else
  32561. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32562. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32563. - fi
  32564. - ;;
  32565. -
  32566. - sysv5* | sco3.2v5* | sco5v6*)
  32567. - # Note: We can NOT use -z defs as we might desire, because we do not
  32568. - # link with -lc, and that would cause any symbols used from libc to
  32569. - # always be unresolved, which means just about no library would
  32570. - # ever link correctly. If we're not using GNU ld we use -z text
  32571. - # though, which does catch some bad symbols but isn't as heavy-handed
  32572. - # as -z defs.
  32573. - no_undefined_flag_F77='${wl}-z,text'
  32574. - allow_undefined_flag_F77='${wl}-z,nodefs'
  32575. - archive_cmds_need_lc_F77=no
  32576. - hardcode_shlibpath_var_F77=no
  32577. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  32578. - hardcode_libdir_separator_F77=':'
  32579. - link_all_deplibs_F77=yes
  32580. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  32581. - runpath_var='LD_RUN_PATH'
  32582. -
  32583. - if test "$GCC" = yes; then
  32584. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32585. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32586. - else
  32587. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32588. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32589. - fi
  32590. - ;;
  32591. -
  32592. - uts4*)
  32593. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32594. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32595. - hardcode_shlibpath_var_F77=no
  32596. - ;;
  32597. -
  32598. - *)
  32599. - ld_shlibs_F77=no
  32600. - ;;
  32601. - esac
  32602. - fi
  32603. -
  32604. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  32605. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  32606. -test "$ld_shlibs_F77" = no && can_build_shared=no
  32607. -
  32608. -#
  32609. -# Do we need to explicitly link libc?
  32610. -#
  32611. -case "x$archive_cmds_need_lc_F77" in
  32612. -x|xyes)
  32613. - # Assume -lc should be added
  32614. - archive_cmds_need_lc_F77=yes
  32615. -
  32616. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  32617. - case $archive_cmds_F77 in
  32618. - *'~'*)
  32619. - # FIXME: we may have to deal with multi-command sequences.
  32620. - ;;
  32621. - '$CC '*)
  32622. - # Test whether the compiler implicitly links with -lc since on some
  32623. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32624. - # to ld, don't add -lc before -lgcc.
  32625. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32626. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  32627. - $rm conftest*
  32628. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32629. -
  32630. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32631. - (eval $ac_compile) 2>&5
  32632. - ac_status=$?
  32633. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32634. - (exit $ac_status); } 2>conftest.err; then
  32635. - soname=conftest
  32636. - lib=conftest
  32637. - libobjs=conftest.$ac_objext
  32638. - deplibs=
  32639. - wl=$lt_prog_compiler_wl_F77
  32640. - pic_flag=$lt_prog_compiler_pic_F77
  32641. - compiler_flags=-v
  32642. - linker_flags=-v
  32643. - verstring=
  32644. - output_objdir=.
  32645. - libname=conftest
  32646. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  32647. - allow_undefined_flag_F77=
  32648. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32649. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32650. - ac_status=$?
  32651. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32652. - (exit $ac_status); }
  32653. - then
  32654. - archive_cmds_need_lc_F77=no
  32655. - else
  32656. - archive_cmds_need_lc_F77=yes
  32657. - fi
  32658. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  32659. - else
  32660. - cat conftest.err 1>&5
  32661. - fi
  32662. - $rm conftest*
  32663. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  32664. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  32665. - ;;
  32666. - esac
  32667. - fi
  32668. - ;;
  32669. -esac
  32670. -
  32671. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  32672. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  32673. -library_names_spec=
  32674. -libname_spec='lib$name'
  32675. -soname_spec=
  32676. -shrext_cmds=".so"
  32677. -postinstall_cmds=
  32678. -postuninstall_cmds=
  32679. -finish_cmds=
  32680. -finish_eval=
  32681. -shlibpath_var=
  32682. -shlibpath_overrides_runpath=unknown
  32683. -version_type=none
  32684. -dynamic_linker="$host_os ld.so"
  32685. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  32686. -
  32687. -need_lib_prefix=unknown
  32688. -hardcode_into_libs=no
  32689. -
  32690. -# when you set need_version to no, make sure it does not cause -set_version
  32691. -# flags to be left without arguments
  32692. -need_version=unknown
  32693. -
  32694. -case $host_os in
  32695. -aix3*)
  32696. - version_type=linux
  32697. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  32698. - shlibpath_var=LIBPATH
  32699. -
  32700. - # AIX 3 has no versioning support, so we append a major version to the name.
  32701. - soname_spec='${libname}${release}${shared_ext}$major'
  32702. - ;;
  32703. -
  32704. -aix4* | aix5*)
  32705. - version_type=linux
  32706. - need_lib_prefix=no
  32707. - need_version=no
  32708. - hardcode_into_libs=yes
  32709. - if test "$host_cpu" = ia64; then
  32710. - # AIX 5 supports IA64
  32711. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  32712. - shlibpath_var=LD_LIBRARY_PATH
  32713. - else
  32714. - # With GCC up to 2.95.x, collect2 would create an import file
  32715. - # for dependence libraries. The import file would start with
  32716. - # the line `#! .'. This would cause the generated library to
  32717. - # depend on `.', always an invalid library. This was fixed in
  32718. - # development snapshots of GCC prior to 3.0.
  32719. - case $host_os in
  32720. - aix4 | aix4.[01] | aix4.[01].*)
  32721. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  32722. - echo ' yes '
  32723. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  32724. - :
  32725. - else
  32726. - can_build_shared=no
  32727. - fi
  32728. - ;;
  32729. - esac
  32730. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  32731. - # soname into executable. Probably we can add versioning support to
  32732. - # collect2, so additional links can be useful in future.
  32733. - if test "$aix_use_runtimelinking" = yes; then
  32734. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  32735. - # instead of lib<name>.a to let people know that these are not
  32736. - # typical AIX shared libraries.
  32737. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32738. - else
  32739. - # We preserve .a as extension for shared libraries through AIX4.2
  32740. - # and later when we are not doing run time linking.
  32741. - library_names_spec='${libname}${release}.a $libname.a'
  32742. - soname_spec='${libname}${release}${shared_ext}$major'
  32743. - fi
  32744. - shlibpath_var=LIBPATH
  32745. - fi
  32746. - ;;
  32747. -
  32748. -amigaos*)
  32749. - library_names_spec='$libname.ixlibrary $libname.a'
  32750. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  32751. - 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'
  32752. - ;;
  32753. -
  32754. -beos*)
  32755. - library_names_spec='${libname}${shared_ext}'
  32756. - dynamic_linker="$host_os ld.so"
  32757. - shlibpath_var=LIBRARY_PATH
  32758. - ;;
  32759. -
  32760. -bsdi[45]*)
  32761. - version_type=linux
  32762. - need_version=no
  32763. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32764. - soname_spec='${libname}${release}${shared_ext}$major'
  32765. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  32766. - shlibpath_var=LD_LIBRARY_PATH
  32767. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  32768. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  32769. - # the default ld.so.conf also contains /usr/contrib/lib and
  32770. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  32771. - # libtool to hard-code these into programs
  32772. - ;;
  32773. -
  32774. -cygwin* | mingw* | pw32*)
  32775. - version_type=windows
  32776. - shrext_cmds=".dll"
  32777. - need_version=no
  32778. - need_lib_prefix=no
  32779. -
  32780. - case $GCC,$host_os in
  32781. - yes,cygwin* | yes,mingw* | yes,pw32*)
  32782. - library_names_spec='$libname.dll.a'
  32783. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  32784. - postinstall_cmds='base_file=`basename \${file}`~
  32785. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  32786. - dldir=$destdir/`dirname \$dlpath`~
  32787. - test -d \$dldir || mkdir -p \$dldir~
  32788. - $install_prog $dir/$dlname \$dldir/$dlname~
  32789. - chmod a+x \$dldir/$dlname'
  32790. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  32791. - dlpath=$dir/\$dldll~
  32792. - $rm \$dlpath'
  32793. - shlibpath_overrides_runpath=yes
  32794. -
  32795. - case $host_os in
  32796. - cygwin*)
  32797. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  32798. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32799. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  32800. - ;;
  32801. - mingw*)
  32802. - # MinGW DLLs use traditional 'lib' prefix
  32803. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32804. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32805. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  32806. - # It is most probably a Windows format PATH printed by
  32807. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  32808. - # path with ; separators, and with drive letters. We can handle the
  32809. - # drive letters (cygwin fileutils understands them), so leave them,
  32810. - # especially as we might pass files found there to a mingw objdump,
  32811. - # which wouldn't understand a cygwinified path. Ahh.
  32812. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32813. - else
  32814. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32815. - fi
  32816. - ;;
  32817. - pw32*)
  32818. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  32819. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32820. - ;;
  32821. - esac
  32822. - ;;
  32823. -
  32824. - *)
  32825. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  32826. - ;;
  32827. - esac
  32828. - dynamic_linker='Win32 ld.exe'
  32829. - # FIXME: first we should search . and the directory the executable is in
  32830. - shlibpath_var=PATH
  32831. - ;;
  32832. -
  32833. -darwin* | rhapsody*)
  32834. - dynamic_linker="$host_os dyld"
  32835. - version_type=darwin
  32836. - need_lib_prefix=no
  32837. - need_version=no
  32838. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32839. - soname_spec='${libname}${release}${major}$shared_ext'
  32840. - shlibpath_overrides_runpath=yes
  32841. - shlibpath_var=DYLD_LIBRARY_PATH
  32842. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  32843. -
  32844. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  32845. - ;;
  32846. -
  32847. -dgux*)
  32848. - version_type=linux
  32849. - need_lib_prefix=no
  32850. - need_version=no
  32851. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  32852. - soname_spec='${libname}${release}${shared_ext}$major'
  32853. - shlibpath_var=LD_LIBRARY_PATH
  32854. - ;;
  32855. -
  32856. -freebsd1*)
  32857. - dynamic_linker=no
  32858. - ;;
  32859. -
  32860. -freebsd* | dragonfly*)
  32861. - # DragonFly does not have aout. When/if they implement a new
  32862. - # versioning mechanism, adjust this.
  32863. - if test -x /usr/bin/objformat; then
  32864. - objformat=`/usr/bin/objformat`
  32865. - else
  32866. - case $host_os in
  32867. - freebsd[123]*) objformat=aout ;;
  32868. - *) objformat=elf ;;
  32869. - esac
  32870. - fi
  32871. - version_type=freebsd-$objformat
  32872. - case $version_type in
  32873. - freebsd-elf*)
  32874. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32875. - need_version=no
  32876. - need_lib_prefix=no
  32877. - ;;
  32878. - freebsd-*)
  32879. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  32880. - need_version=yes
  32881. - ;;
  32882. - esac
  32883. - shlibpath_var=LD_LIBRARY_PATH
  32884. - case $host_os in
  32885. - freebsd2*)
  32886. - shlibpath_overrides_runpath=yes
  32887. - ;;
  32888. - freebsd3.[01]* | freebsdelf3.[01]*)
  32889. - shlibpath_overrides_runpath=yes
  32890. - hardcode_into_libs=yes
  32891. - ;;
  32892. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  32893. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  32894. - shlibpath_overrides_runpath=no
  32895. - hardcode_into_libs=yes
  32896. - ;;
  32897. - *) # from 4.6 on, and DragonFly
  32898. - shlibpath_overrides_runpath=yes
  32899. - hardcode_into_libs=yes
  32900. - ;;
  32901. - esac
  32902. - ;;
  32903. -
  32904. -gnu*)
  32905. - version_type=linux
  32906. - need_lib_prefix=no
  32907. - need_version=no
  32908. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  32909. - soname_spec='${libname}${release}${shared_ext}$major'
  32910. - shlibpath_var=LD_LIBRARY_PATH
  32911. - hardcode_into_libs=yes
  32912. - ;;
  32913. -
  32914. -hpux9* | hpux10* | hpux11*)
  32915. - # Give a soname corresponding to the major version so that dld.sl refuses to
  32916. - # link against other versions.
  32917. - version_type=sunos
  32918. - need_lib_prefix=no
  32919. - need_version=no
  32920. - case $host_cpu in
  32921. - ia64*)
  32922. - shrext_cmds='.so'
  32923. - hardcode_into_libs=yes
  32924. - dynamic_linker="$host_os dld.so"
  32925. - shlibpath_var=LD_LIBRARY_PATH
  32926. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32927. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32928. - soname_spec='${libname}${release}${shared_ext}$major'
  32929. - if test "X$HPUX_IA64_MODE" = X32; then
  32930. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  32931. - else
  32932. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  32933. - fi
  32934. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32935. - ;;
  32936. - hppa*64*)
  32937. - shrext_cmds='.sl'
  32938. - hardcode_into_libs=yes
  32939. - dynamic_linker="$host_os dld.sl"
  32940. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32941. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32942. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32943. - soname_spec='${libname}${release}${shared_ext}$major'
  32944. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32945. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32946. - ;;
  32947. - *)
  32948. - shrext_cmds='.sl'
  32949. - dynamic_linker="$host_os dld.sl"
  32950. - shlibpath_var=SHLIB_PATH
  32951. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  32952. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32953. - soname_spec='${libname}${release}${shared_ext}$major'
  32954. - ;;
  32955. - esac
  32956. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  32957. - postinstall_cmds='chmod 555 $lib'
  32958. - ;;
  32959. -
  32960. -interix[3-9]*)
  32961. - version_type=linux
  32962. - need_lib_prefix=no
  32963. - need_version=no
  32964. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32965. - soname_spec='${libname}${release}${shared_ext}$major'
  32966. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  32967. - shlibpath_var=LD_LIBRARY_PATH
  32968. - shlibpath_overrides_runpath=no
  32969. - hardcode_into_libs=yes
  32970. - ;;
  32971. -
  32972. -irix5* | irix6* | nonstopux*)
  32973. - case $host_os in
  32974. - nonstopux*) version_type=nonstopux ;;
  32975. - *)
  32976. - if test "$lt_cv_prog_gnu_ld" = yes; then
  32977. - version_type=linux
  32978. - else
  32979. - version_type=irix
  32980. - fi ;;
  32981. - esac
  32982. - need_lib_prefix=no
  32983. - need_version=no
  32984. - soname_spec='${libname}${release}${shared_ext}$major'
  32985. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  32986. - case $host_os in
  32987. - irix5* | nonstopux*)
  32988. - libsuff= shlibsuff=
  32989. - ;;
  32990. - *)
  32991. - case $LD in # libtool.m4 will add one of these switches to LD
  32992. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  32993. - libsuff= shlibsuff= libmagic=32-bit;;
  32994. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  32995. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  32996. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  32997. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  32998. - *) libsuff= shlibsuff= libmagic=never-match;;
  32999. - esac
  33000. - ;;
  33001. - esac
  33002. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  33003. - shlibpath_overrides_runpath=no
  33004. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  33005. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  33006. - hardcode_into_libs=yes
  33007. - ;;
  33008. -
  33009. -# No shared lib support for Linux oldld, aout, or coff.
  33010. -linux*oldld* | linux*aout* | linux*coff*)
  33011. - dynamic_linker=no
  33012. - ;;
  33013. -
  33014. -# This must be Linux ELF.
  33015. -linux* | k*bsd*-gnu)
  33016. - version_type=linux
  33017. - need_lib_prefix=no
  33018. - need_version=no
  33019. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33020. - soname_spec='${libname}${release}${shared_ext}$major'
  33021. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  33022. - shlibpath_var=LD_LIBRARY_PATH
  33023. - shlibpath_overrides_runpath=no
  33024. - # This implies no fast_install, which is unacceptable.
  33025. - # Some rework will be needed to allow for fast_install
  33026. - # before this can be enabled.
  33027. - hardcode_into_libs=yes
  33028. -
  33029. - # Append ld.so.conf contents to the search path
  33030. - if test -f /etc/ld.so.conf; then
  33031. - 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' ' '`
  33032. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  33033. - fi
  33034. -
  33035. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  33036. - # powerpc, because MkLinux only supported shared libraries with the
  33037. - # GNU dynamic linker. Since this was broken with cross compilers,
  33038. - # most powerpc-linux boxes support dynamic linking these days and
  33039. - # people can always --disable-shared, the test was removed, and we
  33040. - # assume the GNU/Linux dynamic linker is in use.
  33041. - dynamic_linker='GNU/Linux ld.so'
  33042. - ;;
  33043. -
  33044. -netbsdelf*-gnu)
  33045. - version_type=linux
  33046. - need_lib_prefix=no
  33047. - need_version=no
  33048. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33049. - soname_spec='${libname}${release}${shared_ext}$major'
  33050. - shlibpath_var=LD_LIBRARY_PATH
  33051. - shlibpath_overrides_runpath=no
  33052. - hardcode_into_libs=yes
  33053. - dynamic_linker='NetBSD ld.elf_so'
  33054. - ;;
  33055. -
  33056. -netbsd*)
  33057. - version_type=sunos
  33058. - need_lib_prefix=no
  33059. - need_version=no
  33060. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33061. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33062. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33063. - dynamic_linker='NetBSD (a.out) ld.so'
  33064. - else
  33065. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33066. - soname_spec='${libname}${release}${shared_ext}$major'
  33067. - dynamic_linker='NetBSD ld.elf_so'
  33068. - fi
  33069. - shlibpath_var=LD_LIBRARY_PATH
  33070. - shlibpath_overrides_runpath=yes
  33071. - hardcode_into_libs=yes
  33072. - ;;
  33073. -
  33074. -newsos6)
  33075. - version_type=linux
  33076. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33077. - shlibpath_var=LD_LIBRARY_PATH
  33078. - shlibpath_overrides_runpath=yes
  33079. - ;;
  33080. -
  33081. -nto-qnx*)
  33082. - version_type=linux
  33083. - need_lib_prefix=no
  33084. - need_version=no
  33085. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33086. - soname_spec='${libname}${release}${shared_ext}$major'
  33087. - shlibpath_var=LD_LIBRARY_PATH
  33088. - shlibpath_overrides_runpath=yes
  33089. - ;;
  33090. -
  33091. -openbsd*)
  33092. - version_type=sunos
  33093. - sys_lib_dlsearch_path_spec="/usr/lib"
  33094. - need_lib_prefix=no
  33095. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  33096. - case $host_os in
  33097. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33098. - *) need_version=no ;;
  33099. - esac
  33100. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33101. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33102. - shlibpath_var=LD_LIBRARY_PATH
  33103. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33104. - case $host_os in
  33105. - openbsd2.[89] | openbsd2.[89].*)
  33106. - shlibpath_overrides_runpath=no
  33107. + irix5* | irix6* | nonstopux*)
  33108. + lt_prog_compiler_wl='-Wl,'
  33109. + # PIC (with -KPIC) is the default.
  33110. + lt_prog_compiler_static='-non_shared'
  33111. + ;;
  33112. +
  33113. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  33114. + case $cc_basename in
  33115. + # old Intel for x86_64 which still supported -KPIC.
  33116. + ecc*)
  33117. + lt_prog_compiler_wl='-Wl,'
  33118. + lt_prog_compiler_pic='-KPIC'
  33119. + lt_prog_compiler_static='-static'
  33120. + ;;
  33121. + # icc used to be incompatible with GCC.
  33122. + # ICC 10 doesn't accept -KPIC any more.
  33123. + icc* | ifort*)
  33124. + lt_prog_compiler_wl='-Wl,'
  33125. + lt_prog_compiler_pic='-fPIC'
  33126. + lt_prog_compiler_static='-static'
  33127. + ;;
  33128. + # Lahey Fortran 8.1.
  33129. + lf95*)
  33130. + lt_prog_compiler_wl='-Wl,'
  33131. + lt_prog_compiler_pic='--shared'
  33132. + lt_prog_compiler_static='--static'
  33133. + ;;
  33134. + pgcc* | pgf77* | pgf90* | pgf95*)
  33135. + # Portland Group compilers (*not* the Pentium gcc compiler,
  33136. + # which looks to be a dead project)
  33137. + lt_prog_compiler_wl='-Wl,'
  33138. + lt_prog_compiler_pic='-fpic'
  33139. + lt_prog_compiler_static='-Bstatic'
  33140. + ;;
  33141. + ccc*)
  33142. + lt_prog_compiler_wl='-Wl,'
  33143. + # All Alpha code is PIC.
  33144. + lt_prog_compiler_static='-non_shared'
  33145. + ;;
  33146. + xl*)
  33147. + # IBM XL C 8.0/Fortran 10.1 on PPC
  33148. + lt_prog_compiler_wl='-Wl,'
  33149. + lt_prog_compiler_pic='-qpic'
  33150. + lt_prog_compiler_static='-qstaticlink'
  33151. ;;
  33152. *)
  33153. - shlibpath_overrides_runpath=yes
  33154. + case `$CC -V 2>&1 | sed 5q` in
  33155. + *Sun\ C*)
  33156. + # Sun C 5.9
  33157. + lt_prog_compiler_pic='-KPIC'
  33158. + lt_prog_compiler_static='-Bstatic'
  33159. + lt_prog_compiler_wl='-Wl,'
  33160. + ;;
  33161. + *Sun\ F*)
  33162. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  33163. + lt_prog_compiler_pic='-KPIC'
  33164. + lt_prog_compiler_static='-Bstatic'
  33165. + lt_prog_compiler_wl=''
  33166. + ;;
  33167. + esac
  33168. ;;
  33169. esac
  33170. - else
  33171. - shlibpath_overrides_runpath=yes
  33172. - fi
  33173. - ;;
  33174. + ;;
  33175. -os2*)
  33176. - libname_spec='$name'
  33177. - shrext_cmds=".dll"
  33178. - need_lib_prefix=no
  33179. - library_names_spec='$libname${shared_ext} $libname.a'
  33180. - dynamic_linker='OS/2 ld.exe'
  33181. - shlibpath_var=LIBPATH
  33182. - ;;
  33183. + newsos6)
  33184. + lt_prog_compiler_pic='-KPIC'
  33185. + lt_prog_compiler_static='-Bstatic'
  33186. + ;;
  33187. -osf3* | osf4* | osf5*)
  33188. - version_type=osf
  33189. - need_lib_prefix=no
  33190. - need_version=no
  33191. - soname_spec='${libname}${release}${shared_ext}$major'
  33192. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33193. - shlibpath_var=LD_LIBRARY_PATH
  33194. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  33195. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  33196. - ;;
  33197. + *nto* | *qnx*)
  33198. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33199. + # it will coredump.
  33200. + lt_prog_compiler_pic='-fPIC -shared'
  33201. + ;;
  33202. -rdos*)
  33203. - dynamic_linker=no
  33204. - ;;
  33205. + osf3* | osf4* | osf5*)
  33206. + lt_prog_compiler_wl='-Wl,'
  33207. + # All OSF/1 code is PIC.
  33208. + lt_prog_compiler_static='-non_shared'
  33209. + ;;
  33210. -solaris*)
  33211. - version_type=linux
  33212. - need_lib_prefix=no
  33213. - need_version=no
  33214. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33215. - soname_spec='${libname}${release}${shared_ext}$major'
  33216. - shlibpath_var=LD_LIBRARY_PATH
  33217. - shlibpath_overrides_runpath=yes
  33218. - hardcode_into_libs=yes
  33219. - # ldd complains unless libraries are executable
  33220. - postinstall_cmds='chmod +x $lib'
  33221. - ;;
  33222. + rdos*)
  33223. + lt_prog_compiler_static='-non_shared'
  33224. + ;;
  33225. -sunos4*)
  33226. - version_type=sunos
  33227. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33228. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  33229. - shlibpath_var=LD_LIBRARY_PATH
  33230. - shlibpath_overrides_runpath=yes
  33231. - if test "$with_gnu_ld" = yes; then
  33232. - need_lib_prefix=no
  33233. - fi
  33234. - need_version=yes
  33235. - ;;
  33236. + solaris*)
  33237. + lt_prog_compiler_pic='-KPIC'
  33238. + lt_prog_compiler_static='-Bstatic'
  33239. + case $cc_basename in
  33240. + f77* | f90* | f95*)
  33241. + lt_prog_compiler_wl='-Qoption ld ';;
  33242. + *)
  33243. + lt_prog_compiler_wl='-Wl,';;
  33244. + esac
  33245. + ;;
  33246. -sysv4 | sysv4.3*)
  33247. - version_type=linux
  33248. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33249. - soname_spec='${libname}${release}${shared_ext}$major'
  33250. - shlibpath_var=LD_LIBRARY_PATH
  33251. - case $host_vendor in
  33252. - sni)
  33253. - shlibpath_overrides_runpath=no
  33254. - need_lib_prefix=no
  33255. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33256. - runpath_var=LD_RUN_PATH
  33257. + sunos4*)
  33258. + lt_prog_compiler_wl='-Qoption ld '
  33259. + lt_prog_compiler_pic='-PIC'
  33260. + lt_prog_compiler_static='-Bstatic'
  33261. ;;
  33262. - siemens)
  33263. - need_lib_prefix=no
  33264. +
  33265. + sysv4 | sysv4.2uw2* | sysv4.3*)
  33266. + lt_prog_compiler_wl='-Wl,'
  33267. + lt_prog_compiler_pic='-KPIC'
  33268. + lt_prog_compiler_static='-Bstatic'
  33269. ;;
  33270. - motorola)
  33271. - need_lib_prefix=no
  33272. - need_version=no
  33273. - shlibpath_overrides_runpath=no
  33274. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  33275. +
  33276. + sysv4*MP*)
  33277. + if test -d /usr/nec ;then
  33278. + lt_prog_compiler_pic='-Kconform_pic'
  33279. + lt_prog_compiler_static='-Bstatic'
  33280. + fi
  33281. ;;
  33282. - esac
  33283. - ;;
  33284. -sysv4*MP*)
  33285. - if test -d /usr/nec ;then
  33286. - version_type=linux
  33287. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  33288. - soname_spec='$libname${shared_ext}.$major'
  33289. - shlibpath_var=LD_LIBRARY_PATH
  33290. - fi
  33291. - ;;
  33292. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  33293. + lt_prog_compiler_wl='-Wl,'
  33294. + lt_prog_compiler_pic='-KPIC'
  33295. + lt_prog_compiler_static='-Bstatic'
  33296. + ;;
  33297. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  33298. - version_type=freebsd-elf
  33299. - need_lib_prefix=no
  33300. - need_version=no
  33301. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33302. - soname_spec='${libname}${release}${shared_ext}$major'
  33303. - shlibpath_var=LD_LIBRARY_PATH
  33304. - hardcode_into_libs=yes
  33305. - if test "$with_gnu_ld" = yes; then
  33306. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33307. - shlibpath_overrides_runpath=no
  33308. - else
  33309. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33310. - shlibpath_overrides_runpath=yes
  33311. - case $host_os in
  33312. - sco3.2v5*)
  33313. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33314. - ;;
  33315. + unicos*)
  33316. + lt_prog_compiler_wl='-Wl,'
  33317. + lt_prog_compiler_can_build_shared=no
  33318. + ;;
  33319. +
  33320. + uts4*)
  33321. + lt_prog_compiler_pic='-pic'
  33322. + lt_prog_compiler_static='-Bstatic'
  33323. + ;;
  33324. +
  33325. + *)
  33326. + lt_prog_compiler_can_build_shared=no
  33327. + ;;
  33328. esac
  33329. fi
  33330. - sys_lib_dlsearch_path_spec='/usr/lib'
  33331. - ;;
  33332. -
  33333. -uts4*)
  33334. - version_type=linux
  33335. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33336. - soname_spec='${libname}${release}${shared_ext}$major'
  33337. - shlibpath_var=LD_LIBRARY_PATH
  33338. - ;;
  33339. -*)
  33340. - dynamic_linker=no
  33341. - ;;
  33342. +case $host_os in
  33343. + # For platforms which do not support PIC, -DPIC is meaningless:
  33344. + *djgpp*)
  33345. + lt_prog_compiler_pic=
  33346. + ;;
  33347. + *)
  33348. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  33349. + ;;
  33350. esac
  33351. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33352. -echo "${ECHO_T}$dynamic_linker" >&6; }
  33353. -test "$dynamic_linker" = no && can_build_shared=no
  33354. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  33355. +$as_echo "$lt_prog_compiler_pic" >&6; }
  33356. +
  33357. +
  33358. +
  33359. +
  33360. +
  33361. +
  33362. +#
  33363. +# Check to make sure the PIC flag actually works.
  33364. +#
  33365. +if test -n "$lt_prog_compiler_pic"; then
  33366. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  33367. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  33368. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  33369. + $as_echo_n "(cached) " >&6
  33370. +else
  33371. + lt_cv_prog_compiler_pic_works=no
  33372. + ac_outfile=conftest.$ac_objext
  33373. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33374. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  33375. + # Insert the option either (1) after the last *FLAGS variable, or
  33376. + # (2) before a word containing "conftest.", or (3) at the end.
  33377. + # Note that $ac_compile itself does not contain backslashes and begins
  33378. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33379. + # The option is referenced via a variable to avoid confusing sed.
  33380. + lt_compile=`echo "$ac_compile" | $SED \
  33381. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33382. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33383. + -e 's:$: $lt_compiler_flag:'`
  33384. + (eval echo "\"\$as_me:7744: $lt_compile\"" >&5)
  33385. + (eval "$lt_compile" 2>conftest.err)
  33386. + ac_status=$?
  33387. + cat conftest.err >&5
  33388. + echo "$as_me:7748: \$? = $ac_status" >&5
  33389. + if (exit $ac_status) && test -s "$ac_outfile"; then
  33390. + # The compiler can only warn and ignore the option if not recognized
  33391. + # So say no if there are warnings other than the usual output.
  33392. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33393. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33394. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33395. + lt_cv_prog_compiler_pic_works=yes
  33396. + fi
  33397. + fi
  33398. + $RM conftest*
  33399. +
  33400. +fi
  33401. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  33402. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  33403. +
  33404. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  33405. + case $lt_prog_compiler_pic in
  33406. + "" | " "*) ;;
  33407. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  33408. + esac
  33409. +else
  33410. + lt_prog_compiler_pic=
  33411. + lt_prog_compiler_can_build_shared=no
  33412. +fi
  33413. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33414. -if test "$GCC" = yes; then
  33415. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33416. fi
  33417. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33418. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  33419. -hardcode_action_F77=
  33420. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  33421. - test -n "$runpath_var_F77" || \
  33422. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  33423. - # We can hardcode non-existant directories.
  33424. - if test "$hardcode_direct_F77" != no &&
  33425. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33426. - # have to relink, otherwise we might link with an installed library
  33427. - # when we should be linking with a yet-to-be-installed one
  33428. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  33429. - test "$hardcode_minus_L_F77" != no; then
  33430. - # Linking always hardcodes the temporary library directory.
  33431. - hardcode_action_F77=relink
  33432. - else
  33433. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33434. - hardcode_action_F77=immediate
  33435. - fi
  33436. -else
  33437. - # We cannot hardcode anything, or else we can only hardcode existing
  33438. - # directories.
  33439. - hardcode_action_F77=unsupported
  33440. -fi
  33441. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  33442. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  33443. -if test "$hardcode_action_F77" = relink; then
  33444. - # Fast installation is not supported
  33445. - enable_fast_install=no
  33446. -elif test "$shlibpath_overrides_runpath" = yes ||
  33447. - test "$enable_shared" = no; then
  33448. - # Fast installation is not necessary
  33449. - enable_fast_install=needless
  33450. -fi
  33451. -# The else clause should only fire when bootstrapping the
  33452. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  33453. -# with your package, and you will get complaints that there are
  33454. -# no rules to generate ltmain.sh.
  33455. -if test -f "$ltmain"; then
  33456. - # See if we are running on zsh, and set the options which allow our commands through
  33457. - # without removal of \ escapes.
  33458. - if test -n "${ZSH_VERSION+set}" ; then
  33459. - setopt NO_GLOB_SUBST
  33460. - fi
  33461. - # Now quote all the things that may contain metacharacters while being
  33462. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  33463. - # variables and quote the copies for generation of the libtool script.
  33464. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  33465. - SED SHELL STRIP \
  33466. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  33467. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  33468. - deplibs_check_method reload_flag reload_cmds need_locks \
  33469. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  33470. - lt_cv_sys_global_symbol_to_c_name_address \
  33471. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  33472. - old_postinstall_cmds old_postuninstall_cmds \
  33473. - compiler_F77 \
  33474. - CC_F77 \
  33475. - LD_F77 \
  33476. - lt_prog_compiler_wl_F77 \
  33477. - lt_prog_compiler_pic_F77 \
  33478. - lt_prog_compiler_static_F77 \
  33479. - lt_prog_compiler_no_builtin_flag_F77 \
  33480. - export_dynamic_flag_spec_F77 \
  33481. - thread_safe_flag_spec_F77 \
  33482. - whole_archive_flag_spec_F77 \
  33483. - enable_shared_with_static_runtimes_F77 \
  33484. - old_archive_cmds_F77 \
  33485. - old_archive_from_new_cmds_F77 \
  33486. - predep_objects_F77 \
  33487. - postdep_objects_F77 \
  33488. - predeps_F77 \
  33489. - postdeps_F77 \
  33490. - compiler_lib_search_path_F77 \
  33491. - archive_cmds_F77 \
  33492. - archive_expsym_cmds_F77 \
  33493. - postinstall_cmds_F77 \
  33494. - postuninstall_cmds_F77 \
  33495. - old_archive_from_expsyms_cmds_F77 \
  33496. - allow_undefined_flag_F77 \
  33497. - no_undefined_flag_F77 \
  33498. - export_symbols_cmds_F77 \
  33499. - hardcode_libdir_flag_spec_F77 \
  33500. - hardcode_libdir_flag_spec_ld_F77 \
  33501. - hardcode_libdir_separator_F77 \
  33502. - hardcode_automatic_F77 \
  33503. - module_cmds_F77 \
  33504. - module_expsym_cmds_F77 \
  33505. - lt_cv_prog_compiler_c_o_F77 \
  33506. - fix_srcfile_path_F77 \
  33507. - exclude_expsyms_F77 \
  33508. - include_expsyms_F77; do
  33509. -
  33510. - case $var in
  33511. - old_archive_cmds_F77 | \
  33512. - old_archive_from_new_cmds_F77 | \
  33513. - archive_cmds_F77 | \
  33514. - archive_expsym_cmds_F77 | \
  33515. - module_cmds_F77 | \
  33516. - module_expsym_cmds_F77 | \
  33517. - old_archive_from_expsyms_cmds_F77 | \
  33518. - export_symbols_cmds_F77 | \
  33519. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  33520. - postinstall_cmds | postuninstall_cmds | \
  33521. - old_postinstall_cmds | old_postuninstall_cmds | \
  33522. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  33523. - # Double-quote double-evaled strings.
  33524. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  33525. - ;;
  33526. - *)
  33527. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  33528. - ;;
  33529. - esac
  33530. - done
  33531. - case $lt_echo in
  33532. - *'\$0 --fallback-echo"')
  33533. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  33534. - ;;
  33535. - esac
  33536. +#
  33537. +# Check to make sure the static flag actually works.
  33538. +#
  33539. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  33540. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  33541. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  33542. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  33543. + $as_echo_n "(cached) " >&6
  33544. +else
  33545. + lt_cv_prog_compiler_static_works=no
  33546. + save_LDFLAGS="$LDFLAGS"
  33547. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  33548. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  33549. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  33550. + # The linker can only warn and ignore the option if not recognized
  33551. + # So say no if there are warnings
  33552. + if test -s conftest.err; then
  33553. + # Append any errors to the config.log.
  33554. + cat conftest.err 1>&5
  33555. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  33556. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33557. + if diff conftest.exp conftest.er2 >/dev/null; then
  33558. + lt_cv_prog_compiler_static_works=yes
  33559. + fi
  33560. + else
  33561. + lt_cv_prog_compiler_static_works=yes
  33562. + fi
  33563. + fi
  33564. + $RM -r conftest*
  33565. + LDFLAGS="$save_LDFLAGS"
  33566. -cfgfile="$ofile"
  33567. +fi
  33568. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  33569. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  33570. - cat <<__EOF__ >> "$cfgfile"
  33571. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  33572. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  33573. + :
  33574. +else
  33575. + lt_prog_compiler_static=
  33576. +fi
  33577. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  33578. -# Shell to use when invoking shell scripts.
  33579. -SHELL=$lt_SHELL
  33580. -# Whether or not to build shared libraries.
  33581. -build_libtool_libs=$enable_shared
  33582. -# Whether or not to build static libraries.
  33583. -build_old_libs=$enable_static
  33584. -# Whether or not to add -lc for building shared libraries.
  33585. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  33586. -# Whether or not to disallow shared libs when runtime libs are static
  33587. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  33588. -# Whether or not to optimize for fast installation.
  33589. -fast_install=$enable_fast_install
  33590. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33591. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33592. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  33593. + $as_echo_n "(cached) " >&6
  33594. +else
  33595. + lt_cv_prog_compiler_c_o=no
  33596. + $RM -r conftest 2>/dev/null
  33597. + mkdir conftest
  33598. + cd conftest
  33599. + mkdir out
  33600. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33601. -# The host system.
  33602. -host_alias=$host_alias
  33603. -host=$host
  33604. -host_os=$host_os
  33605. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  33606. + # Insert the option either (1) after the last *FLAGS variable, or
  33607. + # (2) before a word containing "conftest.", or (3) at the end.
  33608. + # Note that $ac_compile itself does not contain backslashes and begins
  33609. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33610. + lt_compile=`echo "$ac_compile" | $SED \
  33611. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33612. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33613. + -e 's:$: $lt_compiler_flag:'`
  33614. + (eval echo "\"\$as_me:7849: $lt_compile\"" >&5)
  33615. + (eval "$lt_compile" 2>out/conftest.err)
  33616. + ac_status=$?
  33617. + cat out/conftest.err >&5
  33618. + echo "$as_me:7853: \$? = $ac_status" >&5
  33619. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33620. + then
  33621. + # The compiler can only warn and ignore the option if not recognized
  33622. + # So say no if there are warnings
  33623. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33624. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33625. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33626. + lt_cv_prog_compiler_c_o=yes
  33627. + fi
  33628. + fi
  33629. + chmod u+w . 2>&5
  33630. + $RM conftest*
  33631. + # SGI C++ compiler will create directory out/ii_files/ for
  33632. + # template instantiation
  33633. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33634. + $RM out/* && rmdir out
  33635. + cd ..
  33636. + $RM -r conftest
  33637. + $RM conftest*
  33638. -# The build system.
  33639. -build_alias=$build_alias
  33640. -build=$build
  33641. -build_os=$build_os
  33642. +fi
  33643. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  33644. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  33645. -# An echo program that does not interpret backslashes.
  33646. -echo=$lt_echo
  33647. -# The archiver.
  33648. -AR=$lt_AR
  33649. -AR_FLAGS=$lt_AR_FLAGS
  33650. -# A C compiler.
  33651. -LTCC=$lt_LTCC
  33652. -# LTCC compiler flags.
  33653. -LTCFLAGS=$lt_LTCFLAGS
  33654. -# A language-specific compiler.
  33655. -CC=$lt_compiler_F77
  33656. -# Is the compiler the GNU C compiler?
  33657. -with_gcc=$GCC_F77
  33658. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33659. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33660. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  33661. + $as_echo_n "(cached) " >&6
  33662. +else
  33663. + lt_cv_prog_compiler_c_o=no
  33664. + $RM -r conftest 2>/dev/null
  33665. + mkdir conftest
  33666. + cd conftest
  33667. + mkdir out
  33668. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33669. -# An ERE matcher.
  33670. -EGREP=$lt_EGREP
  33671. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  33672. + # Insert the option either (1) after the last *FLAGS variable, or
  33673. + # (2) before a word containing "conftest.", or (3) at the end.
  33674. + # Note that $ac_compile itself does not contain backslashes and begins
  33675. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33676. + lt_compile=`echo "$ac_compile" | $SED \
  33677. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33678. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33679. + -e 's:$: $lt_compiler_flag:'`
  33680. + (eval echo "\"\$as_me:7904: $lt_compile\"" >&5)
  33681. + (eval "$lt_compile" 2>out/conftest.err)
  33682. + ac_status=$?
  33683. + cat out/conftest.err >&5
  33684. + echo "$as_me:7908: \$? = $ac_status" >&5
  33685. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33686. + then
  33687. + # The compiler can only warn and ignore the option if not recognized
  33688. + # So say no if there are warnings
  33689. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33690. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33691. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33692. + lt_cv_prog_compiler_c_o=yes
  33693. + fi
  33694. + fi
  33695. + chmod u+w . 2>&5
  33696. + $RM conftest*
  33697. + # SGI C++ compiler will create directory out/ii_files/ for
  33698. + # template instantiation
  33699. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33700. + $RM out/* && rmdir out
  33701. + cd ..
  33702. + $RM -r conftest
  33703. + $RM conftest*
  33704. -# The linker used to build libraries.
  33705. -LD=$lt_LD_F77
  33706. +fi
  33707. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  33708. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  33709. -# Whether we need hard or soft links.
  33710. -LN_S=$lt_LN_S
  33711. -# A BSD-compatible nm program.
  33712. -NM=$lt_NM
  33713. -# A symbol stripping program
  33714. -STRIP=$lt_STRIP
  33715. -# Used to examine libraries when file_magic_cmd begins "file"
  33716. -MAGIC_CMD=$MAGIC_CMD
  33717. +hard_links="nottested"
  33718. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  33719. + # do not overwrite the value of need_locks provided by the user
  33720. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  33721. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  33722. + hard_links=yes
  33723. + $RM conftest*
  33724. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33725. + touch conftest.a
  33726. + ln conftest.a conftest.b 2>&5 || hard_links=no
  33727. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33728. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  33729. +$as_echo "$hard_links" >&6; }
  33730. + if test "$hard_links" = no; then
  33731. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33732. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33733. + need_locks=warn
  33734. + fi
  33735. +else
  33736. + need_locks=no
  33737. +fi
  33738. -# Used on cygwin: DLL creation program.
  33739. -DLLTOOL="$DLLTOOL"
  33740. -# Used on cygwin: object dumper.
  33741. -OBJDUMP="$OBJDUMP"
  33742. -# Used on cygwin: assembler.
  33743. -AS="$AS"
  33744. -# The name of the directory that contains temporary libtool files.
  33745. -objdir=$objdir
  33746. -# How to create reloadable object files.
  33747. -reload_flag=$lt_reload_flag
  33748. -reload_cmds=$lt_reload_cmds
  33749. -# How to pass a linker flag through the compiler.
  33750. -wl=$lt_lt_prog_compiler_wl_F77
  33751. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33752. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  33753. -# Object file suffix (normally "o").
  33754. -objext="$ac_objext"
  33755. + runpath_var=
  33756. + allow_undefined_flag=
  33757. + always_export_symbols=no
  33758. + archive_cmds=
  33759. + archive_expsym_cmds=
  33760. + compiler_needs_object=no
  33761. + enable_shared_with_static_runtimes=no
  33762. + export_dynamic_flag_spec=
  33763. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33764. + hardcode_automatic=no
  33765. + hardcode_direct=no
  33766. + hardcode_direct_absolute=no
  33767. + hardcode_libdir_flag_spec=
  33768. + hardcode_libdir_flag_spec_ld=
  33769. + hardcode_libdir_separator=
  33770. + hardcode_minus_L=no
  33771. + hardcode_shlibpath_var=unsupported
  33772. + inherit_rpath=no
  33773. + link_all_deplibs=unknown
  33774. + module_cmds=
  33775. + module_expsym_cmds=
  33776. + old_archive_from_new_cmds=
  33777. + old_archive_from_expsyms_cmds=
  33778. + thread_safe_flag_spec=
  33779. + whole_archive_flag_spec=
  33780. + # include_expsyms should be a list of space-separated symbols to be *always*
  33781. + # included in the symbol list
  33782. + include_expsyms=
  33783. + # exclude_expsyms can be an extended regexp of symbols to exclude
  33784. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  33785. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  33786. + # as well as any symbol that contains `d'.
  33787. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  33788. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  33789. + # platforms (ab)use it in PIC code, but their linkers get confused if
  33790. + # the symbol is explicitly referenced. Since portable code cannot
  33791. + # rely on this symbol name, it's probably fine to never include it in
  33792. + # preloaded symbol tables.
  33793. + # Exclude shared library initialization/finalization symbols.
  33794. + extract_expsyms_cmds=
  33795. -# Old archive suffix (normally "a").
  33796. -libext="$libext"
  33797. + case $host_os in
  33798. + cygwin* | mingw* | pw32* | cegcc*)
  33799. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  33800. + # When not using gcc, we currently assume that we are using
  33801. + # Microsoft Visual C++.
  33802. + if test "$GCC" != yes; then
  33803. + with_gnu_ld=no
  33804. + fi
  33805. + ;;
  33806. + interix*)
  33807. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  33808. + with_gnu_ld=yes
  33809. + ;;
  33810. + openbsd*)
  33811. + with_gnu_ld=no
  33812. + ;;
  33813. + linux* | k*bsd*-gnu)
  33814. + link_all_deplibs=no
  33815. + ;;
  33816. + esac
  33817. -# Shared library suffix (normally ".so").
  33818. -shrext_cmds='$shrext_cmds'
  33819. + ld_shlibs=yes
  33820. + if test "$with_gnu_ld" = yes; then
  33821. + # If archive_cmds runs LD, not CC, wlarc should be empty
  33822. + wlarc='${wl}'
  33823. -# Executable file suffix (normally "").
  33824. -exeext="$exeext"
  33825. + # Set some defaults for GNU ld with shared library support. These
  33826. + # are reset later if shared libraries are not supported. Putting them
  33827. + # here allows them to be overridden if necessary.
  33828. + runpath_var=LD_RUN_PATH
  33829. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  33830. + export_dynamic_flag_spec='${wl}--export-dynamic'
  33831. + # ancient GNU ld didn't support --whole-archive et. al.
  33832. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  33833. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  33834. + else
  33835. + whole_archive_flag_spec=
  33836. + fi
  33837. + supports_anon_versioning=no
  33838. + case `$LD -v 2>&1` in
  33839. + *GNU\ gold*) supports_anon_versioning=yes ;;
  33840. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  33841. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  33842. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  33843. + *\ 2.11.*) ;; # other 2.11 versions
  33844. + *) supports_anon_versioning=yes ;;
  33845. + esac
  33846. +
  33847. + # See if GNU ld supports shared libraries.
  33848. + case $host_os in
  33849. + aix[3-9]*)
  33850. + # On AIX/PPC, the GNU linker is very broken
  33851. + if test "$host_cpu" != ia64; then
  33852. + ld_shlibs=no
  33853. + cat <<_LT_EOF 1>&2
  33854. +
  33855. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  33856. +*** to be unable to reliably create shared libraries on AIX.
  33857. +*** Therefore, libtool is disabling shared libraries support. If you
  33858. +*** really care for shared libraries, you may want to modify your PATH
  33859. +*** so that a non-GNU linker is found, and then restart.
  33860. -# Additional compiler flags for building library objects.
  33861. -pic_flag=$lt_lt_prog_compiler_pic_F77
  33862. -pic_mode=$pic_mode
  33863. +_LT_EOF
  33864. + fi
  33865. + ;;
  33866. -# What is the maximum length of a command?
  33867. -max_cmd_len=$lt_cv_sys_max_cmd_len
  33868. + amigaos*)
  33869. + case $host_cpu in
  33870. + powerpc)
  33871. + # see comment about AmigaOS4 .so support
  33872. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33873. + archive_expsym_cmds=''
  33874. + ;;
  33875. + m68k)
  33876. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  33877. + hardcode_libdir_flag_spec='-L$libdir'
  33878. + hardcode_minus_L=yes
  33879. + ;;
  33880. + esac
  33881. + ;;
  33882. -# Does compiler simultaneously support -c and -o options?
  33883. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  33884. + beos*)
  33885. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33886. + allow_undefined_flag=unsupported
  33887. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  33888. + # support --undefined. This deserves some investigation. FIXME
  33889. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33890. + else
  33891. + ld_shlibs=no
  33892. + fi
  33893. + ;;
  33894. -# Must we lock files when doing compilation?
  33895. -need_locks=$lt_need_locks
  33896. + cygwin* | mingw* | pw32* | cegcc*)
  33897. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  33898. + # as there is no search path for DLLs.
  33899. + hardcode_libdir_flag_spec='-L$libdir'
  33900. + allow_undefined_flag=unsupported
  33901. + always_export_symbols=no
  33902. + enable_shared_with_static_runtimes=yes
  33903. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  33904. -# Do we need the lib prefix for modules?
  33905. -need_lib_prefix=$need_lib_prefix
  33906. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  33907. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33908. + # If the export-symbols file already is a .def file (1st line
  33909. + # is EXPORTS), use it as is; otherwise, prepend...
  33910. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  33911. + cp $export_symbols $output_objdir/$soname.def;
  33912. + else
  33913. + echo EXPORTS > $output_objdir/$soname.def;
  33914. + cat $export_symbols >> $output_objdir/$soname.def;
  33915. + fi~
  33916. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33917. + else
  33918. + ld_shlibs=no
  33919. + fi
  33920. + ;;
  33921. -# Do we need a version for libraries?
  33922. -need_version=$need_version
  33923. + interix[3-9]*)
  33924. + hardcode_direct=no
  33925. + hardcode_shlibpath_var=no
  33926. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  33927. + export_dynamic_flag_spec='${wl}-E'
  33928. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  33929. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  33930. + # default) and relocated if they conflict, which is a slow very memory
  33931. + # consuming and fragmenting process. To avoid this, we pick a random,
  33932. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  33933. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  33934. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  33935. + archive_expsym_cmds='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'
  33936. + ;;
  33937. -# Whether dlopen is supported.
  33938. -dlopen_support=$enable_dlopen
  33939. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  33940. + tmp_diet=no
  33941. + if test "$host_os" = linux-dietlibc; then
  33942. + case $cc_basename in
  33943. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  33944. + esac
  33945. + fi
  33946. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  33947. + && test "$tmp_diet" = no
  33948. + then
  33949. + tmp_addflag=
  33950. + tmp_sharedflag='-shared'
  33951. + case $cc_basename,$host_cpu in
  33952. + pgcc*) # Portland Group C compiler
  33953. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  33954. + tmp_addflag=' $pic_flag'
  33955. + ;;
  33956. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  33957. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  33958. + tmp_addflag=' $pic_flag -Mnomain' ;;
  33959. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  33960. + tmp_addflag=' -i_dynamic' ;;
  33961. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  33962. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  33963. + ifc* | ifort*) # Intel Fortran compiler
  33964. + tmp_addflag=' -nofor_main' ;;
  33965. + lf95*) # Lahey Fortran 8.1
  33966. + whole_archive_flag_spec=
  33967. + tmp_sharedflag='--shared' ;;
  33968. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  33969. + tmp_sharedflag='-qmkshrobj'
  33970. + tmp_addflag= ;;
  33971. + esac
  33972. + case `$CC -V 2>&1 | sed 5q` in
  33973. + *Sun\ C*) # Sun C 5.9
  33974. + whole_archive_flag_spec='${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'
  33975. + compiler_needs_object=yes
  33976. + tmp_sharedflag='-G' ;;
  33977. + *Sun\ F*) # Sun Fortran 8.3
  33978. + tmp_sharedflag='-G' ;;
  33979. + esac
  33980. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33981. -# Whether dlopen of programs is supported.
  33982. -dlopen_self=$enable_dlopen_self
  33983. + if test "x$supports_anon_versioning" = xyes; then
  33984. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  33985. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  33986. + echo "local: *; };" >> $output_objdir/$libname.ver~
  33987. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  33988. + fi
  33989. -# Whether dlopen of statically linked programs is supported.
  33990. -dlopen_self_static=$enable_dlopen_self_static
  33991. + case $cc_basename in
  33992. + xlf*)
  33993. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  33994. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  33995. + hardcode_libdir_flag_spec=
  33996. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  33997. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  33998. + if test "x$supports_anon_versioning" = xyes; then
  33999. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34000. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34001. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34002. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  34003. + fi
  34004. + ;;
  34005. + esac
  34006. + else
  34007. + ld_shlibs=no
  34008. + fi
  34009. + ;;
  34010. -# Compiler flag to prevent dynamic linking.
  34011. -link_static_flag=$lt_lt_prog_compiler_static_F77
  34012. + netbsd* | netbsdelf*-gnu)
  34013. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34014. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34015. + wlarc=
  34016. + else
  34017. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34018. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34019. + fi
  34020. + ;;
  34021. -# Compiler flag to turn off builtin functions.
  34022. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  34023. + solaris*)
  34024. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  34025. + ld_shlibs=no
  34026. + cat <<_LT_EOF 1>&2
  34027. -# Compiler flag to allow reflexive dlopens.
  34028. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  34029. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34030. +*** create shared libraries on Solaris systems. Therefore, libtool
  34031. +*** is disabling shared libraries support. We urge you to upgrade GNU
  34032. +*** binutils to release 2.9.1 or newer. Another option is to modify
  34033. +*** your PATH or compiler configuration so that the native linker is
  34034. +*** used, and then restart.
  34035. -# Compiler flag to generate shared objects directly from archives.
  34036. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  34037. +_LT_EOF
  34038. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34039. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34040. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34041. + else
  34042. + ld_shlibs=no
  34043. + fi
  34044. + ;;
  34045. -# Compiler flag to generate thread-safe objects.
  34046. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  34047. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34048. + case `$LD -v 2>&1` in
  34049. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34050. + ld_shlibs=no
  34051. + cat <<_LT_EOF 1>&2
  34052. -# Library versioning type.
  34053. -version_type=$version_type
  34054. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34055. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  34056. +*** is disabling shared libraries support. We urge you to upgrade GNU
  34057. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  34058. +*** your PATH or compiler configuration so that the native linker is
  34059. +*** used, and then restart.
  34060. -# Format of library name prefix.
  34061. -libname_spec=$lt_libname_spec
  34062. +_LT_EOF
  34063. + ;;
  34064. + *)
  34065. + # For security reasons, it is highly recommended that you always
  34066. + # use absolute paths for naming shared libraries, and exclude the
  34067. + # DT_RUNPATH tag from executables and libraries. But doing so
  34068. + # requires that you compile everything twice, which is a pain.
  34069. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34070. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34071. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34072. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34073. + else
  34074. + ld_shlibs=no
  34075. + fi
  34076. + ;;
  34077. + esac
  34078. + ;;
  34079. -# List of archive names. First name is the real one, the rest are links.
  34080. -# The last name is the one that the linker finds with -lNAME.
  34081. -library_names_spec=$lt_library_names_spec
  34082. + sunos4*)
  34083. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34084. + wlarc=
  34085. + hardcode_direct=yes
  34086. + hardcode_shlibpath_var=no
  34087. + ;;
  34088. -# The coded name of the library, if different from the real name.
  34089. -soname_spec=$lt_soname_spec
  34090. + *)
  34091. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34092. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34093. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34094. + else
  34095. + ld_shlibs=no
  34096. + fi
  34097. + ;;
  34098. + esac
  34099. -# Commands used to build and install an old-style archive.
  34100. -RANLIB=$lt_RANLIB
  34101. -old_archive_cmds=$lt_old_archive_cmds_F77
  34102. -old_postinstall_cmds=$lt_old_postinstall_cmds
  34103. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34104. + if test "$ld_shlibs" = no; then
  34105. + runpath_var=
  34106. + hardcode_libdir_flag_spec=
  34107. + export_dynamic_flag_spec=
  34108. + whole_archive_flag_spec=
  34109. + fi
  34110. + else
  34111. + # PORTME fill in a description of your system's linker (not GNU ld)
  34112. + case $host_os in
  34113. + aix3*)
  34114. + allow_undefined_flag=unsupported
  34115. + always_export_symbols=yes
  34116. + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  34117. + # Note: this linker hardcodes the directories in LIBPATH if there
  34118. + # are no directories specified by -L.
  34119. + hardcode_minus_L=yes
  34120. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34121. + # Neither direct hardcoding nor static linking is supported with a
  34122. + # broken collect2.
  34123. + hardcode_direct=unsupported
  34124. + fi
  34125. + ;;
  34126. -# Create an old-style archive from a shared archive.
  34127. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  34128. + aix[4-9]*)
  34129. + if test "$host_cpu" = ia64; then
  34130. + # On IA64, the linker does run time linking by default, so we don't
  34131. + # have to do anything special.
  34132. + aix_use_runtimelinking=no
  34133. + exp_sym_flag='-Bexport'
  34134. + no_entry_flag=""
  34135. + else
  34136. + # If we're using GNU nm, then we don't want the "-C" option.
  34137. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34138. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  34139. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  34140. + else
  34141. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  34142. + fi
  34143. + aix_use_runtimelinking=no
  34144. -# Create a temporary old-style archive to link instead of a shared archive.
  34145. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  34146. + # Test if we are trying to use run time linking or normal
  34147. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34148. + # need to do runtime linking.
  34149. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  34150. + for ld_flag in $LDFLAGS; do
  34151. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34152. + aix_use_runtimelinking=yes
  34153. + break
  34154. + fi
  34155. + done
  34156. + ;;
  34157. + esac
  34158. -# Commands used to build and install a shared archive.
  34159. -archive_cmds=$lt_archive_cmds_F77
  34160. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  34161. -postinstall_cmds=$lt_postinstall_cmds
  34162. -postuninstall_cmds=$lt_postuninstall_cmds
  34163. + exp_sym_flag='-bexport'
  34164. + no_entry_flag='-bnoentry'
  34165. + fi
  34166. -# Commands used to build a loadable module (assumed same as above if empty)
  34167. -module_cmds=$lt_module_cmds_F77
  34168. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  34169. + # When large executables or shared objects are built, AIX ld can
  34170. + # have problems creating the table of contents. If linking a library
  34171. + # or program results in "error TOC overflow" add -mminimal-toc to
  34172. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34173. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34174. -# Commands to strip libraries.
  34175. -old_striplib=$lt_old_striplib
  34176. -striplib=$lt_striplib
  34177. + archive_cmds=''
  34178. + hardcode_direct=yes
  34179. + hardcode_direct_absolute=yes
  34180. + hardcode_libdir_separator=':'
  34181. + link_all_deplibs=yes
  34182. + file_list_spec='${wl}-f,'
  34183. -# Dependencies to place before the objects being linked to create a
  34184. -# shared library.
  34185. -predep_objects=$lt_predep_objects_F77
  34186. -
  34187. -# Dependencies to place after the objects being linked to create a
  34188. -# shared library.
  34189. -postdep_objects=$lt_postdep_objects_F77
  34190. -
  34191. -# Dependencies to place before the objects being linked to create a
  34192. -# shared library.
  34193. -predeps=$lt_predeps_F77
  34194. -
  34195. -# Dependencies to place after the objects being linked to create a
  34196. -# shared library.
  34197. -postdeps=$lt_postdeps_F77
  34198. -
  34199. -# The library search path used internally by the compiler when linking
  34200. -# a shared library.
  34201. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  34202. + if test "$GCC" = yes; then
  34203. + case $host_os in aix4.[012]|aix4.[012].*)
  34204. + # We only want to do this on AIX 4.2 and lower, the check
  34205. + # below for broken collect2 doesn't work under 4.3+
  34206. + collect2name=`${CC} -print-prog-name=collect2`
  34207. + if test -f "$collect2name" &&
  34208. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  34209. + then
  34210. + # We have reworked collect2
  34211. + :
  34212. + else
  34213. + # We have old collect2
  34214. + hardcode_direct=unsupported
  34215. + # It fails to find uninstalled libraries when the uninstalled
  34216. + # path is not listed in the libpath. Setting hardcode_minus_L
  34217. + # to unsupported forces relinking
  34218. + hardcode_minus_L=yes
  34219. + hardcode_libdir_flag_spec='-L$libdir'
  34220. + hardcode_libdir_separator=
  34221. + fi
  34222. + ;;
  34223. + esac
  34224. + shared_flag='-shared'
  34225. + if test "$aix_use_runtimelinking" = yes; then
  34226. + shared_flag="$shared_flag "'${wl}-G'
  34227. + fi
  34228. + link_all_deplibs=no
  34229. + else
  34230. + # not using gcc
  34231. + if test "$host_cpu" = ia64; then
  34232. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34233. + # chokes on -Wl,-G. The following line is correct:
  34234. + shared_flag='-G'
  34235. + else
  34236. + if test "$aix_use_runtimelinking" = yes; then
  34237. + shared_flag='${wl}-G'
  34238. + else
  34239. + shared_flag='${wl}-bM:SRE'
  34240. + fi
  34241. + fi
  34242. + fi
  34243. -# Method to check whether dependent libraries are shared objects.
  34244. -deplibs_check_method=$lt_deplibs_check_method
  34245. + export_dynamic_flag_spec='${wl}-bexpall'
  34246. + # It seems that -bexpall does not export symbols beginning with
  34247. + # underscore (_), so it is better to generate a list of symbols to export.
  34248. + always_export_symbols=yes
  34249. + if test "$aix_use_runtimelinking" = yes; then
  34250. + # Warning - without using the other runtime loading flags (-brtl),
  34251. + # -berok will link without error, but may produce a broken library.
  34252. + allow_undefined_flag='-berok'
  34253. + # Determine the default libpath from the value encoded in an
  34254. + # empty executable.
  34255. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34256. +/* end confdefs.h. */
  34257. -# Command to use when deplibs_check_method == file_magic.
  34258. -file_magic_cmd=$lt_file_magic_cmd
  34259. +int
  34260. +main ()
  34261. +{
  34262. -# Flag that allows shared libraries with undefined symbols to be built.
  34263. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  34264. + ;
  34265. + return 0;
  34266. +}
  34267. +_ACEOF
  34268. +if ac_fn_c_try_link "$LINENO"; then :
  34269. -# Flag that forces no undefined symbols.
  34270. -no_undefined_flag=$lt_no_undefined_flag_F77
  34271. +lt_aix_libpath_sed='
  34272. + /Import File Strings/,/^$/ {
  34273. + /^0/ {
  34274. + s/^0 *\(.*\)$/\1/
  34275. + p
  34276. + }
  34277. + }'
  34278. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34279. +# Check for a 64-bit object if we didn't find anything.
  34280. +if test -z "$aix_libpath"; then
  34281. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34282. +fi
  34283. +fi
  34284. +rm -f core conftest.err conftest.$ac_objext \
  34285. + conftest$ac_exeext conftest.$ac_ext
  34286. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34287. -# Commands used to finish a libtool library installation in a directory.
  34288. -finish_cmds=$lt_finish_cmds
  34289. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  34290. + archive_expsym_cmds='$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"
  34291. + else
  34292. + if test "$host_cpu" = ia64; then
  34293. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  34294. + allow_undefined_flag="-z nodefs"
  34295. + archive_expsym_cmds="\$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"
  34296. + else
  34297. + # Determine the default libpath from the value encoded in an
  34298. + # empty executable.
  34299. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34300. +/* end confdefs.h. */
  34301. -# Same as above, but a single script fragment to be evaled but not shown.
  34302. -finish_eval=$lt_finish_eval
  34303. +int
  34304. +main ()
  34305. +{
  34306. -# Take the output of nm and produce a listing of raw symbols and C names.
  34307. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34308. + ;
  34309. + return 0;
  34310. +}
  34311. +_ACEOF
  34312. +if ac_fn_c_try_link "$LINENO"; then :
  34313. -# Transform the output of nm in a proper C declaration
  34314. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  34315. +lt_aix_libpath_sed='
  34316. + /Import File Strings/,/^$/ {
  34317. + /^0/ {
  34318. + s/^0 *\(.*\)$/\1/
  34319. + p
  34320. + }
  34321. + }'
  34322. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34323. +# Check for a 64-bit object if we didn't find anything.
  34324. +if test -z "$aix_libpath"; then
  34325. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34326. +fi
  34327. +fi
  34328. +rm -f core conftest.err conftest.$ac_objext \
  34329. + conftest$ac_exeext conftest.$ac_ext
  34330. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34331. -# Transform the output of nm in a C name address pair
  34332. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  34333. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  34334. + # Warning - without using the other run time loading flags,
  34335. + # -berok will link without error, but may produce a broken library.
  34336. + no_undefined_flag=' ${wl}-bernotok'
  34337. + allow_undefined_flag=' ${wl}-berok'
  34338. + # Exported symbols can be pulled into shared objects from archives
  34339. + whole_archive_flag_spec='$convenience'
  34340. + archive_cmds_need_lc=yes
  34341. + # This is similar to how AIX traditionally builds its shared libraries.
  34342. + archive_expsym_cmds="\$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'
  34343. + fi
  34344. + fi
  34345. + ;;
  34346. -# This is the shared library runtime path variable.
  34347. -runpath_var=$runpath_var
  34348. + amigaos*)
  34349. + case $host_cpu in
  34350. + powerpc)
  34351. + # see comment about AmigaOS4 .so support
  34352. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34353. + archive_expsym_cmds=''
  34354. + ;;
  34355. + m68k)
  34356. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  34357. + hardcode_libdir_flag_spec='-L$libdir'
  34358. + hardcode_minus_L=yes
  34359. + ;;
  34360. + esac
  34361. + ;;
  34362. -# This is the shared library path variable.
  34363. -shlibpath_var=$shlibpath_var
  34364. + bsdi[45]*)
  34365. + export_dynamic_flag_spec=-rdynamic
  34366. + ;;
  34367. -# Is shlibpath searched before the hard-coded library search path?
  34368. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34369. + cygwin* | mingw* | pw32* | cegcc*)
  34370. + # When not using gcc, we currently assume that we are using
  34371. + # Microsoft Visual C++.
  34372. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  34373. + # no search path for DLLs.
  34374. + hardcode_libdir_flag_spec=' '
  34375. + allow_undefined_flag=unsupported
  34376. + # Tell ltmain to make .lib files, not .a files.
  34377. + libext=lib
  34378. + # Tell ltmain to make .dll files, not .so files.
  34379. + shrext_cmds=".dll"
  34380. + # FIXME: Setting linknames here is a bad hack.
  34381. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  34382. + # The linker will automatically build a .lib file if we build a DLL.
  34383. + old_archive_from_new_cmds='true'
  34384. + # FIXME: Should let the user specify the lib program.
  34385. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  34386. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  34387. + enable_shared_with_static_runtimes=yes
  34388. + ;;
  34389. -# How to hardcode a shared library path into an executable.
  34390. -hardcode_action=$hardcode_action_F77
  34391. + darwin* | rhapsody*)
  34392. -# Whether we should hardcode library paths into libraries.
  34393. -hardcode_into_libs=$hardcode_into_libs
  34394. -# Flag to hardcode \$libdir into a binary during linking.
  34395. -# This must work even if \$libdir does not exist.
  34396. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  34397. + archive_cmds_need_lc=no
  34398. + hardcode_direct=no
  34399. + hardcode_automatic=yes
  34400. + hardcode_shlibpath_var=unsupported
  34401. + whole_archive_flag_spec=''
  34402. + link_all_deplibs=yes
  34403. + allow_undefined_flag="$_lt_dar_allow_undefined"
  34404. + case $cc_basename in
  34405. + ifort*) _lt_dar_can_shared=yes ;;
  34406. + *) _lt_dar_can_shared=$GCC ;;
  34407. + esac
  34408. + if test "$_lt_dar_can_shared" = "yes"; then
  34409. + output_verbose_link_cmd=echo
  34410. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  34411. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  34412. + archive_expsym_cmds="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}"
  34413. + module_expsym_cmds="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}"
  34414. -# If ld is used when linking, flag to hardcode \$libdir into
  34415. -# a binary during linking. This must work even if \$libdir does
  34416. -# not exist.
  34417. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  34418. -
  34419. -# Whether we need a single -rpath flag with a separated argument.
  34420. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  34421. -
  34422. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  34423. -# resulting binary.
  34424. -hardcode_direct=$hardcode_direct_F77
  34425. -
  34426. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  34427. -# resulting binary.
  34428. -hardcode_minus_L=$hardcode_minus_L_F77
  34429. -
  34430. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  34431. -# the resulting binary.
  34432. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  34433. -
  34434. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  34435. -# and all subsequent libraries and executables linked against it.
  34436. -hardcode_automatic=$hardcode_automatic_F77
  34437. + else
  34438. + ld_shlibs=no
  34439. + fi
  34440. -# Variables whose values should be saved in libtool wrapper scripts and
  34441. -# restored at relink time.
  34442. -variables_saved_for_relink="$variables_saved_for_relink"
  34443. + ;;
  34444. -# Whether libtool must link a program against all its dependency libraries.
  34445. -link_all_deplibs=$link_all_deplibs_F77
  34446. + dgux*)
  34447. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34448. + hardcode_libdir_flag_spec='-L$libdir'
  34449. + hardcode_shlibpath_var=no
  34450. + ;;
  34451. -# Compile-time system search path for libraries
  34452. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34453. + freebsd1*)
  34454. + ld_shlibs=no
  34455. + ;;
  34456. -# Run-time system search path for libraries
  34457. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34458. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  34459. + # support. Future versions do this automatically, but an explicit c++rt0.o
  34460. + # does not break anything, and helps significantly (at the cost of a little
  34461. + # extra space).
  34462. + freebsd2.2*)
  34463. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  34464. + hardcode_libdir_flag_spec='-R$libdir'
  34465. + hardcode_direct=yes
  34466. + hardcode_shlibpath_var=no
  34467. + ;;
  34468. -# Fix the shell variable \$srcfile for the compiler.
  34469. -fix_srcfile_path=$lt_fix_srcfile_path
  34470. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  34471. + freebsd2*)
  34472. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34473. + hardcode_direct=yes
  34474. + hardcode_minus_L=yes
  34475. + hardcode_shlibpath_var=no
  34476. + ;;
  34477. -# Set to yes if exported symbols are required.
  34478. -always_export_symbols=$always_export_symbols_F77
  34479. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  34480. + freebsd* | dragonfly*)
  34481. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  34482. + hardcode_libdir_flag_spec='-R$libdir'
  34483. + hardcode_direct=yes
  34484. + hardcode_shlibpath_var=no
  34485. + ;;
  34486. -# The commands to list exported symbols.
  34487. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  34488. + hpux9*)
  34489. + if test "$GCC" = yes; then
  34490. + archive_cmds='$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'
  34491. + else
  34492. + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  34493. + fi
  34494. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34495. + hardcode_libdir_separator=:
  34496. + hardcode_direct=yes
  34497. -# The commands to extract the exported symbol list from a shared archive.
  34498. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34499. + # hardcode_minus_L: Not really in the search PATH,
  34500. + # but as the default location of the library.
  34501. + hardcode_minus_L=yes
  34502. + export_dynamic_flag_spec='${wl}-E'
  34503. + ;;
  34504. -# Symbols that should not be listed in the preloaded symbols.
  34505. -exclude_expsyms=$lt_exclude_expsyms_F77
  34506. + hpux10*)
  34507. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34508. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34509. + else
  34510. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  34511. + fi
  34512. + if test "$with_gnu_ld" = no; then
  34513. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34514. + hardcode_libdir_flag_spec_ld='+b $libdir'
  34515. + hardcode_libdir_separator=:
  34516. + hardcode_direct=yes
  34517. + hardcode_direct_absolute=yes
  34518. + export_dynamic_flag_spec='${wl}-E'
  34519. + # hardcode_minus_L: Not really in the search PATH,
  34520. + # but as the default location of the library.
  34521. + hardcode_minus_L=yes
  34522. + fi
  34523. + ;;
  34524. -# Symbols that must always be exported.
  34525. -include_expsyms=$lt_include_expsyms_F77
  34526. + hpux11*)
  34527. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34528. + case $host_cpu in
  34529. + hppa*64*)
  34530. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34531. + ;;
  34532. + ia64*)
  34533. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34534. + ;;
  34535. + *)
  34536. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34537. + ;;
  34538. + esac
  34539. + else
  34540. + case $host_cpu in
  34541. + hppa*64*)
  34542. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34543. + ;;
  34544. + ia64*)
  34545. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34546. + ;;
  34547. + *)
  34548. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34549. + ;;
  34550. + esac
  34551. + fi
  34552. + if test "$with_gnu_ld" = no; then
  34553. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34554. + hardcode_libdir_separator=:
  34555. -# ### END LIBTOOL TAG CONFIG: $tagname
  34556. + case $host_cpu in
  34557. + hppa*64*|ia64*)
  34558. + hardcode_direct=no
  34559. + hardcode_shlibpath_var=no
  34560. + ;;
  34561. + *)
  34562. + hardcode_direct=yes
  34563. + hardcode_direct_absolute=yes
  34564. + export_dynamic_flag_spec='${wl}-E'
  34565. -__EOF__
  34566. + # hardcode_minus_L: Not really in the search PATH,
  34567. + # but as the default location of the library.
  34568. + hardcode_minus_L=yes
  34569. + ;;
  34570. + esac
  34571. + fi
  34572. + ;;
  34573. + irix5* | irix6* | nonstopux*)
  34574. + if test "$GCC" = yes; then
  34575. + archive_cmds='$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'
  34576. + # Try to use the -exported_symbol ld option, if it does not
  34577. + # work, assume that -exports_file does not work either and
  34578. + # implicitly export all symbols.
  34579. + save_LDFLAGS="$LDFLAGS"
  34580. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  34581. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34582. +/* end confdefs.h. */
  34583. +int foo(void) {}
  34584. +_ACEOF
  34585. +if ac_fn_c_try_link "$LINENO"; then :
  34586. + archive_expsym_cmds='$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'
  34587. -else
  34588. - # If there is no Makefile yet, we rely on a make rule to execute
  34589. - # `config.status --recheck' to rerun these tests and create the
  34590. - # libtool script then.
  34591. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  34592. - if test -f "$ltmain_in"; then
  34593. - test -f Makefile && make "$ltmain"
  34594. - fi
  34595. fi
  34596. +rm -f core conftest.err conftest.$ac_objext \
  34597. + conftest$ac_exeext conftest.$ac_ext
  34598. + LDFLAGS="$save_LDFLAGS"
  34599. + else
  34600. + archive_cmds='$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'
  34601. + archive_expsym_cmds='$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'
  34602. + fi
  34603. + archive_cmds_need_lc='no'
  34604. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34605. + hardcode_libdir_separator=:
  34606. + inherit_rpath=yes
  34607. + link_all_deplibs=yes
  34608. + ;;
  34609. + netbsd* | netbsdelf*-gnu)
  34610. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34611. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  34612. + else
  34613. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  34614. + fi
  34615. + hardcode_libdir_flag_spec='-R$libdir'
  34616. + hardcode_direct=yes
  34617. + hardcode_shlibpath_var=no
  34618. + ;;
  34619. -ac_ext=c
  34620. -ac_cpp='$CPP $CPPFLAGS'
  34621. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34622. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34623. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34624. + newsos6)
  34625. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34626. + hardcode_direct=yes
  34627. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34628. + hardcode_libdir_separator=:
  34629. + hardcode_shlibpath_var=no
  34630. + ;;
  34631. -CC="$lt_save_CC"
  34632. + *nto* | *qnx*)
  34633. + ;;
  34634. + openbsd*)
  34635. + if test -f /usr/libexec/ld.so; then
  34636. + hardcode_direct=yes
  34637. + hardcode_shlibpath_var=no
  34638. + hardcode_direct_absolute=yes
  34639. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34640. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34641. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  34642. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34643. + export_dynamic_flag_spec='${wl}-E'
  34644. else
  34645. - tagname=""
  34646. + case $host_os in
  34647. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  34648. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34649. + hardcode_libdir_flag_spec='-R$libdir'
  34650. + ;;
  34651. + *)
  34652. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34653. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34654. + ;;
  34655. + esac
  34656. fi
  34657. - ;;
  34658. -
  34659. - GCJ)
  34660. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  34661. -
  34662. -
  34663. -# Source file extension for Java test sources.
  34664. -ac_ext=java
  34665. -
  34666. -# Object file extension for compiled Java test sources.
  34667. -objext=o
  34668. -objext_GCJ=$objext
  34669. -
  34670. -# Code to be used in simple compile tests
  34671. -lt_simple_compile_test_code="class foo {}"
  34672. -
  34673. -# Code to be used in simple link tests
  34674. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  34675. -
  34676. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  34677. -
  34678. -# If no C compiler was specified, use CC.
  34679. -LTCC=${LTCC-"$CC"}
  34680. -
  34681. -# If no C compiler flags were specified, use CFLAGS.
  34682. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  34683. + else
  34684. + ld_shlibs=no
  34685. + fi
  34686. + ;;
  34687. -# Allow CC to be a program name with arguments.
  34688. -compiler=$CC
  34689. + os2*)
  34690. + hardcode_libdir_flag_spec='-L$libdir'
  34691. + hardcode_minus_L=yes
  34692. + allow_undefined_flag=unsupported
  34693. + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  34694. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  34695. + ;;
  34696. + osf3*)
  34697. + if test "$GCC" = yes; then
  34698. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  34699. + archive_cmds='$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'
  34700. + else
  34701. + allow_undefined_flag=' -expect_unresolved \*'
  34702. + archive_cmds='$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'
  34703. + fi
  34704. + archive_cmds_need_lc='no'
  34705. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34706. + hardcode_libdir_separator=:
  34707. + ;;
  34708. -# save warnings/boilerplate of simple test code
  34709. -ac_outfile=conftest.$ac_objext
  34710. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  34711. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34712. -_lt_compiler_boilerplate=`cat conftest.err`
  34713. -$rm conftest*
  34714. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  34715. + if test "$GCC" = yes; then
  34716. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  34717. + archive_cmds='$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'
  34718. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34719. + else
  34720. + allow_undefined_flag=' -expect_unresolved \*'
  34721. + archive_cmds='$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'
  34722. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  34723. + $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'
  34724. -ac_outfile=conftest.$ac_objext
  34725. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  34726. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34727. -_lt_linker_boilerplate=`cat conftest.err`
  34728. -$rm conftest*
  34729. + # Both c and cxx compiler support -rpath directly
  34730. + hardcode_libdir_flag_spec='-rpath $libdir'
  34731. + fi
  34732. + archive_cmds_need_lc='no'
  34733. + hardcode_libdir_separator=:
  34734. + ;;
  34735. + solaris*)
  34736. + no_undefined_flag=' -z defs'
  34737. + if test "$GCC" = yes; then
  34738. + wlarc='${wl}'
  34739. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34740. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34741. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  34742. + else
  34743. + case `$CC -V 2>&1` in
  34744. + *"Compilers 5.0"*)
  34745. + wlarc=''
  34746. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34747. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34748. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  34749. + ;;
  34750. + *)
  34751. + wlarc='${wl}'
  34752. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  34753. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34754. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  34755. + ;;
  34756. + esac
  34757. + fi
  34758. + hardcode_libdir_flag_spec='-R$libdir'
  34759. + hardcode_shlibpath_var=no
  34760. + case $host_os in
  34761. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  34762. + *)
  34763. + # The compiler driver will combine and reorder linker options,
  34764. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  34765. + # but is careful enough not to reorder.
  34766. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  34767. + if test "$GCC" = yes; then
  34768. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  34769. + else
  34770. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  34771. + fi
  34772. + ;;
  34773. + esac
  34774. + link_all_deplibs=yes
  34775. + ;;
  34776. -# Allow CC to be a program name with arguments.
  34777. -lt_save_CC="$CC"
  34778. -CC=${GCJ-"gcj"}
  34779. -compiler=$CC
  34780. -compiler_GCJ=$CC
  34781. -for cc_temp in $compiler""; do
  34782. - case $cc_temp in
  34783. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34784. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34785. - \-*) ;;
  34786. - *) break;;
  34787. - esac
  34788. -done
  34789. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34790. + sunos4*)
  34791. + if test "x$host_vendor" = xsequent; then
  34792. + # Use $CC to link under sequent, because it throws in some extra .o
  34793. + # files that make .init and .fini sections work.
  34794. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  34795. + else
  34796. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  34797. + fi
  34798. + hardcode_libdir_flag_spec='-L$libdir'
  34799. + hardcode_direct=yes
  34800. + hardcode_minus_L=yes
  34801. + hardcode_shlibpath_var=no
  34802. + ;;
  34803. + sysv4)
  34804. + case $host_vendor in
  34805. + sni)
  34806. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34807. + hardcode_direct=yes # is this really true???
  34808. + ;;
  34809. + siemens)
  34810. + ## LD is ld it makes a PLAMLIB
  34811. + ## CC just makes a GrossModule.
  34812. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  34813. + reload_cmds='$CC -r -o $output$reload_objs'
  34814. + hardcode_direct=no
  34815. + ;;
  34816. + motorola)
  34817. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34818. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  34819. + ;;
  34820. + esac
  34821. + runpath_var='LD_RUN_PATH'
  34822. + hardcode_shlibpath_var=no
  34823. + ;;
  34824. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  34825. -archive_cmds_need_lc_GCJ=no
  34826. + sysv4.3*)
  34827. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34828. + hardcode_shlibpath_var=no
  34829. + export_dynamic_flag_spec='-Bexport'
  34830. + ;;
  34831. -old_archive_cmds_GCJ=$old_archive_cmds
  34832. + sysv4*MP*)
  34833. + if test -d /usr/nec; then
  34834. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34835. + hardcode_shlibpath_var=no
  34836. + runpath_var=LD_RUN_PATH
  34837. + hardcode_runpath_var=yes
  34838. + ld_shlibs=yes
  34839. + fi
  34840. + ;;
  34841. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  34842. + no_undefined_flag='${wl}-z,text'
  34843. + archive_cmds_need_lc=no
  34844. + hardcode_shlibpath_var=no
  34845. + runpath_var='LD_RUN_PATH'
  34846. -lt_prog_compiler_no_builtin_flag_GCJ=
  34847. + if test "$GCC" = yes; then
  34848. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34849. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34850. + else
  34851. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34852. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34853. + fi
  34854. + ;;
  34855. -if test "$GCC" = yes; then
  34856. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  34857. + sysv5* | sco3.2v5* | sco5v6*)
  34858. + # Note: We can NOT use -z defs as we might desire, because we do not
  34859. + # link with -lc, and that would cause any symbols used from libc to
  34860. + # always be unresolved, which means just about no library would
  34861. + # ever link correctly. If we're not using GNU ld we use -z text
  34862. + # though, which does catch some bad symbols but isn't as heavy-handed
  34863. + # as -z defs.
  34864. + no_undefined_flag='${wl}-z,text'
  34865. + allow_undefined_flag='${wl}-z,nodefs'
  34866. + archive_cmds_need_lc=no
  34867. + hardcode_shlibpath_var=no
  34868. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  34869. + hardcode_libdir_separator=':'
  34870. + link_all_deplibs=yes
  34871. + export_dynamic_flag_spec='${wl}-Bexport'
  34872. + runpath_var='LD_RUN_PATH'
  34873. + if test "$GCC" = yes; then
  34874. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34875. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34876. + else
  34877. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34878. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34879. + fi
  34880. + ;;
  34881. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  34882. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  34883. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  34884. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34885. -else
  34886. - lt_cv_prog_compiler_rtti_exceptions=no
  34887. - ac_outfile=conftest.$ac_objext
  34888. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34889. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  34890. - # Insert the option either (1) after the last *FLAGS variable, or
  34891. - # (2) before a word containing "conftest.", or (3) at the end.
  34892. - # Note that $ac_compile itself does not contain backslashes and begins
  34893. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  34894. - # The option is referenced via a variable to avoid confusing sed.
  34895. - lt_compile=`echo "$ac_compile" | $SED \
  34896. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34897. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34898. - -e 's:$: $lt_compiler_flag:'`
  34899. - (eval echo "\"\$as_me:16743: $lt_compile\"" >&5)
  34900. - (eval "$lt_compile" 2>conftest.err)
  34901. - ac_status=$?
  34902. - cat conftest.err >&5
  34903. - echo "$as_me:16747: \$? = $ac_status" >&5
  34904. - if (exit $ac_status) && test -s "$ac_outfile"; then
  34905. - # The compiler can only warn and ignore the option if not recognized
  34906. - # So say no if there are warnings other than the usual output.
  34907. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34908. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34909. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  34910. - lt_cv_prog_compiler_rtti_exceptions=yes
  34911. - fi
  34912. - fi
  34913. - $rm conftest*
  34914. + uts4*)
  34915. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34916. + hardcode_libdir_flag_spec='-L$libdir'
  34917. + hardcode_shlibpath_var=no
  34918. + ;;
  34919. -fi
  34920. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  34921. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  34922. + *)
  34923. + ld_shlibs=no
  34924. + ;;
  34925. + esac
  34926. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  34927. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  34928. -else
  34929. - :
  34930. -fi
  34931. + if test x$host_vendor = xsni; then
  34932. + case $host in
  34933. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  34934. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  34935. + ;;
  34936. + esac
  34937. + fi
  34938. + fi
  34939. -fi
  34940. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  34941. +$as_echo "$ld_shlibs" >&6; }
  34942. +test "$ld_shlibs" = no && can_build_shared=no
  34943. -lt_prog_compiler_wl_GCJ=
  34944. -lt_prog_compiler_pic_GCJ=
  34945. -lt_prog_compiler_static_GCJ=
  34946. +with_gnu_ld=$with_gnu_ld
  34947. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  34948. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  34949. - if test "$GCC" = yes; then
  34950. - lt_prog_compiler_wl_GCJ='-Wl,'
  34951. - lt_prog_compiler_static_GCJ='-static'
  34952. - case $host_os in
  34953. - aix*)
  34954. - # All AIX code is PIC.
  34955. - if test "$host_cpu" = ia64; then
  34956. - # AIX 5 now supports IA64 processor
  34957. - lt_prog_compiler_static_GCJ='-Bstatic'
  34958. - fi
  34959. - ;;
  34960. - amigaos*)
  34961. - # FIXME: we need at least 68020 code to build shared libraries, but
  34962. - # adding the `-m68020' flag to GCC prevents building anything better,
  34963. - # like `-m68040'.
  34964. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  34965. - ;;
  34966. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  34967. - # PIC is the default for these OSes.
  34968. - ;;
  34969. - mingw* | cygwin* | pw32* | os2*)
  34970. - # This hack is so that the source file can tell whether it is being
  34971. - # built for inclusion in a dll (and should export symbols for example).
  34972. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  34973. - # (--disable-auto-import) libraries
  34974. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  34975. - ;;
  34976. - darwin* | rhapsody*)
  34977. - # PIC is the default on this platform
  34978. - # Common symbols not allowed in MH_DYLIB files
  34979. - lt_prog_compiler_pic_GCJ='-fno-common'
  34980. - ;;
  34981. - interix[3-9]*)
  34982. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  34983. - # Instead, we relocate shared libraries at runtime.
  34984. - ;;
  34985. - msdosdjgpp*)
  34986. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  34987. - # on systems that don't support them.
  34988. - lt_prog_compiler_can_build_shared_GCJ=no
  34989. - enable_shared=no
  34990. - ;;
  34991. - sysv4*MP*)
  34992. - if test -d /usr/nec; then
  34993. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  34994. - fi
  34995. - ;;
  34996. - hpux*)
  34997. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  34998. - # not for PA HP-UX.
  34999. - case $host_cpu in
  35000. - hppa*64*|ia64*)
  35001. - # +Z the default
  35002. - ;;
  35003. - *)
  35004. - lt_prog_compiler_pic_GCJ='-fPIC'
  35005. - ;;
  35006. - esac
  35007. - ;;
  35008. - *)
  35009. - lt_prog_compiler_pic_GCJ='-fPIC'
  35010. +
  35011. +
  35012. +
  35013. +#
  35014. +# Do we need to explicitly link libc?
  35015. +#
  35016. +case "x$archive_cmds_need_lc" in
  35017. +x|xyes)
  35018. + # Assume -lc should be added
  35019. + archive_cmds_need_lc=yes
  35020. +
  35021. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  35022. + case $archive_cmds in
  35023. + *'~'*)
  35024. + # FIXME: we may have to deal with multi-command sequences.
  35025. ;;
  35026. - esac
  35027. - else
  35028. - # PORTME Check for flag to pass linker flags through the system compiler.
  35029. - case $host_os in
  35030. - aix*)
  35031. - lt_prog_compiler_wl_GCJ='-Wl,'
  35032. - if test "$host_cpu" = ia64; then
  35033. - # AIX 5 now supports IA64 processor
  35034. - lt_prog_compiler_static_GCJ='-Bstatic'
  35035. + '$CC '*)
  35036. + # Test whether the compiler implicitly links with -lc since on some
  35037. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35038. + # to ld, don't add -lc before -lgcc.
  35039. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  35040. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  35041. + $RM conftest*
  35042. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35043. +
  35044. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  35045. + (eval $ac_compile) 2>&5
  35046. + ac_status=$?
  35047. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35048. + test $ac_status = 0; } 2>conftest.err; then
  35049. + soname=conftest
  35050. + lib=conftest
  35051. + libobjs=conftest.$ac_objext
  35052. + deplibs=
  35053. + wl=$lt_prog_compiler_wl
  35054. + pic_flag=$lt_prog_compiler_pic
  35055. + compiler_flags=-v
  35056. + linker_flags=-v
  35057. + verstring=
  35058. + output_objdir=.
  35059. + libname=conftest
  35060. + lt_save_allow_undefined_flag=$allow_undefined_flag
  35061. + allow_undefined_flag=
  35062. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  35063. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35064. + ac_status=$?
  35065. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35066. + test $ac_status = 0; }
  35067. + then
  35068. + archive_cmds_need_lc=no
  35069. + else
  35070. + archive_cmds_need_lc=yes
  35071. + fi
  35072. + allow_undefined_flag=$lt_save_allow_undefined_flag
  35073. else
  35074. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  35075. + cat conftest.err 1>&5
  35076. fi
  35077. + $RM conftest*
  35078. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  35079. +$as_echo "$archive_cmds_need_lc" >&6; }
  35080. ;;
  35081. - darwin*)
  35082. - # PIC is the default on this platform
  35083. - # Common symbols not allowed in MH_DYLIB files
  35084. - case $cc_basename in
  35085. - xlc*)
  35086. - lt_prog_compiler_pic_GCJ='-qnocommon'
  35087. - lt_prog_compiler_wl_GCJ='-Wl,'
  35088. - ;;
  35089. - esac
  35090. - ;;
  35091. + esac
  35092. + fi
  35093. + ;;
  35094. +esac
  35095. +
  35096. +
  35097. +
  35098. +
  35099. +
  35100. +
  35101. +
  35102. +
  35103. +
  35104. +
  35105. +
  35106. +
  35107. +
  35108. +
  35109. +
  35110. +
  35111. +
  35112. +
  35113. +
  35114. +
  35115. +
  35116. +
  35117. +
  35118. +
  35119. +
  35120. +
  35121. +
  35122. +
  35123. +
  35124. +
  35125. +
  35126. +
  35127. +
  35128. +
  35129. +
  35130. - mingw* | cygwin* | pw32* | os2*)
  35131. - # This hack is so that the source file can tell whether it is being
  35132. - # built for inclusion in a dll (and should export symbols for example).
  35133. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  35134. - ;;
  35135. - hpux9* | hpux10* | hpux11*)
  35136. - lt_prog_compiler_wl_GCJ='-Wl,'
  35137. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  35138. - # not for PA HP-UX.
  35139. - case $host_cpu in
  35140. - hppa*64*|ia64*)
  35141. - # +Z the default
  35142. - ;;
  35143. - *)
  35144. - lt_prog_compiler_pic_GCJ='+Z'
  35145. - ;;
  35146. - esac
  35147. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  35148. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  35149. - ;;
  35150. - irix5* | irix6* | nonstopux*)
  35151. - lt_prog_compiler_wl_GCJ='-Wl,'
  35152. - # PIC (with -KPIC) is the default.
  35153. - lt_prog_compiler_static_GCJ='-non_shared'
  35154. - ;;
  35155. - newsos6)
  35156. - lt_prog_compiler_pic_GCJ='-KPIC'
  35157. - lt_prog_compiler_static_GCJ='-Bstatic'
  35158. - ;;
  35159. - linux* | k*bsd*-gnu)
  35160. - case $cc_basename in
  35161. - icc* | ecc*)
  35162. - lt_prog_compiler_wl_GCJ='-Wl,'
  35163. - lt_prog_compiler_pic_GCJ='-KPIC'
  35164. - lt_prog_compiler_static_GCJ='-static'
  35165. - ;;
  35166. - pgcc* | pgf77* | pgf90* | pgf95*)
  35167. - # Portland Group compilers (*not* the Pentium gcc compiler,
  35168. - # which looks to be a dead project)
  35169. - lt_prog_compiler_wl_GCJ='-Wl,'
  35170. - lt_prog_compiler_pic_GCJ='-fpic'
  35171. - lt_prog_compiler_static_GCJ='-Bstatic'
  35172. - ;;
  35173. - ccc*)
  35174. - lt_prog_compiler_wl_GCJ='-Wl,'
  35175. - # All Alpha code is PIC.
  35176. - lt_prog_compiler_static_GCJ='-non_shared'
  35177. - ;;
  35178. - *)
  35179. - case `$CC -V 2>&1 | sed 5q` in
  35180. - *Sun\ C*)
  35181. - # Sun C 5.9
  35182. - lt_prog_compiler_pic_GCJ='-KPIC'
  35183. - lt_prog_compiler_static_GCJ='-Bstatic'
  35184. - lt_prog_compiler_wl_GCJ='-Wl,'
  35185. - ;;
  35186. - *Sun\ F*)
  35187. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  35188. - lt_prog_compiler_pic_GCJ='-KPIC'
  35189. - lt_prog_compiler_static_GCJ='-Bstatic'
  35190. - lt_prog_compiler_wl_GCJ=''
  35191. - ;;
  35192. - esac
  35193. - ;;
  35194. - esac
  35195. - ;;
  35196. - osf3* | osf4* | osf5*)
  35197. - lt_prog_compiler_wl_GCJ='-Wl,'
  35198. - # All OSF/1 code is PIC.
  35199. - lt_prog_compiler_static_GCJ='-non_shared'
  35200. - ;;
  35201. - rdos*)
  35202. - lt_prog_compiler_static_GCJ='-non_shared'
  35203. - ;;
  35204. - solaris*)
  35205. - lt_prog_compiler_pic_GCJ='-KPIC'
  35206. - lt_prog_compiler_static_GCJ='-Bstatic'
  35207. - case $cc_basename in
  35208. - f77* | f90* | f95*)
  35209. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  35210. - *)
  35211. - lt_prog_compiler_wl_GCJ='-Wl,';;
  35212. - esac
  35213. - ;;
  35214. - sunos4*)
  35215. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  35216. - lt_prog_compiler_pic_GCJ='-PIC'
  35217. - lt_prog_compiler_static_GCJ='-Bstatic'
  35218. - ;;
  35219. - sysv4 | sysv4.2uw2* | sysv4.3*)
  35220. - lt_prog_compiler_wl_GCJ='-Wl,'
  35221. - lt_prog_compiler_pic_GCJ='-KPIC'
  35222. - lt_prog_compiler_static_GCJ='-Bstatic'
  35223. - ;;
  35224. - sysv4*MP*)
  35225. - if test -d /usr/nec ;then
  35226. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  35227. - lt_prog_compiler_static_GCJ='-Bstatic'
  35228. - fi
  35229. - ;;
  35230. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  35231. - lt_prog_compiler_wl_GCJ='-Wl,'
  35232. - lt_prog_compiler_pic_GCJ='-KPIC'
  35233. - lt_prog_compiler_static_GCJ='-Bstatic'
  35234. - ;;
  35235. - unicos*)
  35236. - lt_prog_compiler_wl_GCJ='-Wl,'
  35237. - lt_prog_compiler_can_build_shared_GCJ=no
  35238. - ;;
  35239. - uts4*)
  35240. - lt_prog_compiler_pic_GCJ='-pic'
  35241. - lt_prog_compiler_static_GCJ='-Bstatic'
  35242. - ;;
  35243. - *)
  35244. - lt_prog_compiler_can_build_shared_GCJ=no
  35245. - ;;
  35246. - esac
  35247. - fi
  35248. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  35249. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  35250. -#
  35251. -# Check to make sure the PIC flag actually works.
  35252. -#
  35253. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  35254. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  35255. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  35256. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  35257. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35258. -else
  35259. - lt_prog_compiler_pic_works_GCJ=no
  35260. - ac_outfile=conftest.$ac_objext
  35261. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35262. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  35263. - # Insert the option either (1) after the last *FLAGS variable, or
  35264. - # (2) before a word containing "conftest.", or (3) at the end.
  35265. - # Note that $ac_compile itself does not contain backslashes and begins
  35266. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35267. - # The option is referenced via a variable to avoid confusing sed.
  35268. - lt_compile=`echo "$ac_compile" | $SED \
  35269. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35270. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35271. - -e 's:$: $lt_compiler_flag:'`
  35272. - (eval echo "\"\$as_me:17033: $lt_compile\"" >&5)
  35273. - (eval "$lt_compile" 2>conftest.err)
  35274. - ac_status=$?
  35275. - cat conftest.err >&5
  35276. - echo "$as_me:17037: \$? = $ac_status" >&5
  35277. - if (exit $ac_status) && test -s "$ac_outfile"; then
  35278. - # The compiler can only warn and ignore the option if not recognized
  35279. - # So say no if there are warnings other than the usual output.
  35280. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  35281. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35282. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  35283. - lt_prog_compiler_pic_works_GCJ=yes
  35284. - fi
  35285. - fi
  35286. - $rm conftest*
  35287. -fi
  35288. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  35289. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  35290. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  35291. - case $lt_prog_compiler_pic_GCJ in
  35292. - "" | " "*) ;;
  35293. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  35294. - esac
  35295. -else
  35296. - lt_prog_compiler_pic_GCJ=
  35297. - lt_prog_compiler_can_build_shared_GCJ=no
  35298. -fi
  35299. -fi
  35300. -case $host_os in
  35301. - # For platforms which do not support PIC, -DPIC is meaningless:
  35302. - *djgpp*)
  35303. - lt_prog_compiler_pic_GCJ=
  35304. - ;;
  35305. - *)
  35306. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  35307. - ;;
  35308. -esac
  35309. -#
  35310. -# Check to make sure the static flag actually works.
  35311. -#
  35312. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  35313. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  35314. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  35315. -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  35316. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35317. -else
  35318. - lt_prog_compiler_static_works_GCJ=no
  35319. - save_LDFLAGS="$LDFLAGS"
  35320. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  35321. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  35322. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  35323. - # The linker can only warn and ignore the option if not recognized
  35324. - # So say no if there are warnings
  35325. - if test -s conftest.err; then
  35326. - # Append any errors to the config.log.
  35327. - cat conftest.err 1>&5
  35328. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  35329. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35330. - if diff conftest.exp conftest.er2 >/dev/null; then
  35331. - lt_prog_compiler_static_works_GCJ=yes
  35332. - fi
  35333. - else
  35334. - lt_prog_compiler_static_works_GCJ=yes
  35335. - fi
  35336. - fi
  35337. - $rm conftest*
  35338. - LDFLAGS="$save_LDFLAGS"
  35339. -fi
  35340. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  35341. -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  35342. -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  35343. - :
  35344. -else
  35345. - lt_prog_compiler_static_GCJ=
  35346. -fi
  35347. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  35348. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  35349. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  35350. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35351. -else
  35352. - lt_cv_prog_compiler_c_o_GCJ=no
  35353. - $rm -r conftest 2>/dev/null
  35354. - mkdir conftest
  35355. - cd conftest
  35356. - mkdir out
  35357. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35358. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  35359. - # Insert the option either (1) after the last *FLAGS variable, or
  35360. - # (2) before a word containing "conftest.", or (3) at the end.
  35361. - # Note that $ac_compile itself does not contain backslashes and begins
  35362. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35363. - lt_compile=`echo "$ac_compile" | $SED \
  35364. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35365. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35366. - -e 's:$: $lt_compiler_flag:'`
  35367. - (eval echo "\"\$as_me:17137: $lt_compile\"" >&5)
  35368. - (eval "$lt_compile" 2>out/conftest.err)
  35369. - ac_status=$?
  35370. - cat out/conftest.err >&5
  35371. - echo "$as_me:17141: \$? = $ac_status" >&5
  35372. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  35373. - then
  35374. - # The compiler can only warn and ignore the option if not recognized
  35375. - # So say no if there are warnings
  35376. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  35377. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  35378. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  35379. - lt_cv_prog_compiler_c_o_GCJ=yes
  35380. - fi
  35381. - fi
  35382. - chmod u+w . 2>&5
  35383. - $rm conftest*
  35384. - # SGI C++ compiler will create directory out/ii_files/ for
  35385. - # template instantiation
  35386. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  35387. - $rm out/* && rmdir out
  35388. - cd ..
  35389. - rmdir conftest
  35390. - $rm conftest*
  35391. -fi
  35392. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  35393. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  35394. -hard_links="nottested"
  35395. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  35396. - # do not overwrite the value of need_locks provided by the user
  35397. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  35398. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  35399. - hard_links=yes
  35400. - $rm conftest*
  35401. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35402. - touch conftest.a
  35403. - ln conftest.a conftest.b 2>&5 || hard_links=no
  35404. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35405. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  35406. -echo "${ECHO_T}$hard_links" >&6; }
  35407. - if test "$hard_links" = no; then
  35408. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  35409. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  35410. - need_locks=warn
  35411. - fi
  35412. -else
  35413. - need_locks=no
  35414. -fi
  35415. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  35416. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  35417. - runpath_var=
  35418. - allow_undefined_flag_GCJ=
  35419. - enable_shared_with_static_runtimes_GCJ=no
  35420. - archive_cmds_GCJ=
  35421. - archive_expsym_cmds_GCJ=
  35422. - old_archive_From_new_cmds_GCJ=
  35423. - old_archive_from_expsyms_cmds_GCJ=
  35424. - export_dynamic_flag_spec_GCJ=
  35425. - whole_archive_flag_spec_GCJ=
  35426. - thread_safe_flag_spec_GCJ=
  35427. - hardcode_libdir_flag_spec_GCJ=
  35428. - hardcode_libdir_flag_spec_ld_GCJ=
  35429. - hardcode_libdir_separator_GCJ=
  35430. - hardcode_direct_GCJ=no
  35431. - hardcode_minus_L_GCJ=no
  35432. - hardcode_shlibpath_var_GCJ=unsupported
  35433. - link_all_deplibs_GCJ=unknown
  35434. - hardcode_automatic_GCJ=no
  35435. - module_cmds_GCJ=
  35436. - module_expsym_cmds_GCJ=
  35437. - always_export_symbols_GCJ=no
  35438. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  35439. - # include_expsyms should be a list of space-separated symbols to be *always*
  35440. - # included in the symbol list
  35441. - include_expsyms_GCJ=
  35442. - # exclude_expsyms can be an extended regexp of symbols to exclude
  35443. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  35444. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  35445. - # as well as any symbol that contains `d'.
  35446. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  35447. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  35448. - # platforms (ab)use it in PIC code, but their linkers get confused if
  35449. - # the symbol is explicitly referenced. Since portable code cannot
  35450. - # rely on this symbol name, it's probably fine to never include it in
  35451. - # preloaded symbol tables.
  35452. - extract_expsyms_cmds=
  35453. - # Just being paranoid about ensuring that cc_basename is set.
  35454. - for cc_temp in $compiler""; do
  35455. - case $cc_temp in
  35456. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  35457. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  35458. - \-*) ;;
  35459. - *) break;;
  35460. - esac
  35461. -done
  35462. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  35463. - case $host_os in
  35464. - cygwin* | mingw* | pw32*)
  35465. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  35466. - # When not using gcc, we currently assume that we are using
  35467. - # Microsoft Visual C++.
  35468. - if test "$GCC" != yes; then
  35469. - with_gnu_ld=no
  35470. - fi
  35471. - ;;
  35472. - interix*)
  35473. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  35474. - with_gnu_ld=yes
  35475. - ;;
  35476. - openbsd*)
  35477. - with_gnu_ld=no
  35478. - ;;
  35479. - esac
  35480. - ld_shlibs_GCJ=yes
  35481. - if test "$with_gnu_ld" = yes; then
  35482. - # If archive_cmds runs LD, not CC, wlarc should be empty
  35483. - wlarc='${wl}'
  35484. - # Set some defaults for GNU ld with shared library support. These
  35485. - # are reset later if shared libraries are not supported. Putting them
  35486. - # here allows them to be overridden if necessary.
  35487. - runpath_var=LD_RUN_PATH
  35488. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  35489. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  35490. - # ancient GNU ld didn't support --whole-archive et. al.
  35491. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  35492. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  35493. - else
  35494. - whole_archive_flag_spec_GCJ=
  35495. - fi
  35496. - supports_anon_versioning=no
  35497. - case `$LD -v 2>/dev/null` in
  35498. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  35499. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  35500. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  35501. - *\ 2.11.*) ;; # other 2.11 versions
  35502. - *) supports_anon_versioning=yes ;;
  35503. - esac
  35504. - # See if GNU ld supports shared libraries.
  35505. - case $host_os in
  35506. - aix3* | aix4* | aix5*)
  35507. - # On AIX/PPC, the GNU linker is very broken
  35508. - if test "$host_cpu" != ia64; then
  35509. - ld_shlibs_GCJ=no
  35510. - cat <<EOF 1>&2
  35511. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  35512. -*** to be unable to reliably create shared libraries on AIX.
  35513. -*** Therefore, libtool is disabling shared libraries support. If you
  35514. -*** really care for shared libraries, you may want to modify your PATH
  35515. -*** so that a non-GNU linker is found, and then restart.
  35516. -EOF
  35517. - fi
  35518. - ;;
  35519. - amigaos*)
  35520. - archive_cmds_GCJ='$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)'
  35521. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35522. - hardcode_minus_L_GCJ=yes
  35523. -
  35524. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  35525. - # that the semantics of dynamic libraries on AmigaOS, at least up
  35526. - # to version 4, is to share data among multiple programs linked
  35527. - # with the same dynamic library. Since this doesn't match the
  35528. - # behavior of shared libraries on other platforms, we can't use
  35529. - # them.
  35530. - ld_shlibs_GCJ=no
  35531. - ;;
  35532. - beos*)
  35533. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35534. - allow_undefined_flag_GCJ=unsupported
  35535. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  35536. - # support --undefined. This deserves some investigation. FIXME
  35537. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35538. - else
  35539. - ld_shlibs_GCJ=no
  35540. - fi
  35541. - ;;
  35542. - cygwin* | mingw* | pw32*)
  35543. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  35544. - # as there is no search path for DLLs.
  35545. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35546. - allow_undefined_flag_GCJ=unsupported
  35547. - always_export_symbols_GCJ=no
  35548. - enable_shared_with_static_runtimes_GCJ=yes
  35549. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  35550. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  35551. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  35552. - # If the export-symbols file already is a .def file (1st line
  35553. - # is EXPORTS), use it as is; otherwise, prepend...
  35554. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  35555. - cp $export_symbols $output_objdir/$soname.def;
  35556. - else
  35557. - echo EXPORTS > $output_objdir/$soname.def;
  35558. - cat $export_symbols >> $output_objdir/$soname.def;
  35559. - fi~
  35560. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  35561. - else
  35562. - ld_shlibs_GCJ=no
  35563. - fi
  35564. - ;;
  35565. - interix[3-9]*)
  35566. - hardcode_direct_GCJ=no
  35567. - hardcode_shlibpath_var_GCJ=no
  35568. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  35569. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35570. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  35571. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  35572. - # default) and relocated if they conflict, which is a slow very memory
  35573. - # consuming and fragmenting process. To avoid this, we pick a random,
  35574. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  35575. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  35576. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  35577. - archive_expsym_cmds_GCJ='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'
  35578. - ;;
  35579. - gnu* | linux* | k*bsd*-gnu)
  35580. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35581. - tmp_addflag=
  35582. - case $cc_basename,$host_cpu in
  35583. - pgcc*) # Portland Group C compiler
  35584. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  35585. - tmp_addflag=' $pic_flag'
  35586. - ;;
  35587. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  35588. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  35589. - tmp_addflag=' $pic_flag -Mnomain' ;;
  35590. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  35591. - tmp_addflag=' -i_dynamic' ;;
  35592. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  35593. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  35594. - ifc* | ifort*) # Intel Fortran compiler
  35595. - tmp_addflag=' -nofor_main' ;;
  35596. - esac
  35597. - case `$CC -V 2>&1 | sed 5q` in
  35598. - *Sun\ C*) # Sun C 5.9
  35599. - whole_archive_flag_spec_GCJ='${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'
  35600. - tmp_sharedflag='-G' ;;
  35601. - *Sun\ F*) # Sun Fortran 8.3
  35602. - tmp_sharedflag='-G' ;;
  35603. - *)
  35604. - tmp_sharedflag='-shared' ;;
  35605. - esac
  35606. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35607. - if test $supports_anon_versioning = yes; then
  35608. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  35609. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  35610. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  35611. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  35612. - fi
  35613. - link_all_deplibs_GCJ=no
  35614. - else
  35615. - ld_shlibs_GCJ=no
  35616. - fi
  35617. - ;;
  35618. - netbsd* | netbsdelf*-gnu)
  35619. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35620. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  35621. - wlarc=
  35622. - else
  35623. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35624. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35625. - fi
  35626. - ;;
  35627. - solaris*)
  35628. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  35629. - ld_shlibs_GCJ=no
  35630. - cat <<EOF 1>&2
  35631. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  35632. -*** create shared libraries on Solaris systems. Therefore, libtool
  35633. -*** is disabling shared libraries support. We urge you to upgrade GNU
  35634. -*** binutils to release 2.9.1 or newer. Another option is to modify
  35635. -*** your PATH or compiler configuration so that the native linker is
  35636. -*** used, and then restart.
  35637. -EOF
  35638. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35639. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35640. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35641. - else
  35642. - ld_shlibs_GCJ=no
  35643. - fi
  35644. - ;;
  35645. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  35646. - case `$LD -v 2>&1` in
  35647. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  35648. - ld_shlibs_GCJ=no
  35649. - cat <<_LT_EOF 1>&2
  35650. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  35651. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  35652. -*** is disabling shared libraries support. We urge you to upgrade GNU
  35653. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  35654. -*** your PATH or compiler configuration so that the native linker is
  35655. -*** used, and then restart.
  35656. -_LT_EOF
  35657. - ;;
  35658. - *)
  35659. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35660. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  35661. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  35662. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  35663. - else
  35664. - ld_shlibs_GCJ=no
  35665. - fi
  35666. - ;;
  35667. - esac
  35668. - ;;
  35669. - sunos4*)
  35670. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35671. - wlarc=
  35672. - hardcode_direct_GCJ=yes
  35673. - hardcode_shlibpath_var_GCJ=no
  35674. - ;;
  35675. - *)
  35676. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35677. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35678. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35679. - else
  35680. - ld_shlibs_GCJ=no
  35681. - fi
  35682. - ;;
  35683. - esac
  35684. - if test "$ld_shlibs_GCJ" = no; then
  35685. - runpath_var=
  35686. - hardcode_libdir_flag_spec_GCJ=
  35687. - export_dynamic_flag_spec_GCJ=
  35688. - whole_archive_flag_spec_GCJ=
  35689. - fi
  35690. - else
  35691. - # PORTME fill in a description of your system's linker (not GNU ld)
  35692. - case $host_os in
  35693. - aix3*)
  35694. - allow_undefined_flag_GCJ=unsupported
  35695. - always_export_symbols_GCJ=yes
  35696. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  35697. - # Note: this linker hardcodes the directories in LIBPATH if there
  35698. - # are no directories specified by -L.
  35699. - hardcode_minus_L_GCJ=yes
  35700. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  35701. - # Neither direct hardcoding nor static linking is supported with a
  35702. - # broken collect2.
  35703. - hardcode_direct_GCJ=unsupported
  35704. - fi
  35705. - ;;
  35706. - aix4* | aix5*)
  35707. - if test "$host_cpu" = ia64; then
  35708. - # On IA64, the linker does run time linking by default, so we don't
  35709. - # have to do anything special.
  35710. - aix_use_runtimelinking=no
  35711. - exp_sym_flag='-Bexport'
  35712. - no_entry_flag=""
  35713. - else
  35714. - # If we're using GNU nm, then we don't want the "-C" option.
  35715. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  35716. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  35717. - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  35718. - else
  35719. - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  35720. - fi
  35721. - aix_use_runtimelinking=no
  35722. - # Test if we are trying to use run time linking or normal
  35723. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  35724. - # need to do runtime linking.
  35725. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  35726. - for ld_flag in $LDFLAGS; do
  35727. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  35728. - aix_use_runtimelinking=yes
  35729. - break
  35730. - fi
  35731. - done
  35732. - ;;
  35733. - esac
  35734. - exp_sym_flag='-bexport'
  35735. - no_entry_flag='-bnoentry'
  35736. - fi
  35737. - # When large executables or shared objects are built, AIX ld can
  35738. - # have problems creating the table of contents. If linking a library
  35739. - # or program results in "error TOC overflow" add -mminimal-toc to
  35740. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  35741. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  35742. - archive_cmds_GCJ=''
  35743. - hardcode_direct_GCJ=yes
  35744. - hardcode_libdir_separator_GCJ=':'
  35745. - link_all_deplibs_GCJ=yes
  35746. - if test "$GCC" = yes; then
  35747. - case $host_os in aix4.[012]|aix4.[012].*)
  35748. - # We only want to do this on AIX 4.2 and lower, the check
  35749. - # below for broken collect2 doesn't work under 4.3+
  35750. - collect2name=`${CC} -print-prog-name=collect2`
  35751. - if test -f "$collect2name" && \
  35752. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  35753. - then
  35754. - # We have reworked collect2
  35755. - :
  35756. - else
  35757. - # We have old collect2
  35758. - hardcode_direct_GCJ=unsupported
  35759. - # It fails to find uninstalled libraries when the uninstalled
  35760. - # path is not listed in the libpath. Setting hardcode_minus_L
  35761. - # to unsupported forces relinking
  35762. - hardcode_minus_L_GCJ=yes
  35763. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35764. - hardcode_libdir_separator_GCJ=
  35765. - fi
  35766. - ;;
  35767. - esac
  35768. - shared_flag='-shared'
  35769. - if test "$aix_use_runtimelinking" = yes; then
  35770. - shared_flag="$shared_flag "'${wl}-G'
  35771. - fi
  35772. - else
  35773. - # not using gcc
  35774. - if test "$host_cpu" = ia64; then
  35775. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  35776. - # chokes on -Wl,-G. The following line is correct:
  35777. - shared_flag='-G'
  35778. - else
  35779. - if test "$aix_use_runtimelinking" = yes; then
  35780. - shared_flag='${wl}-G'
  35781. - else
  35782. - shared_flag='${wl}-bM:SRE'
  35783. - fi
  35784. - fi
  35785. - fi
  35786. - # It seems that -bexpall does not export symbols beginning with
  35787. - # underscore (_), so it is better to generate a list of symbols to export.
  35788. - always_export_symbols_GCJ=yes
  35789. - if test "$aix_use_runtimelinking" = yes; then
  35790. - # Warning - without using the other runtime loading flags (-brtl),
  35791. - # -berok will link without error, but may produce a broken library.
  35792. - allow_undefined_flag_GCJ='-berok'
  35793. - # Determine the default libpath from the value encoded in an empty executable.
  35794. - cat >conftest.$ac_ext <<_ACEOF
  35795. -/* confdefs.h. */
  35796. -_ACEOF
  35797. -cat confdefs.h >>conftest.$ac_ext
  35798. -cat >>conftest.$ac_ext <<_ACEOF
  35799. -/* end confdefs.h. */
  35800. -int
  35801. -main ()
  35802. -{
  35803. - ;
  35804. - return 0;
  35805. -}
  35806. -_ACEOF
  35807. -rm -f conftest.$ac_objext conftest$ac_exeext
  35808. -if { (ac_try="$ac_link"
  35809. -case "(($ac_try" in
  35810. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35811. - *) ac_try_echo=$ac_try;;
  35812. -esac
  35813. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35814. - (eval "$ac_link") 2>conftest.er1
  35815. - ac_status=$?
  35816. - grep -v '^ *+' conftest.er1 >conftest.err
  35817. - rm -f conftest.er1
  35818. - cat conftest.err >&5
  35819. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35820. - (exit $ac_status); } && {
  35821. - test -z "$ac_c_werror_flag" ||
  35822. - test ! -s conftest.err
  35823. - } && test -s conftest$ac_exeext &&
  35824. - $as_test_x conftest$ac_exeext; then
  35825. -lt_aix_libpath_sed='
  35826. - /Import File Strings/,/^$/ {
  35827. - /^0/ {
  35828. - s/^0 *\(.*\)$/\1/
  35829. - p
  35830. - }
  35831. - }'
  35832. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35833. -# Check for a 64-bit object if we didn't find anything.
  35834. -if test -z "$aix_libpath"; then
  35835. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35836. -fi
  35837. -else
  35838. - echo "$as_me: failed program was:" >&5
  35839. -sed 's/^/| /' conftest.$ac_ext >&5
  35840. -fi
  35841. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35842. - conftest$ac_exeext conftest.$ac_ext
  35843. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35844. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  35845. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  35846. - else
  35847. - if test "$host_cpu" = ia64; then
  35848. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  35849. - allow_undefined_flag_GCJ="-z nodefs"
  35850. - archive_expsym_cmds_GCJ="\$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"
  35851. - else
  35852. - # Determine the default libpath from the value encoded in an empty executable.
  35853. - cat >conftest.$ac_ext <<_ACEOF
  35854. -/* confdefs.h. */
  35855. -_ACEOF
  35856. -cat confdefs.h >>conftest.$ac_ext
  35857. -cat >>conftest.$ac_ext <<_ACEOF
  35858. -/* end confdefs.h. */
  35859. -int
  35860. -main ()
  35861. -{
  35862. - ;
  35863. - return 0;
  35864. -}
  35865. -_ACEOF
  35866. -rm -f conftest.$ac_objext conftest$ac_exeext
  35867. -if { (ac_try="$ac_link"
  35868. -case "(($ac_try" in
  35869. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35870. - *) ac_try_echo=$ac_try;;
  35871. -esac
  35872. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35873. - (eval "$ac_link") 2>conftest.er1
  35874. - ac_status=$?
  35875. - grep -v '^ *+' conftest.er1 >conftest.err
  35876. - rm -f conftest.er1
  35877. - cat conftest.err >&5
  35878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35879. - (exit $ac_status); } && {
  35880. - test -z "$ac_c_werror_flag" ||
  35881. - test ! -s conftest.err
  35882. - } && test -s conftest$ac_exeext &&
  35883. - $as_test_x conftest$ac_exeext; then
  35884. -lt_aix_libpath_sed='
  35885. - /Import File Strings/,/^$/ {
  35886. - /^0/ {
  35887. - s/^0 *\(.*\)$/\1/
  35888. - p
  35889. - }
  35890. - }'
  35891. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35892. -# Check for a 64-bit object if we didn't find anything.
  35893. -if test -z "$aix_libpath"; then
  35894. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35895. -fi
  35896. -else
  35897. - echo "$as_me: failed program was:" >&5
  35898. -sed 's/^/| /' conftest.$ac_ext >&5
  35899. -fi
  35900. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35901. - conftest$ac_exeext conftest.$ac_ext
  35902. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35903. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  35904. - # Warning - without using the other run time loading flags,
  35905. - # -berok will link without error, but may produce a broken library.
  35906. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  35907. - allow_undefined_flag_GCJ=' ${wl}-berok'
  35908. - # Exported symbols can be pulled into shared objects from archives
  35909. - whole_archive_flag_spec_GCJ='$convenience'
  35910. - archive_cmds_need_lc_GCJ=yes
  35911. - # This is similar to how AIX traditionally builds its shared libraries.
  35912. - archive_expsym_cmds_GCJ="\$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'
  35913. - fi
  35914. - fi
  35915. - ;;
  35916. - amigaos*)
  35917. - archive_cmds_GCJ='$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)'
  35918. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35919. - hardcode_minus_L_GCJ=yes
  35920. - # see comment about different semantics on the GNU ld section
  35921. - ld_shlibs_GCJ=no
  35922. - ;;
  35923. - bsdi[45]*)
  35924. - export_dynamic_flag_spec_GCJ=-rdynamic
  35925. - ;;
  35926. - cygwin* | mingw* | pw32*)
  35927. - # When not using gcc, we currently assume that we are using
  35928. - # Microsoft Visual C++.
  35929. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  35930. - # no search path for DLLs.
  35931. - hardcode_libdir_flag_spec_GCJ=' '
  35932. - allow_undefined_flag_GCJ=unsupported
  35933. - # Tell ltmain to make .lib files, not .a files.
  35934. - libext=lib
  35935. - # Tell ltmain to make .dll files, not .so files.
  35936. - shrext_cmds=".dll"
  35937. - # FIXME: Setting linknames here is a bad hack.
  35938. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  35939. - # The linker will automatically build a .lib file if we build a DLL.
  35940. - old_archive_From_new_cmds_GCJ='true'
  35941. - # FIXME: Should let the user specify the lib program.
  35942. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  35943. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  35944. - enable_shared_with_static_runtimes_GCJ=yes
  35945. - ;;
  35946. - darwin* | rhapsody*)
  35947. - case $host_os in
  35948. - rhapsody* | darwin1.[012])
  35949. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  35950. - ;;
  35951. - *) # Darwin 1.3 on
  35952. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  35953. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35954. - else
  35955. - case ${MACOSX_DEPLOYMENT_TARGET} in
  35956. - 10.[012])
  35957. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35958. - ;;
  35959. - 10.*)
  35960. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  35961. - ;;
  35962. - esac
  35963. - fi
  35964. - ;;
  35965. - esac
  35966. - archive_cmds_need_lc_GCJ=no
  35967. - hardcode_direct_GCJ=no
  35968. - hardcode_automatic_GCJ=yes
  35969. - hardcode_shlibpath_var_GCJ=unsupported
  35970. - whole_archive_flag_spec_GCJ=''
  35971. - link_all_deplibs_GCJ=yes
  35972. - if test "$GCC" = yes ; then
  35973. - output_verbose_link_cmd='echo'
  35974. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  35975. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35976. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35977. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  35978. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  35979. - else
  35980. - case $cc_basename in
  35981. - xlc*)
  35982. - output_verbose_link_cmd='echo'
  35983. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  35984. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35985. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35986. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  35987. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  35988. - ;;
  35989. - *)
  35990. - ld_shlibs_GCJ=no
  35991. - ;;
  35992. - esac
  35993. - fi
  35994. - ;;
  35995. - dgux*)
  35996. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35997. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35998. - hardcode_shlibpath_var_GCJ=no
  35999. - ;;
  36000. - freebsd1*)
  36001. - ld_shlibs_GCJ=no
  36002. - ;;
  36003. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  36004. - # support. Future versions do this automatically, but an explicit c++rt0.o
  36005. - # does not break anything, and helps significantly (at the cost of a little
  36006. - # extra space).
  36007. - freebsd2.2*)
  36008. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  36009. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36010. - hardcode_direct_GCJ=yes
  36011. - hardcode_shlibpath_var_GCJ=no
  36012. - ;;
  36013. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  36014. - freebsd2*)
  36015. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36016. - hardcode_direct_GCJ=yes
  36017. - hardcode_minus_L_GCJ=yes
  36018. - hardcode_shlibpath_var_GCJ=no
  36019. - ;;
  36020. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  36021. - freebsd* | dragonfly*)
  36022. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  36023. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36024. - hardcode_direct_GCJ=yes
  36025. - hardcode_shlibpath_var_GCJ=no
  36026. - ;;
  36027. - hpux9*)
  36028. - if test "$GCC" = yes; then
  36029. - archive_cmds_GCJ='$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'
  36030. - else
  36031. - archive_cmds_GCJ='$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'
  36032. - fi
  36033. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  36034. - hardcode_libdir_separator_GCJ=:
  36035. - hardcode_direct_GCJ=yes
  36036. - # hardcode_minus_L: Not really in the search PATH,
  36037. - # but as the default location of the library.
  36038. - hardcode_minus_L_GCJ=yes
  36039. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36040. - ;;
  36041. - hpux10*)
  36042. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  36043. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36044. - else
  36045. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  36046. - fi
  36047. - if test "$with_gnu_ld" = no; then
  36048. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  36049. - hardcode_libdir_separator_GCJ=:
  36050. - hardcode_direct_GCJ=yes
  36051. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36052. - # hardcode_minus_L: Not really in the search PATH,
  36053. - # but as the default location of the library.
  36054. - hardcode_minus_L_GCJ=yes
  36055. - fi
  36056. - ;;
  36057. - hpux11*)
  36058. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  36059. - case $host_cpu in
  36060. - hppa*64*)
  36061. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36062. - ;;
  36063. - ia64*)
  36064. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  36065. - ;;
  36066. - *)
  36067. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36068. - ;;
  36069. - esac
  36070. - else
  36071. - case $host_cpu in
  36072. - hppa*64*)
  36073. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36074. - ;;
  36075. - ia64*)
  36076. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  36077. - ;;
  36078. - *)
  36079. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36080. - ;;
  36081. - esac
  36082. - fi
  36083. - if test "$with_gnu_ld" = no; then
  36084. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  36085. - hardcode_libdir_separator_GCJ=:
  36086. - case $host_cpu in
  36087. - hppa*64*|ia64*)
  36088. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  36089. - hardcode_direct_GCJ=no
  36090. - hardcode_shlibpath_var_GCJ=no
  36091. - ;;
  36092. - *)
  36093. - hardcode_direct_GCJ=yes
  36094. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36095. - # hardcode_minus_L: Not really in the search PATH,
  36096. - # but as the default location of the library.
  36097. - hardcode_minus_L_GCJ=yes
  36098. - ;;
  36099. - esac
  36100. - fi
  36101. - ;;
  36102. - irix5* | irix6* | nonstopux*)
  36103. - if test "$GCC" = yes; then
  36104. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36105. - else
  36106. - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36107. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  36108. - fi
  36109. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36110. - hardcode_libdir_separator_GCJ=:
  36111. - link_all_deplibs_GCJ=yes
  36112. - ;;
  36113. - netbsd* | netbsdelf*-gnu)
  36114. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36115. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  36116. - else
  36117. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  36118. - fi
  36119. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36120. - hardcode_direct_GCJ=yes
  36121. - hardcode_shlibpath_var_GCJ=no
  36122. - ;;
  36123. - newsos6)
  36124. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36125. - hardcode_direct_GCJ=yes
  36126. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36127. - hardcode_libdir_separator_GCJ=:
  36128. - hardcode_shlibpath_var_GCJ=no
  36129. - ;;
  36130. - openbsd*)
  36131. - if test -f /usr/libexec/ld.so; then
  36132. - hardcode_direct_GCJ=yes
  36133. - hardcode_shlibpath_var_GCJ=no
  36134. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36135. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36136. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  36137. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  36138. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36139. - else
  36140. - case $host_os in
  36141. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  36142. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36143. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36144. - ;;
  36145. - *)
  36146. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36147. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  36148. - ;;
  36149. - esac
  36150. - fi
  36151. - else
  36152. - ld_shlibs_GCJ=no
  36153. - fi
  36154. - ;;
  36155. - os2*)
  36156. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36157. - hardcode_minus_L_GCJ=yes
  36158. - allow_undefined_flag_GCJ=unsupported
  36159. - archive_cmds_GCJ='$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'
  36160. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  36161. - ;;
  36162. - osf3*)
  36163. - if test "$GCC" = yes; then
  36164. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  36165. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36166. - else
  36167. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  36168. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36169. - fi
  36170. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36171. - hardcode_libdir_separator_GCJ=:
  36172. - ;;
  36173. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  36174. - if test "$GCC" = yes; then
  36175. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  36176. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36177. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36178. - else
  36179. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  36180. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36181. - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  36182. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  36183. - # Both c and cxx compiler support -rpath directly
  36184. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  36185. - fi
  36186. - hardcode_libdir_separator_GCJ=:
  36187. - ;;
  36188. - solaris*)
  36189. - no_undefined_flag_GCJ=' -z text'
  36190. - if test "$GCC" = yes; then
  36191. - wlarc='${wl}'
  36192. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36193. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36194. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  36195. - else
  36196. - wlarc=''
  36197. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36198. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36199. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  36200. - fi
  36201. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36202. - hardcode_shlibpath_var_GCJ=no
  36203. - case $host_os in
  36204. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  36205. - *)
  36206. - # The compiler driver will combine and reorder linker options,
  36207. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  36208. - # but is careful enough not to reorder.
  36209. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  36210. - if test "$GCC" = yes; then
  36211. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  36212. - else
  36213. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  36214. - fi
  36215. - ;;
  36216. - esac
  36217. - link_all_deplibs_GCJ=yes
  36218. - ;;
  36219. - sunos4*)
  36220. - if test "x$host_vendor" = xsequent; then
  36221. - # Use $CC to link under sequent, because it throws in some extra .o
  36222. - # files that make .init and .fini sections work.
  36223. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  36224. - else
  36225. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  36226. - fi
  36227. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36228. - hardcode_direct_GCJ=yes
  36229. - hardcode_minus_L_GCJ=yes
  36230. - hardcode_shlibpath_var_GCJ=no
  36231. - ;;
  36232. - sysv4)
  36233. - case $host_vendor in
  36234. - sni)
  36235. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36236. - hardcode_direct_GCJ=yes # is this really true???
  36237. - ;;
  36238. - siemens)
  36239. - ## LD is ld it makes a PLAMLIB
  36240. - ## CC just makes a GrossModule.
  36241. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  36242. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  36243. - hardcode_direct_GCJ=no
  36244. - ;;
  36245. - motorola)
  36246. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36247. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  36248. - ;;
  36249. - esac
  36250. - runpath_var='LD_RUN_PATH'
  36251. - hardcode_shlibpath_var_GCJ=no
  36252. - ;;
  36253. - sysv4.3*)
  36254. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36255. - hardcode_shlibpath_var_GCJ=no
  36256. - export_dynamic_flag_spec_GCJ='-Bexport'
  36257. - ;;
  36258. - sysv4*MP*)
  36259. - if test -d /usr/nec; then
  36260. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36261. - hardcode_shlibpath_var_GCJ=no
  36262. - runpath_var=LD_RUN_PATH
  36263. - hardcode_runpath_var=yes
  36264. - ld_shlibs_GCJ=yes
  36265. - fi
  36266. - ;;
  36267. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  36268. - no_undefined_flag_GCJ='${wl}-z,text'
  36269. - archive_cmds_need_lc_GCJ=no
  36270. - hardcode_shlibpath_var_GCJ=no
  36271. - runpath_var='LD_RUN_PATH'
  36272. - if test "$GCC" = yes; then
  36273. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36274. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36275. - else
  36276. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36277. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36278. - fi
  36279. - ;;
  36280. - sysv5* | sco3.2v5* | sco5v6*)
  36281. - # Note: We can NOT use -z defs as we might desire, because we do not
  36282. - # link with -lc, and that would cause any symbols used from libc to
  36283. - # always be unresolved, which means just about no library would
  36284. - # ever link correctly. If we're not using GNU ld we use -z text
  36285. - # though, which does catch some bad symbols but isn't as heavy-handed
  36286. - # as -z defs.
  36287. - no_undefined_flag_GCJ='${wl}-z,text'
  36288. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  36289. - archive_cmds_need_lc_GCJ=no
  36290. - hardcode_shlibpath_var_GCJ=no
  36291. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  36292. - hardcode_libdir_separator_GCJ=':'
  36293. - link_all_deplibs_GCJ=yes
  36294. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  36295. - runpath_var='LD_RUN_PATH'
  36296. - if test "$GCC" = yes; then
  36297. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36298. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36299. - else
  36300. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36301. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36302. - fi
  36303. - ;;
  36304. - uts4*)
  36305. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36306. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36307. - hardcode_shlibpath_var_GCJ=no
  36308. - ;;
  36309. - *)
  36310. - ld_shlibs_GCJ=no
  36311. - ;;
  36312. - esac
  36313. - fi
  36314. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  36315. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  36316. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  36317. -#
  36318. -# Do we need to explicitly link libc?
  36319. -#
  36320. -case "x$archive_cmds_need_lc_GCJ" in
  36321. -x|xyes)
  36322. - # Assume -lc should be added
  36323. - archive_cmds_need_lc_GCJ=yes
  36324. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  36325. - case $archive_cmds_GCJ in
  36326. - *'~'*)
  36327. - # FIXME: we may have to deal with multi-command sequences.
  36328. - ;;
  36329. - '$CC '*)
  36330. - # Test whether the compiler implicitly links with -lc since on some
  36331. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  36332. - # to ld, don't add -lc before -lgcc.
  36333. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  36334. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  36335. - $rm conftest*
  36336. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  36337. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36338. - (eval $ac_compile) 2>&5
  36339. - ac_status=$?
  36340. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36341. - (exit $ac_status); } 2>conftest.err; then
  36342. - soname=conftest
  36343. - lib=conftest
  36344. - libobjs=conftest.$ac_objext
  36345. - deplibs=
  36346. - wl=$lt_prog_compiler_wl_GCJ
  36347. - pic_flag=$lt_prog_compiler_pic_GCJ
  36348. - compiler_flags=-v
  36349. - linker_flags=-v
  36350. - verstring=
  36351. - output_objdir=.
  36352. - libname=conftest
  36353. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  36354. - allow_undefined_flag_GCJ=
  36355. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  36356. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  36357. - ac_status=$?
  36358. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36359. - (exit $ac_status); }
  36360. - then
  36361. - archive_cmds_need_lc_GCJ=no
  36362. - else
  36363. - archive_cmds_need_lc_GCJ=yes
  36364. - fi
  36365. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  36366. - else
  36367. - cat conftest.err 1>&5
  36368. - fi
  36369. - $rm conftest*
  36370. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  36371. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  36372. - ;;
  36373. - esac
  36374. - fi
  36375. - ;;
  36376. -esac
  36377. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  36378. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  36379. +
  36380. +
  36381. +
  36382. +
  36383. +
  36384. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  36385. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  36386. +
  36387. +if test "$GCC" = yes; then
  36388. + case $host_os in
  36389. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  36390. + *) lt_awk_arg="/^libraries:/" ;;
  36391. + esac
  36392. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36393. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  36394. + # if the path contains ";" then we assume it to be the separator
  36395. + # otherwise default to the standard path separator (i.e. ":") - it is
  36396. + # assumed that no part of a normal pathname contains ";" but that should
  36397. + # okay in the real world where ";" in dirpaths is itself problematic.
  36398. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  36399. + else
  36400. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36401. + fi
  36402. + # Ok, now we have the path, separated by spaces, we can step through it
  36403. + # and add multilib dir if necessary.
  36404. + lt_tmp_lt_search_path_spec=
  36405. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  36406. + for lt_sys_path in $lt_search_path_spec; do
  36407. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  36408. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  36409. + else
  36410. + test -d "$lt_sys_path" && \
  36411. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  36412. + fi
  36413. + done
  36414. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  36415. +BEGIN {RS=" "; FS="/|\n";} {
  36416. + lt_foo="";
  36417. + lt_count=0;
  36418. + for (lt_i = NF; lt_i > 0; lt_i--) {
  36419. + if ($lt_i != "" && $lt_i != ".") {
  36420. + if ($lt_i == "..") {
  36421. + lt_count++;
  36422. + } else {
  36423. + if (lt_count == 0) {
  36424. + lt_foo="/" $lt_i lt_foo;
  36425. + } else {
  36426. + lt_count--;
  36427. + }
  36428. + }
  36429. + }
  36430. + }
  36431. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  36432. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  36433. +}'`
  36434. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  36435. +else
  36436. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36437. +fi
  36438. library_names_spec=
  36439. libname_spec='lib$name'
  36440. soname_spec=
  36441. @@ -18249,7 +9257,6 @@
  36442. version_type=none
  36443. dynamic_linker="$host_os ld.so"
  36444. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  36445. -
  36446. need_lib_prefix=unknown
  36447. hardcode_into_libs=no
  36448. @@ -18267,7 +9274,7 @@
  36449. soname_spec='${libname}${release}${shared_ext}$major'
  36450. ;;
  36451. -aix4* | aix5*)
  36452. +aix[4-9]*)
  36453. version_type=linux
  36454. need_lib_prefix=no
  36455. need_version=no
  36456. @@ -18286,7 +9293,7 @@
  36457. aix4 | aix4.[01] | aix4.[01].*)
  36458. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  36459. echo ' yes '
  36460. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  36461. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  36462. :
  36463. else
  36464. can_build_shared=no
  36465. @@ -18312,9 +9319,18 @@
  36466. ;;
  36467. amigaos*)
  36468. - library_names_spec='$libname.ixlibrary $libname.a'
  36469. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36470. - 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'
  36471. + case $host_cpu in
  36472. + powerpc)
  36473. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  36474. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  36475. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36476. + ;;
  36477. + m68k)
  36478. + library_names_spec='$libname.ixlibrary $libname.a'
  36479. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36480. + 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'
  36481. + ;;
  36482. + esac
  36483. ;;
  36484. beos*)
  36485. @@ -18337,25 +9353,28 @@
  36486. # libtool to hard-code these into programs
  36487. ;;
  36488. -cygwin* | mingw* | pw32*)
  36489. +cygwin* | mingw* | pw32* | cegcc*)
  36490. version_type=windows
  36491. shrext_cmds=".dll"
  36492. need_version=no
  36493. need_lib_prefix=no
  36494. case $GCC,$host_os in
  36495. - yes,cygwin* | yes,mingw* | yes,pw32*)
  36496. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  36497. library_names_spec='$libname.dll.a'
  36498. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36499. postinstall_cmds='base_file=`basename \${file}`~
  36500. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  36501. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  36502. dldir=$destdir/`dirname \$dlpath`~
  36503. test -d \$dldir || mkdir -p \$dldir~
  36504. $install_prog $dir/$dlname \$dldir/$dlname~
  36505. - chmod a+x \$dldir/$dlname'
  36506. + chmod a+x \$dldir/$dlname~
  36507. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  36508. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  36509. + fi'
  36510. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36511. dlpath=$dir/\$dldll~
  36512. - $rm \$dlpath'
  36513. + $RM \$dlpath'
  36514. shlibpath_overrides_runpath=yes
  36515. case $host_os in
  36516. @@ -18364,20 +9383,20 @@
  36517. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36518. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36519. ;;
  36520. - mingw*)
  36521. + mingw* | cegcc*)
  36522. # MinGW DLLs use traditional 'lib' prefix
  36523. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36524. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36525. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  36526. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36527. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  36528. # It is most probably a Windows format PATH printed by
  36529. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36530. # path with ; separators, and with drive letters. We can handle the
  36531. # drive letters (cygwin fileutils understands them), so leave them,
  36532. # especially as we might pass files found there to a mingw objdump,
  36533. # which wouldn't understand a cygwinified path. Ahh.
  36534. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36535. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36536. else
  36537. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36538. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36539. fi
  36540. ;;
  36541. pw32*)
  36542. @@ -18401,12 +9420,13 @@
  36543. version_type=darwin
  36544. need_lib_prefix=no
  36545. need_version=no
  36546. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36547. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36548. soname_spec='${libname}${release}${major}$shared_ext'
  36549. shlibpath_overrides_runpath=yes
  36550. shlibpath_var=DYLD_LIBRARY_PATH
  36551. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  36552. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  36553. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36554. ;;
  36555. @@ -18499,18 +9519,18 @@
  36556. fi
  36557. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36558. ;;
  36559. - hppa*64*)
  36560. - shrext_cmds='.sl'
  36561. - hardcode_into_libs=yes
  36562. - dynamic_linker="$host_os dld.sl"
  36563. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36564. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36565. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36566. - soname_spec='${libname}${release}${shared_ext}$major'
  36567. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36568. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36569. - ;;
  36570. - *)
  36571. + hppa*64*)
  36572. + shrext_cmds='.sl'
  36573. + hardcode_into_libs=yes
  36574. + dynamic_linker="$host_os dld.sl"
  36575. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36576. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36577. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36578. + soname_spec='${libname}${release}${shared_ext}$major'
  36579. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36580. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36581. + ;;
  36582. + *)
  36583. shrext_cmds='.sl'
  36584. dynamic_linker="$host_os dld.sl"
  36585. shlibpath_var=SHLIB_PATH
  36586. @@ -18578,7 +9598,7 @@
  36587. ;;
  36588. # This must be Linux ELF.
  36589. -linux* | k*bsd*-gnu)
  36590. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  36591. version_type=linux
  36592. need_lib_prefix=no
  36593. need_version=no
  36594. @@ -18587,6 +9607,32 @@
  36595. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36596. shlibpath_var=LD_LIBRARY_PATH
  36597. shlibpath_overrides_runpath=no
  36598. + # Some binutils ld are patched to set DT_RUNPATH
  36599. + save_LDFLAGS=$LDFLAGS
  36600. + save_libdir=$libdir
  36601. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  36602. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  36603. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36604. +/* end confdefs.h. */
  36605. +
  36606. +int
  36607. +main ()
  36608. +{
  36609. +
  36610. + ;
  36611. + return 0;
  36612. +}
  36613. +_ACEOF
  36614. +if ac_fn_c_try_link "$LINENO"; then :
  36615. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  36616. + shlibpath_overrides_runpath=yes
  36617. +fi
  36618. +fi
  36619. +rm -f core conftest.err conftest.$ac_objext \
  36620. + conftest$ac_exeext conftest.$ac_ext
  36621. + LDFLAGS=$save_LDFLAGS
  36622. + libdir=$save_libdir
  36623. +
  36624. # This implies no fast_install, which is unacceptable.
  36625. # Some rework will be needed to allow for fast_install
  36626. # before this can be enabled.
  36627. @@ -18594,7 +9640,7 @@
  36628. # Append ld.so.conf contents to the search path
  36629. if test -f /etc/ld.so.conf; then
  36630. - 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' ' '`
  36631. + 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' ' '`
  36632. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  36633. fi
  36634. @@ -18623,7 +9669,7 @@
  36635. version_type=sunos
  36636. need_lib_prefix=no
  36637. need_version=no
  36638. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36639. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  36640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36641. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36642. dynamic_linker='NetBSD (a.out) ld.so'
  36643. @@ -18644,14 +9690,16 @@
  36644. shlibpath_overrides_runpath=yes
  36645. ;;
  36646. -nto-qnx*)
  36647. - version_type=linux
  36648. +*nto* | *qnx*)
  36649. + version_type=qnx
  36650. need_lib_prefix=no
  36651. need_version=no
  36652. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36653. soname_spec='${libname}${release}${shared_ext}$major'
  36654. shlibpath_var=LD_LIBRARY_PATH
  36655. - shlibpath_overrides_runpath=yes
  36656. + shlibpath_overrides_runpath=no
  36657. + hardcode_into_libs=yes
  36658. + dynamic_linker='ldqnx.so'
  36659. ;;
  36660. openbsd*)
  36661. @@ -18660,13 +9708,13 @@
  36662. need_lib_prefix=no
  36663. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  36664. case $host_os in
  36665. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36666. - *) need_version=no ;;
  36667. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36668. + *) need_version=no ;;
  36669. esac
  36670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36671. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36672. shlibpath_var=LD_LIBRARY_PATH
  36673. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36674. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36675. case $host_os in
  36676. openbsd2.[89] | openbsd2.[89].*)
  36677. shlibpath_overrides_runpath=no
  36678. @@ -18738,7 +9786,6 @@
  36679. sni)
  36680. shlibpath_overrides_runpath=no
  36681. need_lib_prefix=no
  36682. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  36683. runpath_var=LD_RUN_PATH
  36684. ;;
  36685. siemens)
  36686. @@ -18769,13 +9816,12 @@
  36687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36688. soname_spec='${libname}${release}${shared_ext}$major'
  36689. shlibpath_var=LD_LIBRARY_PATH
  36690. + shlibpath_overrides_runpath=yes
  36691. hardcode_into_libs=yes
  36692. if test "$with_gnu_ld" = yes; then
  36693. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  36694. - shlibpath_overrides_runpath=no
  36695. else
  36696. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  36697. - shlibpath_overrides_runpath=yes
  36698. case $host_os in
  36699. sco3.2v5*)
  36700. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  36701. @@ -18785,954 +9831,755 @@
  36702. sys_lib_dlsearch_path_spec='/usr/lib'
  36703. ;;
  36704. -uts4*)
  36705. - version_type=linux
  36706. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36707. - soname_spec='${libname}${release}${shared_ext}$major'
  36708. - shlibpath_var=LD_LIBRARY_PATH
  36709. - ;;
  36710. -
  36711. -*)
  36712. - dynamic_linker=no
  36713. - ;;
  36714. -esac
  36715. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  36716. -echo "${ECHO_T}$dynamic_linker" >&6; }
  36717. -test "$dynamic_linker" = no && can_build_shared=no
  36718. -
  36719. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36720. -if test "$GCC" = yes; then
  36721. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36722. -fi
  36723. -
  36724. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  36725. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  36726. -hardcode_action_GCJ=
  36727. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  36728. - test -n "$runpath_var_GCJ" || \
  36729. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  36730. -
  36731. - # We can hardcode non-existant directories.
  36732. - if test "$hardcode_direct_GCJ" != no &&
  36733. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  36734. - # have to relink, otherwise we might link with an installed library
  36735. - # when we should be linking with a yet-to-be-installed one
  36736. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  36737. - test "$hardcode_minus_L_GCJ" != no; then
  36738. - # Linking always hardcodes the temporary library directory.
  36739. - hardcode_action_GCJ=relink
  36740. - else
  36741. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  36742. - hardcode_action_GCJ=immediate
  36743. - fi
  36744. -else
  36745. - # We cannot hardcode anything, or else we can only hardcode existing
  36746. - # directories.
  36747. - hardcode_action_GCJ=unsupported
  36748. -fi
  36749. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  36750. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  36751. -
  36752. -if test "$hardcode_action_GCJ" = relink; then
  36753. - # Fast installation is not supported
  36754. - enable_fast_install=no
  36755. -elif test "$shlibpath_overrides_runpath" = yes ||
  36756. - test "$enable_shared" = no; then
  36757. - # Fast installation is not necessary
  36758. - enable_fast_install=needless
  36759. -fi
  36760. -
  36761. -
  36762. -# The else clause should only fire when bootstrapping the
  36763. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  36764. -# with your package, and you will get complaints that there are
  36765. -# no rules to generate ltmain.sh.
  36766. -if test -f "$ltmain"; then
  36767. - # See if we are running on zsh, and set the options which allow our commands through
  36768. - # without removal of \ escapes.
  36769. - if test -n "${ZSH_VERSION+set}" ; then
  36770. - setopt NO_GLOB_SUBST
  36771. - fi
  36772. - # Now quote all the things that may contain metacharacters while being
  36773. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  36774. - # variables and quote the copies for generation of the libtool script.
  36775. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  36776. - SED SHELL STRIP \
  36777. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  36778. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  36779. - deplibs_check_method reload_flag reload_cmds need_locks \
  36780. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  36781. - lt_cv_sys_global_symbol_to_c_name_address \
  36782. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  36783. - old_postinstall_cmds old_postuninstall_cmds \
  36784. - compiler_GCJ \
  36785. - CC_GCJ \
  36786. - LD_GCJ \
  36787. - lt_prog_compiler_wl_GCJ \
  36788. - lt_prog_compiler_pic_GCJ \
  36789. - lt_prog_compiler_static_GCJ \
  36790. - lt_prog_compiler_no_builtin_flag_GCJ \
  36791. - export_dynamic_flag_spec_GCJ \
  36792. - thread_safe_flag_spec_GCJ \
  36793. - whole_archive_flag_spec_GCJ \
  36794. - enable_shared_with_static_runtimes_GCJ \
  36795. - old_archive_cmds_GCJ \
  36796. - old_archive_from_new_cmds_GCJ \
  36797. - predep_objects_GCJ \
  36798. - postdep_objects_GCJ \
  36799. - predeps_GCJ \
  36800. - postdeps_GCJ \
  36801. - compiler_lib_search_path_GCJ \
  36802. - archive_cmds_GCJ \
  36803. - archive_expsym_cmds_GCJ \
  36804. - postinstall_cmds_GCJ \
  36805. - postuninstall_cmds_GCJ \
  36806. - old_archive_from_expsyms_cmds_GCJ \
  36807. - allow_undefined_flag_GCJ \
  36808. - no_undefined_flag_GCJ \
  36809. - export_symbols_cmds_GCJ \
  36810. - hardcode_libdir_flag_spec_GCJ \
  36811. - hardcode_libdir_flag_spec_ld_GCJ \
  36812. - hardcode_libdir_separator_GCJ \
  36813. - hardcode_automatic_GCJ \
  36814. - module_cmds_GCJ \
  36815. - module_expsym_cmds_GCJ \
  36816. - lt_cv_prog_compiler_c_o_GCJ \
  36817. - fix_srcfile_path_GCJ \
  36818. - exclude_expsyms_GCJ \
  36819. - include_expsyms_GCJ; do
  36820. -
  36821. - case $var in
  36822. - old_archive_cmds_GCJ | \
  36823. - old_archive_from_new_cmds_GCJ | \
  36824. - archive_cmds_GCJ | \
  36825. - archive_expsym_cmds_GCJ | \
  36826. - module_cmds_GCJ | \
  36827. - module_expsym_cmds_GCJ | \
  36828. - old_archive_from_expsyms_cmds_GCJ | \
  36829. - export_symbols_cmds_GCJ | \
  36830. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  36831. - postinstall_cmds | postuninstall_cmds | \
  36832. - old_postinstall_cmds | old_postuninstall_cmds | \
  36833. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  36834. - # Double-quote double-evaled strings.
  36835. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  36836. - ;;
  36837. - *)
  36838. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  36839. - ;;
  36840. - esac
  36841. - done
  36842. -
  36843. - case $lt_echo in
  36844. - *'\$0 --fallback-echo"')
  36845. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  36846. - ;;
  36847. - esac
  36848. -
  36849. -cfgfile="$ofile"
  36850. -
  36851. - cat <<__EOF__ >> "$cfgfile"
  36852. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  36853. -
  36854. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  36855. -
  36856. -# Shell to use when invoking shell scripts.
  36857. -SHELL=$lt_SHELL
  36858. -
  36859. -# Whether or not to build shared libraries.
  36860. -build_libtool_libs=$enable_shared
  36861. -
  36862. -# Whether or not to build static libraries.
  36863. -build_old_libs=$enable_static
  36864. -
  36865. -# Whether or not to add -lc for building shared libraries.
  36866. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  36867. -
  36868. -# Whether or not to disallow shared libs when runtime libs are static
  36869. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  36870. -
  36871. -# Whether or not to optimize for fast installation.
  36872. -fast_install=$enable_fast_install
  36873. -
  36874. -# The host system.
  36875. -host_alias=$host_alias
  36876. -host=$host
  36877. -host_os=$host_os
  36878. +tpf*)
  36879. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  36880. + version_type=linux
  36881. + need_lib_prefix=no
  36882. + need_version=no
  36883. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36884. + shlibpath_var=LD_LIBRARY_PATH
  36885. + shlibpath_overrides_runpath=no
  36886. + hardcode_into_libs=yes
  36887. + ;;
  36888. -# The build system.
  36889. -build_alias=$build_alias
  36890. -build=$build
  36891. -build_os=$build_os
  36892. +uts4*)
  36893. + version_type=linux
  36894. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36895. + soname_spec='${libname}${release}${shared_ext}$major'
  36896. + shlibpath_var=LD_LIBRARY_PATH
  36897. + ;;
  36898. -# An echo program that does not interpret backslashes.
  36899. -echo=$lt_echo
  36900. +*)
  36901. + dynamic_linker=no
  36902. + ;;
  36903. +esac
  36904. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  36905. +$as_echo "$dynamic_linker" >&6; }
  36906. +test "$dynamic_linker" = no && can_build_shared=no
  36907. -# The archiver.
  36908. -AR=$lt_AR
  36909. -AR_FLAGS=$lt_AR_FLAGS
  36910. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36911. +if test "$GCC" = yes; then
  36912. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36913. +fi
  36914. -# A C compiler.
  36915. -LTCC=$lt_LTCC
  36916. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  36917. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  36918. +fi
  36919. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  36920. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  36921. +fi
  36922. -# LTCC compiler flags.
  36923. -LTCFLAGS=$lt_LTCFLAGS
  36924. -# A language-specific compiler.
  36925. -CC=$lt_compiler_GCJ
  36926. -# Is the compiler the GNU C compiler?
  36927. -with_gcc=$GCC_GCJ
  36928. -# An ERE matcher.
  36929. -EGREP=$lt_EGREP
  36930. -# The linker used to build libraries.
  36931. -LD=$lt_LD_GCJ
  36932. -# Whether we need hard or soft links.
  36933. -LN_S=$lt_LN_S
  36934. -# A BSD-compatible nm program.
  36935. -NM=$lt_NM
  36936. -# A symbol stripping program
  36937. -STRIP=$lt_STRIP
  36938. -# Used to examine libraries when file_magic_cmd begins "file"
  36939. -MAGIC_CMD=$MAGIC_CMD
  36940. -# Used on cygwin: DLL creation program.
  36941. -DLLTOOL="$DLLTOOL"
  36942. -# Used on cygwin: object dumper.
  36943. -OBJDUMP="$OBJDUMP"
  36944. -# Used on cygwin: assembler.
  36945. -AS="$AS"
  36946. -# The name of the directory that contains temporary libtool files.
  36947. -objdir=$objdir
  36948. -# How to create reloadable object files.
  36949. -reload_flag=$lt_reload_flag
  36950. -reload_cmds=$lt_reload_cmds
  36951. -# How to pass a linker flag through the compiler.
  36952. -wl=$lt_lt_prog_compiler_wl_GCJ
  36953. -# Object file suffix (normally "o").
  36954. -objext="$ac_objext"
  36955. -# Old archive suffix (normally "a").
  36956. -libext="$libext"
  36957. -# Shared library suffix (normally ".so").
  36958. -shrext_cmds='$shrext_cmds'
  36959. -# Executable file suffix (normally "").
  36960. -exeext="$exeext"
  36961. -# Additional compiler flags for building library objects.
  36962. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  36963. -pic_mode=$pic_mode
  36964. -# What is the maximum length of a command?
  36965. -max_cmd_len=$lt_cv_sys_max_cmd_len
  36966. -# Does compiler simultaneously support -c and -o options?
  36967. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  36968. -# Must we lock files when doing compilation?
  36969. -need_locks=$lt_need_locks
  36970. -# Do we need the lib prefix for modules?
  36971. -need_lib_prefix=$need_lib_prefix
  36972. -# Do we need a version for libraries?
  36973. -need_version=$need_version
  36974. -# Whether dlopen is supported.
  36975. -dlopen_support=$enable_dlopen
  36976. -# Whether dlopen of programs is supported.
  36977. -dlopen_self=$enable_dlopen_self
  36978. -# Whether dlopen of statically linked programs is supported.
  36979. -dlopen_self_static=$enable_dlopen_self_static
  36980. -# Compiler flag to prevent dynamic linking.
  36981. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  36982. -# Compiler flag to turn off builtin functions.
  36983. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  36984. -# Compiler flag to allow reflexive dlopens.
  36985. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  36986. -# Compiler flag to generate shared objects directly from archives.
  36987. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  36988. -# Compiler flag to generate thread-safe objects.
  36989. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  36990. -# Library versioning type.
  36991. -version_type=$version_type
  36992. -# Format of library name prefix.
  36993. -libname_spec=$lt_libname_spec
  36994. -# List of archive names. First name is the real one, the rest are links.
  36995. -# The last name is the one that the linker finds with -lNAME.
  36996. -library_names_spec=$lt_library_names_spec
  36997. -# The coded name of the library, if different from the real name.
  36998. -soname_spec=$lt_soname_spec
  36999. -# Commands used to build and install an old-style archive.
  37000. -RANLIB=$lt_RANLIB
  37001. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  37002. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37003. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37004. -# Create an old-style archive from a shared archive.
  37005. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  37006. -# Create a temporary old-style archive to link instead of a shared archive.
  37007. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  37008. -# Commands used to build and install a shared archive.
  37009. -archive_cmds=$lt_archive_cmds_GCJ
  37010. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  37011. -postinstall_cmds=$lt_postinstall_cmds
  37012. -postuninstall_cmds=$lt_postuninstall_cmds
  37013. -# Commands used to build a loadable module (assumed same as above if empty)
  37014. -module_cmds=$lt_module_cmds_GCJ
  37015. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  37016. -# Commands to strip libraries.
  37017. -old_striplib=$lt_old_striplib
  37018. -striplib=$lt_striplib
  37019. -# Dependencies to place before the objects being linked to create a
  37020. -# shared library.
  37021. -predep_objects=$lt_predep_objects_GCJ
  37022. -
  37023. -# Dependencies to place after the objects being linked to create a
  37024. -# shared library.
  37025. -postdep_objects=$lt_postdep_objects_GCJ
  37026. -
  37027. -# Dependencies to place before the objects being linked to create a
  37028. -# shared library.
  37029. -predeps=$lt_predeps_GCJ
  37030. -
  37031. -# Dependencies to place after the objects being linked to create a
  37032. -# shared library.
  37033. -postdeps=$lt_postdeps_GCJ
  37034. -
  37035. -# The library search path used internally by the compiler when linking
  37036. -# a shared library.
  37037. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  37038. -# Method to check whether dependent libraries are shared objects.
  37039. -deplibs_check_method=$lt_deplibs_check_method
  37040. -# Command to use when deplibs_check_method == file_magic.
  37041. -file_magic_cmd=$lt_file_magic_cmd
  37042. -# Flag that allows shared libraries with undefined symbols to be built.
  37043. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  37044. -# Flag that forces no undefined symbols.
  37045. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  37046. -# Commands used to finish a libtool library installation in a directory.
  37047. -finish_cmds=$lt_finish_cmds
  37048. -# Same as above, but a single script fragment to be evaled but not shown.
  37049. -finish_eval=$lt_finish_eval
  37050. -# Take the output of nm and produce a listing of raw symbols and C names.
  37051. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37052. -# Transform the output of nm in a proper C declaration
  37053. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37054. -# Transform the output of nm in a C name address pair
  37055. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37056. -# This is the shared library runtime path variable.
  37057. -runpath_var=$runpath_var
  37058. -# This is the shared library path variable.
  37059. -shlibpath_var=$shlibpath_var
  37060. -# Is shlibpath searched before the hard-coded library search path?
  37061. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37062. -# How to hardcode a shared library path into an executable.
  37063. -hardcode_action=$hardcode_action_GCJ
  37064. -# Whether we should hardcode library paths into libraries.
  37065. -hardcode_into_libs=$hardcode_into_libs
  37066. -# Flag to hardcode \$libdir into a binary during linking.
  37067. -# This must work even if \$libdir does not exist.
  37068. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  37069. -# If ld is used when linking, flag to hardcode \$libdir into
  37070. -# a binary during linking. This must work even if \$libdir does
  37071. -# not exist.
  37072. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  37073. -
  37074. -# Whether we need a single -rpath flag with a separated argument.
  37075. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  37076. -
  37077. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37078. -# resulting binary.
  37079. -hardcode_direct=$hardcode_direct_GCJ
  37080. -
  37081. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37082. -# resulting binary.
  37083. -hardcode_minus_L=$hardcode_minus_L_GCJ
  37084. -
  37085. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37086. -# the resulting binary.
  37087. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  37088. -
  37089. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37090. -# and all subsequent libraries and executables linked against it.
  37091. -hardcode_automatic=$hardcode_automatic_GCJ
  37092. -# Variables whose values should be saved in libtool wrapper scripts and
  37093. -# restored at relink time.
  37094. -variables_saved_for_relink="$variables_saved_for_relink"
  37095. -# Whether libtool must link a program against all its dependency libraries.
  37096. -link_all_deplibs=$link_all_deplibs_GCJ
  37097. -# Compile-time system search path for libraries
  37098. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37099. -# Run-time system search path for libraries
  37100. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37101. -# Fix the shell variable \$srcfile for the compiler.
  37102. -fix_srcfile_path=$lt_fix_srcfile_path
  37103. -# Set to yes if exported symbols are required.
  37104. -always_export_symbols=$always_export_symbols_GCJ
  37105. -# The commands to list exported symbols.
  37106. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  37107. -# The commands to extract the exported symbol list from a shared archive.
  37108. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37109. -# Symbols that should not be listed in the preloaded symbols.
  37110. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  37111. -# Symbols that must always be exported.
  37112. -include_expsyms=$lt_include_expsyms_GCJ
  37113. -# ### END LIBTOOL TAG CONFIG: $tagname
  37114. -__EOF__
  37115. -else
  37116. - # If there is no Makefile yet, we rely on a make rule to execute
  37117. - # `config.status --recheck' to rerun these tests and create the
  37118. - # libtool script then.
  37119. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37120. - if test -f "$ltmain_in"; then
  37121. - test -f Makefile && make "$ltmain"
  37122. - fi
  37123. -fi
  37124. -ac_ext=c
  37125. -ac_cpp='$CPP $CPPFLAGS'
  37126. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37127. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37128. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37129. -CC="$lt_save_CC"
  37130. - else
  37131. - tagname=""
  37132. - fi
  37133. - ;;
  37134. - RC)
  37135. -# Source file extension for RC test sources.
  37136. -ac_ext=rc
  37137. -# Object file extension for compiled RC test sources.
  37138. -objext=o
  37139. -objext_RC=$objext
  37140. -# Code to be used in simple compile tests
  37141. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  37142. -# Code to be used in simple link tests
  37143. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  37144. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37145. -# If no C compiler was specified, use CC.
  37146. -LTCC=${LTCC-"$CC"}
  37147. -# If no C compiler flags were specified, use CFLAGS.
  37148. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  37149. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  37150. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  37151. +hardcode_action=
  37152. +if test -n "$hardcode_libdir_flag_spec" ||
  37153. + test -n "$runpath_var" ||
  37154. + test "X$hardcode_automatic" = "Xyes" ; then
  37155. -# Allow CC to be a program name with arguments.
  37156. -compiler=$CC
  37157. + # We can hardcode non-existent directories.
  37158. + if test "$hardcode_direct" != no &&
  37159. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37160. + # have to relink, otherwise we might link with an installed library
  37161. + # when we should be linking with a yet-to-be-installed one
  37162. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  37163. + test "$hardcode_minus_L" != no; then
  37164. + # Linking always hardcodes the temporary library directory.
  37165. + hardcode_action=relink
  37166. + else
  37167. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37168. + hardcode_action=immediate
  37169. + fi
  37170. +else
  37171. + # We cannot hardcode anything, or else we can only hardcode existing
  37172. + # directories.
  37173. + hardcode_action=unsupported
  37174. +fi
  37175. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  37176. +$as_echo "$hardcode_action" >&6; }
  37177. +if test "$hardcode_action" = relink ||
  37178. + test "$inherit_rpath" = yes; then
  37179. + # Fast installation is not supported
  37180. + enable_fast_install=no
  37181. +elif test "$shlibpath_overrides_runpath" = yes ||
  37182. + test "$enable_shared" = no; then
  37183. + # Fast installation is not necessary
  37184. + enable_fast_install=needless
  37185. +fi
  37186. -# save warnings/boilerplate of simple test code
  37187. -ac_outfile=conftest.$ac_objext
  37188. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  37189. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37190. -_lt_compiler_boilerplate=`cat conftest.err`
  37191. -$rm conftest*
  37192. -ac_outfile=conftest.$ac_objext
  37193. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  37194. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37195. -_lt_linker_boilerplate=`cat conftest.err`
  37196. -$rm conftest*
  37197. -# Allow CC to be a program name with arguments.
  37198. -lt_save_CC="$CC"
  37199. -CC=${RC-"windres"}
  37200. -compiler=$CC
  37201. -compiler_RC=$CC
  37202. -for cc_temp in $compiler""; do
  37203. - case $cc_temp in
  37204. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  37205. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  37206. - \-*) ;;
  37207. - *) break;;
  37208. - esac
  37209. -done
  37210. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37211. -lt_cv_prog_compiler_c_o_RC=yes
  37212. -# The else clause should only fire when bootstrapping the
  37213. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37214. -# with your package, and you will get complaints that there are
  37215. -# no rules to generate ltmain.sh.
  37216. -if test -f "$ltmain"; then
  37217. - # See if we are running on zsh, and set the options which allow our commands through
  37218. - # without removal of \ escapes.
  37219. - if test -n "${ZSH_VERSION+set}" ; then
  37220. - setopt NO_GLOB_SUBST
  37221. - fi
  37222. - # Now quote all the things that may contain metacharacters while being
  37223. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37224. - # variables and quote the copies for generation of the libtool script.
  37225. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  37226. - SED SHELL STRIP \
  37227. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37228. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37229. - deplibs_check_method reload_flag reload_cmds need_locks \
  37230. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37231. - lt_cv_sys_global_symbol_to_c_name_address \
  37232. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37233. - old_postinstall_cmds old_postuninstall_cmds \
  37234. - compiler_RC \
  37235. - CC_RC \
  37236. - LD_RC \
  37237. - lt_prog_compiler_wl_RC \
  37238. - lt_prog_compiler_pic_RC \
  37239. - lt_prog_compiler_static_RC \
  37240. - lt_prog_compiler_no_builtin_flag_RC \
  37241. - export_dynamic_flag_spec_RC \
  37242. - thread_safe_flag_spec_RC \
  37243. - whole_archive_flag_spec_RC \
  37244. - enable_shared_with_static_runtimes_RC \
  37245. - old_archive_cmds_RC \
  37246. - old_archive_from_new_cmds_RC \
  37247. - predep_objects_RC \
  37248. - postdep_objects_RC \
  37249. - predeps_RC \
  37250. - postdeps_RC \
  37251. - compiler_lib_search_path_RC \
  37252. - archive_cmds_RC \
  37253. - archive_expsym_cmds_RC \
  37254. - postinstall_cmds_RC \
  37255. - postuninstall_cmds_RC \
  37256. - old_archive_from_expsyms_cmds_RC \
  37257. - allow_undefined_flag_RC \
  37258. - no_undefined_flag_RC \
  37259. - export_symbols_cmds_RC \
  37260. - hardcode_libdir_flag_spec_RC \
  37261. - hardcode_libdir_flag_spec_ld_RC \
  37262. - hardcode_libdir_separator_RC \
  37263. - hardcode_automatic_RC \
  37264. - module_cmds_RC \
  37265. - module_expsym_cmds_RC \
  37266. - lt_cv_prog_compiler_c_o_RC \
  37267. - fix_srcfile_path_RC \
  37268. - exclude_expsyms_RC \
  37269. - include_expsyms_RC; do
  37270. -
  37271. - case $var in
  37272. - old_archive_cmds_RC | \
  37273. - old_archive_from_new_cmds_RC | \
  37274. - archive_cmds_RC | \
  37275. - archive_expsym_cmds_RC | \
  37276. - module_cmds_RC | \
  37277. - module_expsym_cmds_RC | \
  37278. - old_archive_from_expsyms_cmds_RC | \
  37279. - export_symbols_cmds_RC | \
  37280. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37281. - postinstall_cmds | postuninstall_cmds | \
  37282. - old_postinstall_cmds | old_postuninstall_cmds | \
  37283. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37284. - # Double-quote double-evaled strings.
  37285. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37286. - ;;
  37287. - *)
  37288. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37289. - ;;
  37290. - esac
  37291. - done
  37292. + if test "x$enable_dlopen" != xyes; then
  37293. + enable_dlopen=unknown
  37294. + enable_dlopen_self=unknown
  37295. + enable_dlopen_self_static=unknown
  37296. +else
  37297. + lt_cv_dlopen=no
  37298. + lt_cv_dlopen_libs=
  37299. - case $lt_echo in
  37300. - *'\$0 --fallback-echo"')
  37301. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37302. + case $host_os in
  37303. + beos*)
  37304. + lt_cv_dlopen="load_add_on"
  37305. + lt_cv_dlopen_libs=
  37306. + lt_cv_dlopen_self=yes
  37307. ;;
  37308. - esac
  37309. -
  37310. -cfgfile="$ofile"
  37311. - cat <<__EOF__ >> "$cfgfile"
  37312. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37313. -
  37314. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37315. -
  37316. -# Shell to use when invoking shell scripts.
  37317. -SHELL=$lt_SHELL
  37318. + mingw* | pw32* | cegcc*)
  37319. + lt_cv_dlopen="LoadLibrary"
  37320. + lt_cv_dlopen_libs=
  37321. + ;;
  37322. -# Whether or not to build shared libraries.
  37323. -build_libtool_libs=$enable_shared
  37324. + cygwin*)
  37325. + lt_cv_dlopen="dlopen"
  37326. + lt_cv_dlopen_libs=
  37327. + ;;
  37328. -# Whether or not to build static libraries.
  37329. -build_old_libs=$enable_static
  37330. + darwin*)
  37331. + # if libdl is installed we need to link against it
  37332. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  37333. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  37334. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  37335. + $as_echo_n "(cached) " >&6
  37336. +else
  37337. + ac_check_lib_save_LIBS=$LIBS
  37338. +LIBS="-ldl $LIBS"
  37339. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37340. +/* end confdefs.h. */
  37341. -# Whether or not to add -lc for building shared libraries.
  37342. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  37343. +/* Override any GCC internal prototype to avoid an error.
  37344. + Use char because int might match the return type of a GCC
  37345. + builtin and then its argument prototype would still apply. */
  37346. +#ifdef __cplusplus
  37347. +extern "C"
  37348. +#endif
  37349. +char dlopen ();
  37350. +int
  37351. +main ()
  37352. +{
  37353. +return dlopen ();
  37354. + ;
  37355. + return 0;
  37356. +}
  37357. +_ACEOF
  37358. +if ac_fn_c_try_link "$LINENO"; then :
  37359. + ac_cv_lib_dl_dlopen=yes
  37360. +else
  37361. + ac_cv_lib_dl_dlopen=no
  37362. +fi
  37363. +rm -f core conftest.err conftest.$ac_objext \
  37364. + conftest$ac_exeext conftest.$ac_ext
  37365. +LIBS=$ac_check_lib_save_LIBS
  37366. +fi
  37367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  37368. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  37369. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  37370. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  37371. +else
  37372. -# Whether or not to disallow shared libs when runtime libs are static
  37373. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  37374. + lt_cv_dlopen="dyld"
  37375. + lt_cv_dlopen_libs=
  37376. + lt_cv_dlopen_self=yes
  37377. -# Whether or not to optimize for fast installation.
  37378. -fast_install=$enable_fast_install
  37379. +fi
  37380. -# The host system.
  37381. -host_alias=$host_alias
  37382. -host=$host
  37383. -host_os=$host_os
  37384. + ;;
  37385. -# The build system.
  37386. -build_alias=$build_alias
  37387. -build=$build
  37388. -build_os=$build_os
  37389. + *)
  37390. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  37391. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  37392. + lt_cv_dlopen="shl_load"
  37393. +else
  37394. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  37395. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  37396. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  37397. + $as_echo_n "(cached) " >&6
  37398. +else
  37399. + ac_check_lib_save_LIBS=$LIBS
  37400. +LIBS="-ldld $LIBS"
  37401. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37402. +/* end confdefs.h. */
  37403. -# An echo program that does not interpret backslashes.
  37404. -echo=$lt_echo
  37405. +/* Override any GCC internal prototype to avoid an error.
  37406. + Use char because int might match the return type of a GCC
  37407. + builtin and then its argument prototype would still apply. */
  37408. +#ifdef __cplusplus
  37409. +extern "C"
  37410. +#endif
  37411. +char shl_load ();
  37412. +int
  37413. +main ()
  37414. +{
  37415. +return shl_load ();
  37416. + ;
  37417. + return 0;
  37418. +}
  37419. +_ACEOF
  37420. +if ac_fn_c_try_link "$LINENO"; then :
  37421. + ac_cv_lib_dld_shl_load=yes
  37422. +else
  37423. + ac_cv_lib_dld_shl_load=no
  37424. +fi
  37425. +rm -f core conftest.err conftest.$ac_objext \
  37426. + conftest$ac_exeext conftest.$ac_ext
  37427. +LIBS=$ac_check_lib_save_LIBS
  37428. +fi
  37429. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  37430. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  37431. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  37432. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  37433. +else
  37434. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  37435. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  37436. + lt_cv_dlopen="dlopen"
  37437. +else
  37438. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  37439. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  37440. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  37441. + $as_echo_n "(cached) " >&6
  37442. +else
  37443. + ac_check_lib_save_LIBS=$LIBS
  37444. +LIBS="-ldl $LIBS"
  37445. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37446. +/* end confdefs.h. */
  37447. -# The archiver.
  37448. -AR=$lt_AR
  37449. -AR_FLAGS=$lt_AR_FLAGS
  37450. +/* Override any GCC internal prototype to avoid an error.
  37451. + Use char because int might match the return type of a GCC
  37452. + builtin and then its argument prototype would still apply. */
  37453. +#ifdef __cplusplus
  37454. +extern "C"
  37455. +#endif
  37456. +char dlopen ();
  37457. +int
  37458. +main ()
  37459. +{
  37460. +return dlopen ();
  37461. + ;
  37462. + return 0;
  37463. +}
  37464. +_ACEOF
  37465. +if ac_fn_c_try_link "$LINENO"; then :
  37466. + ac_cv_lib_dl_dlopen=yes
  37467. +else
  37468. + ac_cv_lib_dl_dlopen=no
  37469. +fi
  37470. +rm -f core conftest.err conftest.$ac_objext \
  37471. + conftest$ac_exeext conftest.$ac_ext
  37472. +LIBS=$ac_check_lib_save_LIBS
  37473. +fi
  37474. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  37475. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  37476. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  37477. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  37478. +else
  37479. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  37480. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  37481. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  37482. + $as_echo_n "(cached) " >&6
  37483. +else
  37484. + ac_check_lib_save_LIBS=$LIBS
  37485. +LIBS="-lsvld $LIBS"
  37486. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37487. +/* end confdefs.h. */
  37488. -# A C compiler.
  37489. -LTCC=$lt_LTCC
  37490. +/* Override any GCC internal prototype to avoid an error.
  37491. + Use char because int might match the return type of a GCC
  37492. + builtin and then its argument prototype would still apply. */
  37493. +#ifdef __cplusplus
  37494. +extern "C"
  37495. +#endif
  37496. +char dlopen ();
  37497. +int
  37498. +main ()
  37499. +{
  37500. +return dlopen ();
  37501. + ;
  37502. + return 0;
  37503. +}
  37504. +_ACEOF
  37505. +if ac_fn_c_try_link "$LINENO"; then :
  37506. + ac_cv_lib_svld_dlopen=yes
  37507. +else
  37508. + ac_cv_lib_svld_dlopen=no
  37509. +fi
  37510. +rm -f core conftest.err conftest.$ac_objext \
  37511. + conftest$ac_exeext conftest.$ac_ext
  37512. +LIBS=$ac_check_lib_save_LIBS
  37513. +fi
  37514. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  37515. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  37516. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  37517. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  37518. +else
  37519. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  37520. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  37521. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  37522. + $as_echo_n "(cached) " >&6
  37523. +else
  37524. + ac_check_lib_save_LIBS=$LIBS
  37525. +LIBS="-ldld $LIBS"
  37526. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37527. +/* end confdefs.h. */
  37528. -# LTCC compiler flags.
  37529. -LTCFLAGS=$lt_LTCFLAGS
  37530. +/* Override any GCC internal prototype to avoid an error.
  37531. + Use char because int might match the return type of a GCC
  37532. + builtin and then its argument prototype would still apply. */
  37533. +#ifdef __cplusplus
  37534. +extern "C"
  37535. +#endif
  37536. +char dld_link ();
  37537. +int
  37538. +main ()
  37539. +{
  37540. +return dld_link ();
  37541. + ;
  37542. + return 0;
  37543. +}
  37544. +_ACEOF
  37545. +if ac_fn_c_try_link "$LINENO"; then :
  37546. + ac_cv_lib_dld_dld_link=yes
  37547. +else
  37548. + ac_cv_lib_dld_dld_link=no
  37549. +fi
  37550. +rm -f core conftest.err conftest.$ac_objext \
  37551. + conftest$ac_exeext conftest.$ac_ext
  37552. +LIBS=$ac_check_lib_save_LIBS
  37553. +fi
  37554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  37555. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  37556. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  37557. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  37558. +fi
  37559. -# A language-specific compiler.
  37560. -CC=$lt_compiler_RC
  37561. -# Is the compiler the GNU C compiler?
  37562. -with_gcc=$GCC_RC
  37563. +fi
  37564. -# An ERE matcher.
  37565. -EGREP=$lt_EGREP
  37566. -# The linker used to build libraries.
  37567. -LD=$lt_LD_RC
  37568. +fi
  37569. -# Whether we need hard or soft links.
  37570. -LN_S=$lt_LN_S
  37571. -# A BSD-compatible nm program.
  37572. -NM=$lt_NM
  37573. +fi
  37574. -# A symbol stripping program
  37575. -STRIP=$lt_STRIP
  37576. -# Used to examine libraries when file_magic_cmd begins "file"
  37577. -MAGIC_CMD=$MAGIC_CMD
  37578. +fi
  37579. -# Used on cygwin: DLL creation program.
  37580. -DLLTOOL="$DLLTOOL"
  37581. -# Used on cygwin: object dumper.
  37582. -OBJDUMP="$OBJDUMP"
  37583. +fi
  37584. -# Used on cygwin: assembler.
  37585. -AS="$AS"
  37586. + ;;
  37587. + esac
  37588. -# The name of the directory that contains temporary libtool files.
  37589. -objdir=$objdir
  37590. + if test "x$lt_cv_dlopen" != xno; then
  37591. + enable_dlopen=yes
  37592. + else
  37593. + enable_dlopen=no
  37594. + fi
  37595. -# How to create reloadable object files.
  37596. -reload_flag=$lt_reload_flag
  37597. -reload_cmds=$lt_reload_cmds
  37598. + case $lt_cv_dlopen in
  37599. + dlopen)
  37600. + save_CPPFLAGS="$CPPFLAGS"
  37601. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  37602. -# How to pass a linker flag through the compiler.
  37603. -wl=$lt_lt_prog_compiler_wl_RC
  37604. + save_LDFLAGS="$LDFLAGS"
  37605. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  37606. -# Object file suffix (normally "o").
  37607. -objext="$ac_objext"
  37608. + save_LIBS="$LIBS"
  37609. + LIBS="$lt_cv_dlopen_libs $LIBS"
  37610. -# Old archive suffix (normally "a").
  37611. -libext="$libext"
  37612. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  37613. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  37614. +if test "${lt_cv_dlopen_self+set}" = set; then :
  37615. + $as_echo_n "(cached) " >&6
  37616. +else
  37617. + if test "$cross_compiling" = yes; then :
  37618. + lt_cv_dlopen_self=cross
  37619. +else
  37620. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  37621. + lt_status=$lt_dlunknown
  37622. + cat > conftest.$ac_ext <<_LT_EOF
  37623. +#line 10288 "configure"
  37624. +#include "confdefs.h"
  37625. -# Shared library suffix (normally ".so").
  37626. -shrext_cmds='$shrext_cmds'
  37627. +#if HAVE_DLFCN_H
  37628. +#include <dlfcn.h>
  37629. +#endif
  37630. -# Executable file suffix (normally "").
  37631. -exeext="$exeext"
  37632. +#include <stdio.h>
  37633. -# Additional compiler flags for building library objects.
  37634. -pic_flag=$lt_lt_prog_compiler_pic_RC
  37635. -pic_mode=$pic_mode
  37636. +#ifdef RTLD_GLOBAL
  37637. +# define LT_DLGLOBAL RTLD_GLOBAL
  37638. +#else
  37639. +# ifdef DL_GLOBAL
  37640. +# define LT_DLGLOBAL DL_GLOBAL
  37641. +# else
  37642. +# define LT_DLGLOBAL 0
  37643. +# endif
  37644. +#endif
  37645. -# What is the maximum length of a command?
  37646. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37647. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  37648. + find out it does not work in some platform. */
  37649. +#ifndef LT_DLLAZY_OR_NOW
  37650. +# ifdef RTLD_LAZY
  37651. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  37652. +# else
  37653. +# ifdef DL_LAZY
  37654. +# define LT_DLLAZY_OR_NOW DL_LAZY
  37655. +# else
  37656. +# ifdef RTLD_NOW
  37657. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  37658. +# else
  37659. +# ifdef DL_NOW
  37660. +# define LT_DLLAZY_OR_NOW DL_NOW
  37661. +# else
  37662. +# define LT_DLLAZY_OR_NOW 0
  37663. +# endif
  37664. +# endif
  37665. +# endif
  37666. +# endif
  37667. +#endif
  37668. -# Does compiler simultaneously support -c and -o options?
  37669. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  37670. +void fnord() { int i=42;}
  37671. +int main ()
  37672. +{
  37673. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  37674. + int status = $lt_dlunknown;
  37675. -# Must we lock files when doing compilation?
  37676. -need_locks=$lt_need_locks
  37677. + if (self)
  37678. + {
  37679. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  37680. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  37681. + /* dlclose (self); */
  37682. + }
  37683. + else
  37684. + puts (dlerror ());
  37685. -# Do we need the lib prefix for modules?
  37686. -need_lib_prefix=$need_lib_prefix
  37687. + return status;
  37688. +}
  37689. +_LT_EOF
  37690. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  37691. + (eval $ac_link) 2>&5
  37692. + ac_status=$?
  37693. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37694. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  37695. + (./conftest; exit; ) >&5 2>/dev/null
  37696. + lt_status=$?
  37697. + case x$lt_status in
  37698. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  37699. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  37700. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  37701. + esac
  37702. + else :
  37703. + # compilation failed
  37704. + lt_cv_dlopen_self=no
  37705. + fi
  37706. +fi
  37707. +rm -fr conftest*
  37708. -# Do we need a version for libraries?
  37709. -need_version=$need_version
  37710. -# Whether dlopen is supported.
  37711. -dlopen_support=$enable_dlopen
  37712. +fi
  37713. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  37714. +$as_echo "$lt_cv_dlopen_self" >&6; }
  37715. -# Whether dlopen of programs is supported.
  37716. -dlopen_self=$enable_dlopen_self
  37717. + if test "x$lt_cv_dlopen_self" = xyes; then
  37718. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  37719. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  37720. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  37721. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  37722. + $as_echo_n "(cached) " >&6
  37723. +else
  37724. + if test "$cross_compiling" = yes; then :
  37725. + lt_cv_dlopen_self_static=cross
  37726. +else
  37727. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  37728. + lt_status=$lt_dlunknown
  37729. + cat > conftest.$ac_ext <<_LT_EOF
  37730. +#line 10384 "configure"
  37731. +#include "confdefs.h"
  37732. -# Whether dlopen of statically linked programs is supported.
  37733. -dlopen_self_static=$enable_dlopen_self_static
  37734. +#if HAVE_DLFCN_H
  37735. +#include <dlfcn.h>
  37736. +#endif
  37737. -# Compiler flag to prevent dynamic linking.
  37738. -link_static_flag=$lt_lt_prog_compiler_static_RC
  37739. +#include <stdio.h>
  37740. -# Compiler flag to turn off builtin functions.
  37741. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  37742. +#ifdef RTLD_GLOBAL
  37743. +# define LT_DLGLOBAL RTLD_GLOBAL
  37744. +#else
  37745. +# ifdef DL_GLOBAL
  37746. +# define LT_DLGLOBAL DL_GLOBAL
  37747. +# else
  37748. +# define LT_DLGLOBAL 0
  37749. +# endif
  37750. +#endif
  37751. -# Compiler flag to allow reflexive dlopens.
  37752. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  37753. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  37754. + find out it does not work in some platform. */
  37755. +#ifndef LT_DLLAZY_OR_NOW
  37756. +# ifdef RTLD_LAZY
  37757. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  37758. +# else
  37759. +# ifdef DL_LAZY
  37760. +# define LT_DLLAZY_OR_NOW DL_LAZY
  37761. +# else
  37762. +# ifdef RTLD_NOW
  37763. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  37764. +# else
  37765. +# ifdef DL_NOW
  37766. +# define LT_DLLAZY_OR_NOW DL_NOW
  37767. +# else
  37768. +# define LT_DLLAZY_OR_NOW 0
  37769. +# endif
  37770. +# endif
  37771. +# endif
  37772. +# endif
  37773. +#endif
  37774. -# Compiler flag to generate shared objects directly from archives.
  37775. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  37776. +void fnord() { int i=42;}
  37777. +int main ()
  37778. +{
  37779. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  37780. + int status = $lt_dlunknown;
  37781. -# Compiler flag to generate thread-safe objects.
  37782. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  37783. + if (self)
  37784. + {
  37785. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  37786. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  37787. + /* dlclose (self); */
  37788. + }
  37789. + else
  37790. + puts (dlerror ());
  37791. -# Library versioning type.
  37792. -version_type=$version_type
  37793. + return status;
  37794. +}
  37795. +_LT_EOF
  37796. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  37797. + (eval $ac_link) 2>&5
  37798. + ac_status=$?
  37799. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37800. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  37801. + (./conftest; exit; ) >&5 2>/dev/null
  37802. + lt_status=$?
  37803. + case x$lt_status in
  37804. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  37805. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  37806. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  37807. + esac
  37808. + else :
  37809. + # compilation failed
  37810. + lt_cv_dlopen_self_static=no
  37811. + fi
  37812. +fi
  37813. +rm -fr conftest*
  37814. -# Format of library name prefix.
  37815. -libname_spec=$lt_libname_spec
  37816. -# List of archive names. First name is the real one, the rest are links.
  37817. -# The last name is the one that the linker finds with -lNAME.
  37818. -library_names_spec=$lt_library_names_spec
  37819. +fi
  37820. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  37821. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  37822. + fi
  37823. -# The coded name of the library, if different from the real name.
  37824. -soname_spec=$lt_soname_spec
  37825. + CPPFLAGS="$save_CPPFLAGS"
  37826. + LDFLAGS="$save_LDFLAGS"
  37827. + LIBS="$save_LIBS"
  37828. + ;;
  37829. + esac
  37830. -# Commands used to build and install an old-style archive.
  37831. -RANLIB=$lt_RANLIB
  37832. -old_archive_cmds=$lt_old_archive_cmds_RC
  37833. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37834. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37835. + case $lt_cv_dlopen_self in
  37836. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  37837. + *) enable_dlopen_self=unknown ;;
  37838. + esac
  37839. -# Create an old-style archive from a shared archive.
  37840. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  37841. + case $lt_cv_dlopen_self_static in
  37842. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  37843. + *) enable_dlopen_self_static=unknown ;;
  37844. + esac
  37845. +fi
  37846. -# Create a temporary old-style archive to link instead of a shared archive.
  37847. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  37848. -# Commands used to build and install a shared archive.
  37849. -archive_cmds=$lt_archive_cmds_RC
  37850. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  37851. -postinstall_cmds=$lt_postinstall_cmds
  37852. -postuninstall_cmds=$lt_postuninstall_cmds
  37853. -# Commands used to build a loadable module (assumed same as above if empty)
  37854. -module_cmds=$lt_module_cmds_RC
  37855. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  37856. -# Commands to strip libraries.
  37857. -old_striplib=$lt_old_striplib
  37858. -striplib=$lt_striplib
  37859. -# Dependencies to place before the objects being linked to create a
  37860. -# shared library.
  37861. -predep_objects=$lt_predep_objects_RC
  37862. -
  37863. -# Dependencies to place after the objects being linked to create a
  37864. -# shared library.
  37865. -postdep_objects=$lt_postdep_objects_RC
  37866. -
  37867. -# Dependencies to place before the objects being linked to create a
  37868. -# shared library.
  37869. -predeps=$lt_predeps_RC
  37870. -
  37871. -# Dependencies to place after the objects being linked to create a
  37872. -# shared library.
  37873. -postdeps=$lt_postdeps_RC
  37874. -
  37875. -# The library search path used internally by the compiler when linking
  37876. -# a shared library.
  37877. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  37878. -# Method to check whether dependent libraries are shared objects.
  37879. -deplibs_check_method=$lt_deplibs_check_method
  37880. -# Command to use when deplibs_check_method == file_magic.
  37881. -file_magic_cmd=$lt_file_magic_cmd
  37882. -# Flag that allows shared libraries with undefined symbols to be built.
  37883. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  37884. -# Flag that forces no undefined symbols.
  37885. -no_undefined_flag=$lt_no_undefined_flag_RC
  37886. -# Commands used to finish a libtool library installation in a directory.
  37887. -finish_cmds=$lt_finish_cmds
  37888. -# Same as above, but a single script fragment to be evaled but not shown.
  37889. -finish_eval=$lt_finish_eval
  37890. -# Take the output of nm and produce a listing of raw symbols and C names.
  37891. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37892. -# Transform the output of nm in a proper C declaration
  37893. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37894. -# Transform the output of nm in a C name address pair
  37895. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37896. -# This is the shared library runtime path variable.
  37897. -runpath_var=$runpath_var
  37898. -# This is the shared library path variable.
  37899. -shlibpath_var=$shlibpath_var
  37900. -# Is shlibpath searched before the hard-coded library search path?
  37901. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37902. +striplib=
  37903. +old_striplib=
  37904. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  37905. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  37906. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  37907. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  37908. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  37909. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37910. +$as_echo "yes" >&6; }
  37911. +else
  37912. +# FIXME - insert some real tests, host_os isn't really good enough
  37913. + case $host_os in
  37914. + darwin*)
  37915. + if test -n "$STRIP" ; then
  37916. + striplib="$STRIP -x"
  37917. + old_striplib="$STRIP -S"
  37918. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37919. +$as_echo "yes" >&6; }
  37920. + else
  37921. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37922. +$as_echo "no" >&6; }
  37923. + fi
  37924. + ;;
  37925. + *)
  37926. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37927. +$as_echo "no" >&6; }
  37928. + ;;
  37929. + esac
  37930. +fi
  37931. -# How to hardcode a shared library path into an executable.
  37932. -hardcode_action=$hardcode_action_RC
  37933. -# Whether we should hardcode library paths into libraries.
  37934. -hardcode_into_libs=$hardcode_into_libs
  37935. -# Flag to hardcode \$libdir into a binary during linking.
  37936. -# This must work even if \$libdir does not exist.
  37937. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  37938. -# If ld is used when linking, flag to hardcode \$libdir into
  37939. -# a binary during linking. This must work even if \$libdir does
  37940. -# not exist.
  37941. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  37942. -
  37943. -# Whether we need a single -rpath flag with a separated argument.
  37944. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  37945. -
  37946. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37947. -# resulting binary.
  37948. -hardcode_direct=$hardcode_direct_RC
  37949. -
  37950. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37951. -# resulting binary.
  37952. -hardcode_minus_L=$hardcode_minus_L_RC
  37953. -
  37954. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37955. -# the resulting binary.
  37956. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  37957. -
  37958. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37959. -# and all subsequent libraries and executables linked against it.
  37960. -hardcode_automatic=$hardcode_automatic_RC
  37961. -# Variables whose values should be saved in libtool wrapper scripts and
  37962. -# restored at relink time.
  37963. -variables_saved_for_relink="$variables_saved_for_relink"
  37964. -# Whether libtool must link a program against all its dependency libraries.
  37965. -link_all_deplibs=$link_all_deplibs_RC
  37966. -# Compile-time system search path for libraries
  37967. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37968. -# Run-time system search path for libraries
  37969. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37970. -# Fix the shell variable \$srcfile for the compiler.
  37971. -fix_srcfile_path=$lt_fix_srcfile_path
  37972. -# Set to yes if exported symbols are required.
  37973. -always_export_symbols=$always_export_symbols_RC
  37974. -# The commands to list exported symbols.
  37975. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  37976. -# The commands to extract the exported symbol list from a shared archive.
  37977. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37978. + # Report which library types will actually be built
  37979. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  37980. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  37981. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  37982. +$as_echo "$can_build_shared" >&6; }
  37983. -# Symbols that should not be listed in the preloaded symbols.
  37984. -exclude_expsyms=$lt_exclude_expsyms_RC
  37985. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  37986. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  37987. + test "$can_build_shared" = "no" && enable_shared=no
  37988. -# Symbols that must always be exported.
  37989. -include_expsyms=$lt_include_expsyms_RC
  37990. + # On AIX, shared libraries and static libraries use the same namespace, and
  37991. + # are all built from PIC.
  37992. + case $host_os in
  37993. + aix3*)
  37994. + test "$enable_shared" = yes && enable_static=no
  37995. + if test -n "$RANLIB"; then
  37996. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  37997. + postinstall_cmds='$RANLIB $lib'
  37998. + fi
  37999. + ;;
  38000. -# ### END LIBTOOL TAG CONFIG: $tagname
  38001. + aix[4-9]*)
  38002. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  38003. + test "$enable_shared" = yes && enable_static=no
  38004. + fi
  38005. + ;;
  38006. + esac
  38007. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  38008. +$as_echo "$enable_shared" >&6; }
  38009. -__EOF__
  38010. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  38011. +$as_echo_n "checking whether to build static libraries... " >&6; }
  38012. + # Make sure either enable_shared or enable_static is yes.
  38013. + test "$enable_shared" = yes || enable_static=yes
  38014. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  38015. +$as_echo "$enable_static" >&6; }
  38016. -else
  38017. - # If there is no Makefile yet, we rely on a make rule to execute
  38018. - # `config.status --recheck' to rerun these tests and create the
  38019. - # libtool script then.
  38020. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  38021. - if test -f "$ltmain_in"; then
  38022. - test -f Makefile && make "$ltmain"
  38023. - fi
  38024. -fi
  38025. +fi
  38026. ac_ext=c
  38027. ac_cpp='$CPP $CPPFLAGS'
  38028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38029. @@ -19741,48 +10588,6 @@
  38030. CC="$lt_save_CC"
  38031. - ;;
  38032. -
  38033. - *)
  38034. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  38035. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  38036. - { (exit 1); exit 1; }; }
  38037. - ;;
  38038. - esac
  38039. -
  38040. - # Append the new tag name to the list of available tags.
  38041. - if test -n "$tagname" ; then
  38042. - available_tags="$available_tags $tagname"
  38043. - fi
  38044. - fi
  38045. - done
  38046. - IFS="$lt_save_ifs"
  38047. -
  38048. - # Now substitute the updated list of available tags.
  38049. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  38050. - mv "${ofile}T" "$ofile"
  38051. - chmod +x "$ofile"
  38052. - else
  38053. - rm -f "${ofile}T"
  38054. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  38055. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  38056. - { (exit 1); exit 1; }; }
  38057. - fi
  38058. -fi
  38059. -
  38060. -
  38061. -
  38062. -# This can be used to rebuild libtool when needed
  38063. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  38064. -
  38065. -# Always use our own libtool.
  38066. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  38067. -
  38068. -# Prevent multiple expansion
  38069. -
  38070. -
  38071. -
  38072. -
  38073. @@ -19795,3738 +10600,3520 @@
  38074. + ac_config_commands="$ac_config_commands libtool"
  38075. +# Only expand once:
  38076. for ac_header in sys/sockio.h
  38077. -do
  38078. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38079. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38080. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  38081. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38082. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38083. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38084. -fi
  38085. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38086. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38087. -echo "${ECHO_T}$ac_res" >&6; }
  38088. -else
  38089. - # Is the header compilable?
  38090. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38091. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  38092. -cat >conftest.$ac_ext <<_ACEOF
  38093. -/* confdefs.h. */
  38094. -_ACEOF
  38095. -cat confdefs.h >>conftest.$ac_ext
  38096. -cat >>conftest.$ac_ext <<_ACEOF
  38097. -/* end confdefs.h. */
  38098. -$ac_includes_default
  38099. -#include <$ac_header>
  38100. +do :
  38101. + ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
  38102. +if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
  38103. + cat >>confdefs.h <<_ACEOF
  38104. +#define HAVE_SYS_SOCKIO_H 1
  38105. _ACEOF
  38106. -rm -f conftest.$ac_objext
  38107. -if { (ac_try="$ac_compile"
  38108. -case "(($ac_try" in
  38109. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38110. - *) ac_try_echo=$ac_try;;
  38111. -esac
  38112. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38113. - (eval "$ac_compile") 2>conftest.er1
  38114. - ac_status=$?
  38115. - grep -v '^ *+' conftest.er1 >conftest.err
  38116. - rm -f conftest.er1
  38117. - cat conftest.err >&5
  38118. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38119. - (exit $ac_status); } && {
  38120. - test -z "$ac_c_werror_flag" ||
  38121. - test ! -s conftest.err
  38122. - } && test -s conftest.$ac_objext; then
  38123. - ac_header_compiler=yes
  38124. -else
  38125. - echo "$as_me: failed program was:" >&5
  38126. -sed 's/^/| /' conftest.$ac_ext >&5
  38127. - ac_header_compiler=no
  38128. fi
  38129. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38130. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38131. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  38132. +done
  38133. -# Is the header present?
  38134. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  38135. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  38136. -cat >conftest.$ac_ext <<_ACEOF
  38137. -/* confdefs.h. */
  38138. -_ACEOF
  38139. -cat confdefs.h >>conftest.$ac_ext
  38140. -cat >>conftest.$ac_ext <<_ACEOF
  38141. -/* end confdefs.h. */
  38142. -#include <$ac_header>
  38143. +for ac_func in gethostbyname2
  38144. +do :
  38145. + ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
  38146. +if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
  38147. + cat >>confdefs.h <<_ACEOF
  38148. +#define HAVE_GETHOSTBYNAME2 1
  38149. _ACEOF
  38150. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38151. -case "(($ac_try" in
  38152. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38153. - *) ac_try_echo=$ac_try;;
  38154. -esac
  38155. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38156. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38157. - ac_status=$?
  38158. - grep -v '^ *+' conftest.er1 >conftest.err
  38159. - rm -f conftest.er1
  38160. - cat conftest.err >&5
  38161. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38162. - (exit $ac_status); } >/dev/null && {
  38163. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38164. - test ! -s conftest.err
  38165. - }; then
  38166. - ac_header_preproc=yes
  38167. -else
  38168. - echo "$as_me: failed program was:" >&5
  38169. -sed 's/^/| /' conftest.$ac_ext >&5
  38170. - ac_header_preproc=no
  38171. fi
  38172. +done
  38173. -rm -f conftest.err conftest.$ac_ext
  38174. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38175. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  38176. +ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  38177. +case $ac_cv_c_uint16_t in #(
  38178. + no|yes) ;; #(
  38179. + *)
  38180. -# So? What about this header?
  38181. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38182. - yes:no: )
  38183. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  38184. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38185. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  38186. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  38187. - ac_header_preproc=yes
  38188. - ;;
  38189. - no:yes:* )
  38190. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  38191. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  38192. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  38193. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  38194. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  38195. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  38196. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  38197. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  38198. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  38199. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  38200. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  38201. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  38202. - ;;
  38203. -esac
  38204. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  38205. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38206. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38207. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38208. -else
  38209. - eval "$as_ac_Header=\$ac_header_preproc"
  38210. -fi
  38211. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38212. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38213. -echo "${ECHO_T}$ac_res" >&6; }
  38214. +cat >>confdefs.h <<_ACEOF
  38215. +#define uint16_t $ac_cv_c_uint16_t
  38216. +_ACEOF
  38217. +;;
  38218. + esac
  38219. -fi
  38220. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  38221. - cat >>confdefs.h <<_ACEOF
  38222. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38223. +ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  38224. +case $ac_cv_c_uint32_t in #(
  38225. + no|yes) ;; #(
  38226. + *)
  38227. +
  38228. +$as_echo "#define _UINT32_T 1" >>confdefs.h
  38229. +
  38230. +
  38231. +cat >>confdefs.h <<_ACEOF
  38232. +#define uint32_t $ac_cv_c_uint32_t
  38233. _ACEOF
  38234. +;;
  38235. + esac
  38236. -fi
  38237. +ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  38238. +case $ac_cv_c_uint64_t in #(
  38239. + no|yes) ;; #(
  38240. + *)
  38241. -done
  38242. +$as_echo "#define _UINT64_T 1" >>confdefs.h
  38243. -for ac_func in gethostbyname2
  38244. -do
  38245. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  38246. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  38247. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  38248. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  38249. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38250. -else
  38251. - cat >conftest.$ac_ext <<_ACEOF
  38252. -/* confdefs.h. */
  38253. +cat >>confdefs.h <<_ACEOF
  38254. +#define uint64_t $ac_cv_c_uint64_t
  38255. _ACEOF
  38256. -cat confdefs.h >>conftest.$ac_ext
  38257. -cat >>conftest.$ac_ext <<_ACEOF
  38258. -/* end confdefs.h. */
  38259. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  38260. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38261. -#define $ac_func innocuous_$ac_func
  38262. -
  38263. -/* System header to define __stub macros and hopefully few prototypes,
  38264. - which can conflict with char $ac_func (); below.
  38265. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38266. - <limits.h> exists even on freestanding compilers. */
  38267. +;;
  38268. + esac
  38269. -#ifdef __STDC__
  38270. -# include <limits.h>
  38271. -#else
  38272. -# include <assert.h>
  38273. -#endif
  38274. -#undef $ac_func
  38275. -/* Override any GCC internal prototype to avoid an error.
  38276. - Use char because int might match the return type of a GCC
  38277. - builtin and then its argument prototype would still apply. */
  38278. -#ifdef __cplusplus
  38279. -extern "C"
  38280. -#endif
  38281. -char $ac_func ();
  38282. -/* The GNU C library defines this for functions which it implements
  38283. - to always fail with ENOSYS. Some functions are actually named
  38284. - something starting with __ and the normal name is an alias. */
  38285. -#if defined __stub_$ac_func || defined __stub___$ac_func
  38286. -choke me
  38287. -#endif
  38288. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  38289. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  38290. +if test "${ac_cv_c_bigendian+set}" = set; then :
  38291. + $as_echo_n "(cached) " >&6
  38292. +else
  38293. + ac_cv_c_bigendian=unknown
  38294. + # See if we're dealing with a universal compiler.
  38295. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38296. +/* end confdefs.h. */
  38297. +#ifndef __APPLE_CC__
  38298. + not a universal capable compiler
  38299. + #endif
  38300. + typedef int dummy;
  38301. +
  38302. +_ACEOF
  38303. +if ac_fn_c_try_compile "$LINENO"; then :
  38304. +
  38305. + # Check for potential -arch flags. It is not universal unless
  38306. + # there are at least two -arch flags with different values.
  38307. + ac_arch=
  38308. + ac_prev=
  38309. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  38310. + if test -n "$ac_prev"; then
  38311. + case $ac_word in
  38312. + i?86 | x86_64 | ppc | ppc64)
  38313. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  38314. + ac_arch=$ac_word
  38315. + else
  38316. + ac_cv_c_bigendian=universal
  38317. + break
  38318. + fi
  38319. + ;;
  38320. + esac
  38321. + ac_prev=
  38322. + elif test "x$ac_word" = "x-arch"; then
  38323. + ac_prev=arch
  38324. + fi
  38325. + done
  38326. +fi
  38327. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38328. + if test $ac_cv_c_bigendian = unknown; then
  38329. + # See if sys/param.h defines the BYTE_ORDER macro.
  38330. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38331. +/* end confdefs.h. */
  38332. +#include <sys/types.h>
  38333. + #include <sys/param.h>
  38334. int
  38335. main ()
  38336. {
  38337. -return $ac_func ();
  38338. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  38339. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  38340. + && LITTLE_ENDIAN)
  38341. + bogus endian macros
  38342. + #endif
  38343. +
  38344. ;
  38345. return 0;
  38346. }
  38347. _ACEOF
  38348. -rm -f conftest.$ac_objext conftest$ac_exeext
  38349. -if { (ac_try="$ac_link"
  38350. -case "(($ac_try" in
  38351. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38352. - *) ac_try_echo=$ac_try;;
  38353. -esac
  38354. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38355. - (eval "$ac_link") 2>conftest.er1
  38356. - ac_status=$?
  38357. - grep -v '^ *+' conftest.er1 >conftest.err
  38358. - rm -f conftest.er1
  38359. - cat conftest.err >&5
  38360. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38361. - (exit $ac_status); } && {
  38362. - test -z "$ac_c_werror_flag" ||
  38363. - test ! -s conftest.err
  38364. - } && test -s conftest$ac_exeext &&
  38365. - $as_test_x conftest$ac_exeext; then
  38366. - eval "$as_ac_var=yes"
  38367. -else
  38368. - echo "$as_me: failed program was:" >&5
  38369. -sed 's/^/| /' conftest.$ac_ext >&5
  38370. +if ac_fn_c_try_compile "$LINENO"; then :
  38371. + # It does; now see whether it defined to BIG_ENDIAN or not.
  38372. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38373. +/* end confdefs.h. */
  38374. +#include <sys/types.h>
  38375. + #include <sys/param.h>
  38376. - eval "$as_ac_var=no"
  38377. -fi
  38378. +int
  38379. +main ()
  38380. +{
  38381. +#if BYTE_ORDER != BIG_ENDIAN
  38382. + not big endian
  38383. + #endif
  38384. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38385. - conftest$ac_exeext conftest.$ac_ext
  38386. -fi
  38387. -ac_res=`eval echo '${'$as_ac_var'}'`
  38388. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38389. -echo "${ECHO_T}$ac_res" >&6; }
  38390. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  38391. - cat >>confdefs.h <<_ACEOF
  38392. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  38393. + ;
  38394. + return 0;
  38395. +}
  38396. _ACEOF
  38397. -
  38398. +if ac_fn_c_try_compile "$LINENO"; then :
  38399. + ac_cv_c_bigendian=yes
  38400. +else
  38401. + ac_cv_c_bigendian=no
  38402. fi
  38403. -done
  38404. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38405. +fi
  38406. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38407. + fi
  38408. + if test $ac_cv_c_bigendian = unknown; then
  38409. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  38410. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38411. +/* end confdefs.h. */
  38412. +#include <limits.h>
  38413. +int
  38414. +main ()
  38415. +{
  38416. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  38417. + bogus endian macros
  38418. + #endif
  38419. - { echo "$as_me:$LINENO: checking for uint16_t" >&5
  38420. -echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  38421. -if test "${ac_cv_c_uint16_t+set}" = set; then
  38422. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38423. -else
  38424. - ac_cv_c_uint16_t=no
  38425. - for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  38426. - 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  38427. - cat >conftest.$ac_ext <<_ACEOF
  38428. -/* confdefs.h. */
  38429. + ;
  38430. + return 0;
  38431. +}
  38432. _ACEOF
  38433. -cat confdefs.h >>conftest.$ac_ext
  38434. -cat >>conftest.$ac_ext <<_ACEOF
  38435. +if ac_fn_c_try_compile "$LINENO"; then :
  38436. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  38437. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38438. /* end confdefs.h. */
  38439. -$ac_includes_default
  38440. +#include <limits.h>
  38441. +
  38442. int
  38443. main ()
  38444. {
  38445. -static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  38446. -test_array [0] = 0
  38447. +#ifndef _BIG_ENDIAN
  38448. + not big endian
  38449. + #endif
  38450. ;
  38451. return 0;
  38452. }
  38453. _ACEOF
  38454. -rm -f conftest.$ac_objext
  38455. -if { (ac_try="$ac_compile"
  38456. -case "(($ac_try" in
  38457. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38458. - *) ac_try_echo=$ac_try;;
  38459. -esac
  38460. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38461. - (eval "$ac_compile") 2>conftest.er1
  38462. - ac_status=$?
  38463. - grep -v '^ *+' conftest.er1 >conftest.err
  38464. - rm -f conftest.er1
  38465. - cat conftest.err >&5
  38466. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38467. - (exit $ac_status); } && {
  38468. - test -z "$ac_c_werror_flag" ||
  38469. - test ! -s conftest.err
  38470. - } && test -s conftest.$ac_objext; then
  38471. - case $ac_type in
  38472. - uint16_t) ac_cv_c_uint16_t=yes ;;
  38473. - *) ac_cv_c_uint16_t=$ac_type ;;
  38474. -esac
  38475. -
  38476. +if ac_fn_c_try_compile "$LINENO"; then :
  38477. + ac_cv_c_bigendian=yes
  38478. else
  38479. - echo "$as_me: failed program was:" >&5
  38480. -sed 's/^/| /' conftest.$ac_ext >&5
  38481. -
  38482. -
  38483. + ac_cv_c_bigendian=no
  38484. fi
  38485. -
  38486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38487. - test "$ac_cv_c_uint16_t" != no && break
  38488. - done
  38489. fi
  38490. -{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  38491. -echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  38492. - case $ac_cv_c_uint16_t in #(
  38493. - no|yes) ;; #(
  38494. - *)
  38495. -
  38496. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38497. + fi
  38498. + if test $ac_cv_c_bigendian = unknown; then
  38499. + # Compile a test program.
  38500. + if test "$cross_compiling" = yes; then :
  38501. + # Try to guess by grepping values from an object file.
  38502. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38503. +/* end confdefs.h. */
  38504. +short int ascii_mm[] =
  38505. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  38506. + short int ascii_ii[] =
  38507. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  38508. + int use_ascii (int i) {
  38509. + return ascii_mm[i] + ascii_ii[i];
  38510. + }
  38511. + short int ebcdic_ii[] =
  38512. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  38513. + short int ebcdic_mm[] =
  38514. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  38515. + int use_ebcdic (int i) {
  38516. + return ebcdic_mm[i] + ebcdic_ii[i];
  38517. + }
  38518. + extern int foo;
  38519. -cat >>confdefs.h <<_ACEOF
  38520. -#define uint16_t $ac_cv_c_uint16_t
  38521. +int
  38522. +main ()
  38523. +{
  38524. +return use_ascii (foo) == use_ebcdic (foo);
  38525. + ;
  38526. + return 0;
  38527. +}
  38528. _ACEOF
  38529. -;;
  38530. - esac
  38531. -
  38532. -
  38533. - { echo "$as_me:$LINENO: checking for uint32_t" >&5
  38534. -echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  38535. -if test "${ac_cv_c_uint32_t+set}" = set; then
  38536. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38537. +if ac_fn_c_try_compile "$LINENO"; then :
  38538. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  38539. + ac_cv_c_bigendian=yes
  38540. + fi
  38541. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  38542. + if test "$ac_cv_c_bigendian" = unknown; then
  38543. + ac_cv_c_bigendian=no
  38544. + else
  38545. + # finding both strings is unlikely to happen, but who knows?
  38546. + ac_cv_c_bigendian=unknown
  38547. + fi
  38548. + fi
  38549. +fi
  38550. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38551. else
  38552. - ac_cv_c_uint32_t=no
  38553. - for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  38554. - 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  38555. - cat >conftest.$ac_ext <<_ACEOF
  38556. -/* confdefs.h. */
  38557. -_ACEOF
  38558. -cat confdefs.h >>conftest.$ac_ext
  38559. -cat >>conftest.$ac_ext <<_ACEOF
  38560. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38561. /* end confdefs.h. */
  38562. $ac_includes_default
  38563. int
  38564. main ()
  38565. {
  38566. -static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  38567. -test_array [0] = 0
  38568. +
  38569. + /* Are we little or big endian? From Harbison&Steele. */
  38570. + union
  38571. + {
  38572. + long int l;
  38573. + char c[sizeof (long int)];
  38574. + } u;
  38575. + u.l = 1;
  38576. + return u.c[sizeof (long int) - 1] == 1;
  38577. ;
  38578. return 0;
  38579. }
  38580. _ACEOF
  38581. -rm -f conftest.$ac_objext
  38582. -if { (ac_try="$ac_compile"
  38583. -case "(($ac_try" in
  38584. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38585. - *) ac_try_echo=$ac_try;;
  38586. +if ac_fn_c_try_run "$LINENO"; then :
  38587. + ac_cv_c_bigendian=no
  38588. +else
  38589. + ac_cv_c_bigendian=yes
  38590. +fi
  38591. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38592. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38593. +fi
  38594. +
  38595. + fi
  38596. +fi
  38597. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  38598. +$as_echo "$ac_cv_c_bigendian" >&6; }
  38599. + case $ac_cv_c_bigendian in #(
  38600. + yes)
  38601. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  38602. +;; #(
  38603. + no)
  38604. + ;; #(
  38605. + universal)
  38606. +
  38607. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  38608. +
  38609. + ;; #(
  38610. + *)
  38611. + as_fn_error "unknown endianness
  38612. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  38613. + esac
  38614. +
  38615. + if test $ac_cv_c_bigendian = yes ; then
  38616. +
  38617. +$as_echo "#define LIBNET_BIG_ENDIAN 1" >>confdefs.h
  38618. +
  38619. + ENDIANESS="LIBNET_BIG_ENDIAN"
  38620. + LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
  38621. + else
  38622. +
  38623. +$as_echo "#define LIBNET_LIL_ENDIAN 1" >>confdefs.h
  38624. +
  38625. + ENDIANESS="LIBNET_LIL_ENDIAN"
  38626. + LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
  38627. + fi
  38628. +
  38629. +
  38630. +
  38631. +
  38632. +
  38633. +
  38634. +
  38635. +
  38636. +
  38637. +
  38638. +
  38639. +
  38640. +
  38641. +# Check whether --with-link-layer was given.
  38642. +if test "${with_link_layer+set}" = set; then :
  38643. + withval=$with_link_layer;
  38644. +fi
  38645. +
  38646. +
  38647. +for ac_header in net/pfilt.h sys/net/nit.h net/raw.h sys/dlpi.h linux/socket.h
  38648. +do :
  38649. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38650. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  38651. +eval as_val=\$$as_ac_Header
  38652. + if test "x$as_val" = x""yes; then :
  38653. + cat >>confdefs.h <<_ACEOF
  38654. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38655. +_ACEOF
  38656. +
  38657. +fi
  38658. +
  38659. +done
  38660. +
  38661. +
  38662. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking link-layer packet interface type" >&5
  38663. +$as_echo_n "checking link-layer packet interface type... " >&6; }
  38664. +
  38665. +if test -n "${with_link_layer}"; then
  38666. + case "${with_link_layer}" in
  38667. + bpf) case " $LIBOBJS " in
  38668. + *" libnet_link_bpf.$ac_objext "* ) ;;
  38669. + *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
  38670. + ;;
  38671. esac
  38672. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38673. - (eval "$ac_compile") 2>conftest.er1
  38674. - ac_status=$?
  38675. - grep -v '^ *+' conftest.er1 >conftest.err
  38676. - rm -f conftest.er1
  38677. - cat conftest.err >&5
  38678. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38679. - (exit $ac_status); } && {
  38680. - test -z "$ac_c_werror_flag" ||
  38681. - test ! -s conftest.err
  38682. - } && test -s conftest.$ac_objext; then
  38683. - case $ac_type in
  38684. - uint32_t) ac_cv_c_uint32_t=yes ;;
  38685. - *) ac_cv_c_uint32_t=$ac_type ;;
  38686. + ;;
  38687. + pf) case " $LIBOBJS " in
  38688. + *" libnet_link_pf.$ac_objext "* ) ;;
  38689. + *) LIBOBJS="$LIBOBJS libnet_link_pf.$ac_objext"
  38690. + ;;
  38691. +esac
  38692. + ;;
  38693. + snit) case " $LIBOBJS " in
  38694. + *" libnet_link_snit.$ac_objext "* ) ;;
  38695. + *) LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
  38696. + ;;
  38697. +esac
  38698. + ;;
  38699. + nit) case " $LIBOBJS " in
  38700. + *" libnet_link_nit.$ac_objext "* ) ;;
  38701. + *) LIBOBJS="$LIBOBJS libnet_link_nit.$ac_objext"
  38702. + ;;
  38703. +esac
  38704. + ;;
  38705. + snoop) case " $LIBOBJS " in
  38706. + *" libnet_link_snoop.$ac_objext "* ) ;;
  38707. + *) LIBOBJS="$LIBOBJS libnet_link_snoop.$ac_objext"
  38708. + ;;
  38709. +esac
  38710. + ;;
  38711. + dlpi) case " $LIBOBJS " in
  38712. + *" libnet_link_dlpi.$ac_objext "* ) ;;
  38713. + *) LIBOBJS="$LIBOBJS libnet_link_dlpi.$ac_objext"
  38714. + ;;
  38715. +esac
  38716. + ;;
  38717. + linux) case " $LIBOBJS " in
  38718. + *" libnet_link_linux.$ac_objext "* ) ;;
  38719. + *) LIBOBJS="$LIBOBJS libnet_link_linux.$ac_objext"
  38720. + ;;
  38721. esac
  38722. +
  38723. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packet socket (PF_SOCKET)" >&5
  38724. +$as_echo_n "checking for packet socket (PF_SOCKET)... " >&6; }
  38725. + if test "${libnet_cv_have_packet_socket+set}" = set; then :
  38726. + $as_echo_n "(cached) " >&6
  38727. else
  38728. - echo "$as_me: failed program was:" >&5
  38729. -sed 's/^/| /' conftest.$ac_ext >&5
  38730. + case "$target_os" in
  38731. +
  38732. + linux*)
  38733. + libnet_cv_have_packet_socket=no
  38734. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38735. +$as_echo "no" >&6; }
  38736. + ;;
  38737. + *)
  38738. +
  38739. + cat > pf_packet-test.c << EOF
  38740. +#include <stdio.h>
  38741. +#include <errno.h>
  38742. +#include <stdlib.h>
  38743. +#include <netinet/in.h>
  38744. +#include <sys/socket.h>
  38745. +#include <features.h> /* for the glibc version number */
  38746. +#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
  38747. +#include <netpacket/packet.h>
  38748. +#include <net/ethernet.h> /* the L2 protocols */
  38749. +#else
  38750. +#include <asm/types.h>
  38751. +#include <linux/if_packet.h>
  38752. +#include <linux/if_ether.h> /* The L2 protocols */
  38753. +#endif
  38754. +
  38755. +#ifndef SOL_PACKET
  38756. +#define SOL_PACKET 263
  38757. +#endif /* SOL_PACKET */
  38758. +
  38759. +int
  38760. +main(int argc, char **argv)
  38761. +{
  38762. + int fd;
  38763. + fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  38764. + if (fd == -1)
  38765. + {
  38766. + if (errno == EPERM)
  38767. + {
  38768. + /* user's UID != 0 */
  38769. + printf("probably");
  38770. + exit (EXIT_FAILURE);
  38771. + }
  38772. + printf("no");
  38773. + exit (EXIT_FAILURE);
  38774. + }
  38775. + printf("yes");
  38776. + exit (EXIT_SUCCESS);
  38777. +}
  38778. +EOF
  38779. + ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
  38780. -fi
  38781. + # Oopz 4.3 BSD doesn't have this. Sorry.
  38782. + if test ! -x ./pf_packet-test ; then
  38783. + libnet_cv_have_packet_socket=choked
  38784. + else
  38785. + libnet_cv_have_packet_socket=`./pf_packet-test`;
  38786. + fi
  38787. + if test $libnet_cv_have_packet_socket = choked; then
  38788. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program compile choked... assuming no" >&5
  38789. +$as_echo "test program compile choked... assuming no" >&6; }
  38790. + elif test $libnet_cv_have_packet_socket = yes; then
  38791. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38792. +$as_echo "yes" >&6; }
  38793. + elif test $libnet_cv_have_packet_socket = probably; then
  38794. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program got EPERM... assuming yes" >&5
  38795. +$as_echo "test program got EPERM... assuming yes" >&6; }
  38796. + elif test $libnet_cv_have_packet_socket = no; then
  38797. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38798. +$as_echo "no" >&6; }
  38799. + fi
  38800. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38801. - test "$ac_cv_c_uint32_t" != no && break
  38802. - done
  38803. + rm -f pf_packet-test* core core.pf_packet-test
  38804. + ;;
  38805. + esac
  38806. fi
  38807. -{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  38808. -echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  38809. - case $ac_cv_c_uint32_t in #(
  38810. - no|yes) ;; #(
  38811. - *)
  38812. -cat >>confdefs.h <<\_ACEOF
  38813. -#define _UINT32_T 1
  38814. -_ACEOF
  38815. + if test $libnet_cv_have_packet_socket = yes -o $libnet_cv_have_packet_socket = probably; then
  38816. -cat >>confdefs.h <<_ACEOF
  38817. -#define uint32_t $ac_cv_c_uint32_t
  38818. -_ACEOF
  38819. -;;
  38820. - esac
  38821. +$as_echo "#define HAVE_PACKET_SOCKET 1" >>confdefs.h
  38822. + fi
  38823. - { echo "$as_me:$LINENO: checking for uint64_t" >&5
  38824. -echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  38825. -if test "${ac_cv_c_uint64_t+set}" = set; then
  38826. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38827. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux proc filesystem" >&5
  38828. +$as_echo_n "checking for Linux proc filesystem... " >&6; }
  38829. + if test "${ac_cv_libnet_linux_procfs+set}" = set; then :
  38830. + $as_echo_n "(cached) " >&6
  38831. else
  38832. - ac_cv_c_uint64_t=no
  38833. - for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  38834. - 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  38835. - cat >conftest.$ac_ext <<_ACEOF
  38836. -/* confdefs.h. */
  38837. -_ACEOF
  38838. -cat confdefs.h >>conftest.$ac_ext
  38839. -cat >>conftest.$ac_ext <<_ACEOF
  38840. -/* end confdefs.h. */
  38841. -$ac_includes_default
  38842. -int
  38843. -main ()
  38844. -{
  38845. -static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  38846. -test_array [0] = 0
  38847. + if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
  38848. + ac_cv_libnet_linux_procfs=yes
  38849. + else
  38850. + ac_cv_libnet_linux_procfs=no
  38851. + fi
  38852. +fi
  38853. - ;
  38854. - return 0;
  38855. -}
  38856. -_ACEOF
  38857. -rm -f conftest.$ac_objext
  38858. -if { (ac_try="$ac_compile"
  38859. -case "(($ac_try" in
  38860. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38861. - *) ac_try_echo=$ac_try;;
  38862. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnet_linux_procfs" >&5
  38863. +$as_echo "$ac_cv_libnet_linux_procfs" >&6; }
  38864. + if test $ac_cv_libnet_linux_procfs = yes ; then
  38865. +
  38866. +$as_echo "#define HAVE_LINUX_PROCFS 1" >>confdefs.h
  38867. +
  38868. + fi ;;
  38869. + none) case " $LIBOBJS " in
  38870. + *" libnet_link_none.$ac_objext "* ) ;;
  38871. + *) LIBOBJS="$LIBOBJS libnet_link_none.$ac_objext"
  38872. + ;;
  38873. esac
  38874. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38875. - (eval "$ac_compile") 2>conftest.er1
  38876. - ac_status=$?
  38877. - grep -v '^ *+' conftest.er1 >conftest.err
  38878. - rm -f conftest.er1
  38879. - cat conftest.err >&5
  38880. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38881. - (exit $ac_status); } && {
  38882. - test -z "$ac_c_werror_flag" ||
  38883. - test ! -s conftest.err
  38884. - } && test -s conftest.$ac_objext; then
  38885. - case $ac_type in
  38886. - uint64_t) ac_cv_c_uint64_t=yes ;;
  38887. - *) ac_cv_c_uint64_t=$ac_type ;;
  38888. + ;;
  38889. + *) as_fn_error "Invalid link type \"${with_link_layer}\"" "$LINENO" 5 ;;
  38890. + esac
  38891. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: forced link layer to ${with_link_layer}" >&5
  38892. +$as_echo "forced link layer to ${with_link_layer}" >&6; }
  38893. +elif test "${cross_compiling}" != "yes" -a -r /dev/bpf0 ; then
  38894. + case " $LIBOBJS " in
  38895. + *" libnet_link_bpf.$ac_objext "* ) ;;
  38896. + *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
  38897. + ;;
  38898. esac
  38899. -else
  38900. - echo "$as_me: failed program was:" >&5
  38901. -sed 's/^/| /' conftest.$ac_ext >&5
  38902. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer bpf" >&5
  38903. +$as_echo "found link layer bpf" >&6; }
  38904. +elif test "${ac_cv_header_net_pfilt_h}" = "yes" ; then
  38905. + case " $LIBOBJS " in
  38906. + *" libnet_link_pf.$ac_objext "* ) ;;
  38907. + *) LIBOBJS="$LIBOBJS libnet_link_pf.$ac_objext"
  38908. + ;;
  38909. +esac
  38910. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer pf" >&5
  38911. +$as_echo "found link layer pf" >&6; }
  38912. +elif test "${cross_compiling}" != "yes" -a -r /dev/nit ; then
  38913. + case " $LIBOBJS " in
  38914. + *" libnet_link_snit.$ac_objext "* ) ;;
  38915. + *) LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
  38916. + ;;
  38917. +esac
  38918. -fi
  38919. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer snit" >&5
  38920. +$as_echo "found link layer snit" >&6; }
  38921. +elif test "${ac_cv_header_sys_net_nit_h}" = "yes" ; then
  38922. + case " $LIBOBJS " in
  38923. + *" libnet_link_nit.$ac_objext "* ) ;;
  38924. + *) LIBOBJS="$LIBOBJS libnet_link_nit.$ac_objext"
  38925. + ;;
  38926. +esac
  38927. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38928. - test "$ac_cv_c_uint64_t" != no && break
  38929. - done
  38930. -fi
  38931. -{ echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  38932. -echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  38933. - case $ac_cv_c_uint64_t in #(
  38934. - no|yes) ;; #(
  38935. - *)
  38936. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer nit" >&5
  38937. +$as_echo "found link layer nit" >&6; }
  38938. +elif test "${ac_cv_header_net_raw_h}" = "yes" ; then
  38939. + case " $LIBOBJS " in
  38940. + *" libnet_link_snoop.$ac_objext "* ) ;;
  38941. + *) LIBOBJS="$LIBOBJS libnet_link_snoop.$ac_objext"
  38942. + ;;
  38943. +esac
  38944. -cat >>confdefs.h <<\_ACEOF
  38945. -#define _UINT64_T 1
  38946. -_ACEOF
  38947. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer snoop" >&5
  38948. +$as_echo "found link layer snoop" >&6; }
  38949. +elif test "${ac_cv_header_sys_dlpi_h}" = "yes" ; then
  38950. + case " $LIBOBJS " in
  38951. + *" libnet_link_dlpi.$ac_objext "* ) ;;
  38952. + *) LIBOBJS="$LIBOBJS libnet_link_dlpi.$ac_objext"
  38953. + ;;
  38954. +esac
  38955. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer dlpi" >&5
  38956. +$as_echo "found link layer dlpi" >&6; }
  38957. -cat >>confdefs.h <<_ACEOF
  38958. -#define uint64_t $ac_cv_c_uint64_t
  38959. -_ACEOF
  38960. -;;
  38961. - esac
  38962. +$as_echo "#define HAVE_DLPI 1" >>confdefs.h
  38963. +elif test "${ac_cv_header_linux_socket_h}" = "yes" ; then
  38964. + case " $LIBOBJS " in
  38965. + *" libnet_link_linux.$ac_objext "* ) ;;
  38966. + *) LIBOBJS="$LIBOBJS libnet_link_linux.$ac_objext"
  38967. + ;;
  38968. +esac
  38969. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer linux" >&5
  38970. +$as_echo "found link layer linux" >&6; }
  38971. -{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  38972. -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  38973. -if test "${ac_cv_c_bigendian+set}" = set; then
  38974. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38975. -else
  38976. - # See if sys/param.h defines the BYTE_ORDER macro.
  38977. -cat >conftest.$ac_ext <<_ACEOF
  38978. -/* confdefs.h. */
  38979. -_ACEOF
  38980. -cat confdefs.h >>conftest.$ac_ext
  38981. -cat >>conftest.$ac_ext <<_ACEOF
  38982. -/* end confdefs.h. */
  38983. -#include <sys/types.h>
  38984. -#include <sys/param.h>
  38985. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packet socket (PF_SOCKET)" >&5
  38986. +$as_echo_n "checking for packet socket (PF_SOCKET)... " >&6; }
  38987. + if test "${libnet_cv_have_packet_socket+set}" = set; then :
  38988. + $as_echo_n "(cached) " >&6
  38989. +else
  38990. + case "$target_os" in
  38991. -int
  38992. -main ()
  38993. -{
  38994. -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  38995. - && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  38996. - bogus endian macros
  38997. + linux*)
  38998. + libnet_cv_have_packet_socket=no
  38999. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39000. +$as_echo "no" >&6; }
  39001. + ;;
  39002. + *)
  39003. +
  39004. + cat > pf_packet-test.c << EOF
  39005. +#include <stdio.h>
  39006. +#include <errno.h>
  39007. +#include <stdlib.h>
  39008. +#include <netinet/in.h>
  39009. +#include <sys/socket.h>
  39010. +#include <features.h> /* for the glibc version number */
  39011. +#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
  39012. +#include <netpacket/packet.h>
  39013. +#include <net/ethernet.h> /* the L2 protocols */
  39014. +#else
  39015. +#include <asm/types.h>
  39016. +#include <linux/if_packet.h>
  39017. +#include <linux/if_ether.h> /* The L2 protocols */
  39018. #endif
  39019. - ;
  39020. - return 0;
  39021. -}
  39022. -_ACEOF
  39023. -rm -f conftest.$ac_objext
  39024. -if { (ac_try="$ac_compile"
  39025. -case "(($ac_try" in
  39026. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39027. - *) ac_try_echo=$ac_try;;
  39028. -esac
  39029. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39030. - (eval "$ac_compile") 2>conftest.er1
  39031. - ac_status=$?
  39032. - grep -v '^ *+' conftest.er1 >conftest.err
  39033. - rm -f conftest.er1
  39034. - cat conftest.err >&5
  39035. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39036. - (exit $ac_status); } && {
  39037. - test -z "$ac_c_werror_flag" ||
  39038. - test ! -s conftest.err
  39039. - } && test -s conftest.$ac_objext; then
  39040. - # It does; now see whether it defined to BIG_ENDIAN or not.
  39041. -cat >conftest.$ac_ext <<_ACEOF
  39042. -/* confdefs.h. */
  39043. -_ACEOF
  39044. -cat confdefs.h >>conftest.$ac_ext
  39045. -cat >>conftest.$ac_ext <<_ACEOF
  39046. -/* end confdefs.h. */
  39047. -#include <sys/types.h>
  39048. -#include <sys/param.h>
  39049. +#ifndef SOL_PACKET
  39050. +#define SOL_PACKET 263
  39051. +#endif /* SOL_PACKET */
  39052. int
  39053. -main ()
  39054. +main(int argc, char **argv)
  39055. {
  39056. -#if BYTE_ORDER != BIG_ENDIAN
  39057. - not big endian
  39058. -#endif
  39059. + int fd;
  39060. - ;
  39061. - return 0;
  39062. + fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  39063. + if (fd == -1)
  39064. + {
  39065. + if (errno == EPERM)
  39066. + {
  39067. + /* user's UID != 0 */
  39068. + printf("probably");
  39069. + exit (EXIT_FAILURE);
  39070. + }
  39071. + printf("no");
  39072. + exit (EXIT_FAILURE);
  39073. + }
  39074. + printf("yes");
  39075. + exit (EXIT_SUCCESS);
  39076. }
  39077. -_ACEOF
  39078. -rm -f conftest.$ac_objext
  39079. -if { (ac_try="$ac_compile"
  39080. -case "(($ac_try" in
  39081. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39082. - *) ac_try_echo=$ac_try;;
  39083. -esac
  39084. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39085. - (eval "$ac_compile") 2>conftest.er1
  39086. - ac_status=$?
  39087. - grep -v '^ *+' conftest.er1 >conftest.err
  39088. - rm -f conftest.er1
  39089. - cat conftest.err >&5
  39090. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39091. - (exit $ac_status); } && {
  39092. - test -z "$ac_c_werror_flag" ||
  39093. - test ! -s conftest.err
  39094. - } && test -s conftest.$ac_objext; then
  39095. - ac_cv_c_bigendian=yes
  39096. -else
  39097. - echo "$as_me: failed program was:" >&5
  39098. -sed 's/^/| /' conftest.$ac_ext >&5
  39099. -
  39100. - ac_cv_c_bigendian=no
  39101. -fi
  39102. -
  39103. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39104. -else
  39105. - echo "$as_me: failed program was:" >&5
  39106. -sed 's/^/| /' conftest.$ac_ext >&5
  39107. +EOF
  39108. + ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
  39109. - # It does not; compile a test program.
  39110. -if test "$cross_compiling" = yes; then
  39111. - # try to guess the endianness by grepping values into an object file
  39112. - ac_cv_c_bigendian=unknown
  39113. - cat >conftest.$ac_ext <<_ACEOF
  39114. -/* confdefs.h. */
  39115. -_ACEOF
  39116. -cat confdefs.h >>conftest.$ac_ext
  39117. -cat >>conftest.$ac_ext <<_ACEOF
  39118. -/* end confdefs.h. */
  39119. -short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  39120. -short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  39121. -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  39122. -short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  39123. -short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  39124. -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  39125. -int
  39126. -main ()
  39127. -{
  39128. - _ascii (); _ebcdic ();
  39129. - ;
  39130. - return 0;
  39131. -}
  39132. -_ACEOF
  39133. -rm -f conftest.$ac_objext
  39134. -if { (ac_try="$ac_compile"
  39135. -case "(($ac_try" in
  39136. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39137. - *) ac_try_echo=$ac_try;;
  39138. -esac
  39139. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39140. - (eval "$ac_compile") 2>conftest.er1
  39141. - ac_status=$?
  39142. - grep -v '^ *+' conftest.er1 >conftest.err
  39143. - rm -f conftest.er1
  39144. - cat conftest.err >&5
  39145. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39146. - (exit $ac_status); } && {
  39147. - test -z "$ac_c_werror_flag" ||
  39148. - test ! -s conftest.err
  39149. - } && test -s conftest.$ac_objext; then
  39150. - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  39151. - ac_cv_c_bigendian=yes
  39152. -fi
  39153. -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  39154. - if test "$ac_cv_c_bigendian" = unknown; then
  39155. - ac_cv_c_bigendian=no
  39156. - else
  39157. - # finding both strings is unlikely to happen, but who knows?
  39158. - ac_cv_c_bigendian=unknown
  39159. - fi
  39160. + # Oopz 4.3 BSD doesn't have this. Sorry.
  39161. + if test ! -x ./pf_packet-test ; then
  39162. + libnet_cv_have_packet_socket=choked
  39163. + else
  39164. + libnet_cv_have_packet_socket=`./pf_packet-test`;
  39165. + fi
  39166. + if test $libnet_cv_have_packet_socket = choked; then
  39167. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program compile choked... assuming no" >&5
  39168. +$as_echo "test program compile choked... assuming no" >&6; }
  39169. + elif test $libnet_cv_have_packet_socket = yes; then
  39170. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39171. +$as_echo "yes" >&6; }
  39172. + elif test $libnet_cv_have_packet_socket = probably; then
  39173. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program got EPERM... assuming yes" >&5
  39174. +$as_echo "test program got EPERM... assuming yes" >&6; }
  39175. + elif test $libnet_cv_have_packet_socket = no; then
  39176. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39177. +$as_echo "no" >&6; }
  39178. + fi
  39179. +
  39180. + rm -f pf_packet-test* core core.pf_packet-test
  39181. + ;;
  39182. + esac
  39183. fi
  39184. -else
  39185. - echo "$as_me: failed program was:" >&5
  39186. -sed 's/^/| /' conftest.$ac_ext >&5
  39187. -fi
  39188. + if test $libnet_cv_have_packet_socket = yes -o $libnet_cv_have_packet_socket = probably; then
  39189. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39190. +$as_echo "#define HAVE_PACKET_SOCKET 1" >>confdefs.h
  39191. +
  39192. + fi
  39193. +
  39194. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux proc filesystem" >&5
  39195. +$as_echo_n "checking for Linux proc filesystem... " >&6; }
  39196. + if test "${ac_cv_libnet_linux_procfs+set}" = set; then :
  39197. + $as_echo_n "(cached) " >&6
  39198. else
  39199. - cat >conftest.$ac_ext <<_ACEOF
  39200. -/* confdefs.h. */
  39201. -_ACEOF
  39202. -cat confdefs.h >>conftest.$ac_ext
  39203. -cat >>conftest.$ac_ext <<_ACEOF
  39204. -/* end confdefs.h. */
  39205. -$ac_includes_default
  39206. -int
  39207. -main ()
  39208. -{
  39209. + if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
  39210. + ac_cv_libnet_linux_procfs=yes
  39211. + else
  39212. + ac_cv_libnet_linux_procfs=no
  39213. + fi
  39214. +fi
  39215. - /* Are we little or big endian? From Harbison&Steele. */
  39216. - union
  39217. - {
  39218. - long int l;
  39219. - char c[sizeof (long int)];
  39220. - } u;
  39221. - u.l = 1;
  39222. - return u.c[sizeof (long int) - 1] == 1;
  39223. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnet_linux_procfs" >&5
  39224. +$as_echo "$ac_cv_libnet_linux_procfs" >&6; }
  39225. + if test $ac_cv_libnet_linux_procfs = yes ; then
  39226. - ;
  39227. - return 0;
  39228. -}
  39229. -_ACEOF
  39230. -rm -f conftest$ac_exeext
  39231. -if { (ac_try="$ac_link"
  39232. -case "(($ac_try" in
  39233. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39234. - *) ac_try_echo=$ac_try;;
  39235. +$as_echo "#define HAVE_LINUX_PROCFS 1" >>confdefs.h
  39236. +
  39237. + fi
  39238. +elif test "${cross_compiling}" != "yes" -a -c /dev/bpf0 ; then # check again in case not readable
  39239. + case " $LIBOBJS " in
  39240. + *" libnet_link_bpf.$ac_objext "* ) ;;
  39241. + *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
  39242. + ;;
  39243. esac
  39244. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39245. - (eval "$ac_link") 2>&5
  39246. - ac_status=$?
  39247. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39248. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39249. - { (case "(($ac_try" in
  39250. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39251. - *) ac_try_echo=$ac_try;;
  39252. +
  39253. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer bpf" >&5
  39254. +$as_echo "found link layer bpf" >&6; }
  39255. +elif test "${cross_compiling}" != "yes" -a -c /dev/nit ; then # check again in case not readable
  39256. + case " $LIBOBJS " in
  39257. + *" libnet_link_snit.$ac_objext "* ) ;;
  39258. + *) LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
  39259. + ;;
  39260. esac
  39261. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39262. - (eval "$ac_try") 2>&5
  39263. - ac_status=$?
  39264. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39265. - (exit $ac_status); }; }; then
  39266. - ac_cv_c_bigendian=no
  39267. +
  39268. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer snit" >&5
  39269. +$as_echo "found link layer snit" >&6; }
  39270. +elif test "$target_os" = "cygwin" ; then
  39271. + case " $LIBOBJS " in
  39272. + *" libnet_link_win32.$ac_objext "* ) ;;
  39273. + *) LIBOBJS="$LIBOBJS libnet_link_win32.$ac_objext"
  39274. + ;;
  39275. +esac
  39276. +
  39277. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer win32 wpcap" >&5
  39278. +$as_echo "found link layer win32 wpcap" >&6; }
  39279. else
  39280. - echo "$as_me: program exited with status $ac_status" >&5
  39281. -echo "$as_me: failed program was:" >&5
  39282. -sed 's/^/| /' conftest.$ac_ext >&5
  39283. + case " $LIBOBJS " in
  39284. + *" libnet_link_none.$ac_objext "* ) ;;
  39285. + *) LIBOBJS="$LIBOBJS libnet_link_none.$ac_objext"
  39286. + ;;
  39287. +esac
  39288. -( exit $ac_status )
  39289. -ac_cv_c_bigendian=yes
  39290. -fi
  39291. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39292. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a link-layer packet interface" >&5
  39293. +$as_echo "$as_me: WARNING: could not find a link-layer packet interface" >&2;}
  39294. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: link-layer packet injection will not be available" >&5
  39295. +$as_echo "$as_me: WARNING: link-layer packet injection will not be available" >&2;}
  39296. fi
  39297. +LIBOBJS=`echo "$LIBOBJS" |
  39298. + sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
  39299. +LTLIBOBJS=`echo "$LIBOBJS" |
  39300. + sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
  39301. -fi
  39302. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39303. -fi
  39304. -{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  39305. -echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  39306. -case $ac_cv_c_bigendian in
  39307. - yes)
  39308. -cat >>confdefs.h <<\_ACEOF
  39309. -#define WORDS_BIGENDIAN 1
  39310. -_ACEOF
  39311. - ;;
  39312. - no)
  39313. - ;;
  39314. - *)
  39315. - { { echo "$as_me:$LINENO: error: unknown endianness
  39316. -presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  39317. -echo "$as_me: error: unknown endianness
  39318. -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  39319. - { (exit 1); exit 1; }; } ;;
  39320. -esac
  39321. +echo -n "scanning available packet construction modules: "
  39322. +for dir in src/*build*c ; do
  39323. + echo $dir | sed -e /src\\/libnet_build_/s/// | sed -e /\\.c/s/// | tr \\n \\040
  39324. +done
  39325. +echo ""
  39326. - if test $ac_cv_c_bigendian = yes ; then
  39327. -cat >>confdefs.h <<\_ACEOF
  39328. -#define LIBNET_BIG_ENDIAN 1
  39329. -_ACEOF
  39330. +case "$target_os" in
  39331. - ENDIANESS="LIBNET_BIG_ENDIAN"
  39332. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
  39333. - else
  39334. +*linux*)
  39335. -cat >>confdefs.h <<\_ACEOF
  39336. -#define LIBNET_LIL_ENDIAN 1
  39337. -_ACEOF
  39338. +$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
  39339. - ENDIANESS="LIBNET_LIL_ENDIAN"
  39340. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
  39341. - fi
  39342. +$as_echo "#define __BSD_SOURCE 1" >>confdefs.h
  39343. +$as_echo "#define __FAVOR_BSD 1" >>confdefs.h
  39344. + LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
  39345. + for ac_header in net/ethernet.h
  39346. +do :
  39347. + ac_fn_c_check_header_mongrel "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default"
  39348. +if test "x$ac_cv_header_net_ethernet_h" = x""yes; then :
  39349. + cat >>confdefs.h <<_ACEOF
  39350. +#define HAVE_NET_ETHERNET_H 1
  39351. +_ACEOF
  39352. + \
  39353. + LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
  39354. +fi
  39355. +done
  39356. + ;;
  39357. +*freebsd*)
  39358. +$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
  39359. +$as_echo "#define LIBNET_BSD_BYTE_SWAP 1" >>confdefs.h
  39360. -# Check whether --with-link-layer was given.
  39361. -if test "${with_link_layer+set}" = set; then
  39362. - withval=$with_link_layer;
  39363. -fi
  39364. +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
  39365. + LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN"
  39366. + ;;
  39367. +*netbsd*)
  39368. +$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
  39369. +$as_echo "#define LIBNET_BSD_BYTE_SWAP 1" >>confdefs.h
  39370. -for ac_header in net/pfilt.h sys/net/nit.h net/raw.h sys/dlpi.h linux/socket.h
  39371. -do
  39372. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39373. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39374. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  39375. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39376. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39377. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39378. -fi
  39379. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39380. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39381. -echo "${ECHO_T}$ac_res" >&6; }
  39382. -else
  39383. - # Is the header compilable?
  39384. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39385. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  39386. -cat >conftest.$ac_ext <<_ACEOF
  39387. -/* confdefs.h. */
  39388. -_ACEOF
  39389. -cat confdefs.h >>conftest.$ac_ext
  39390. -cat >>conftest.$ac_ext <<_ACEOF
  39391. -/* end confdefs.h. */
  39392. -$ac_includes_default
  39393. -#include <$ac_header>
  39394. -_ACEOF
  39395. -rm -f conftest.$ac_objext
  39396. -if { (ac_try="$ac_compile"
  39397. -case "(($ac_try" in
  39398. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39399. - *) ac_try_echo=$ac_try;;
  39400. -esac
  39401. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39402. - (eval "$ac_compile") 2>conftest.er1
  39403. - ac_status=$?
  39404. - grep -v '^ *+' conftest.er1 >conftest.err
  39405. - rm -f conftest.er1
  39406. - cat conftest.err >&5
  39407. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39408. - (exit $ac_status); } && {
  39409. - test -z "$ac_c_werror_flag" ||
  39410. - test ! -s conftest.err
  39411. - } && test -s conftest.$ac_objext; then
  39412. - ac_header_compiler=yes
  39413. -else
  39414. - echo "$as_me: failed program was:" >&5
  39415. -sed 's/^/| /' conftest.$ac_ext >&5
  39416. - ac_header_compiler=no
  39417. -fi
  39418. + LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  39419. + ;;
  39420. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39421. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39422. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  39423. +*openbsd*)
  39424. -# Is the header present?
  39425. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39426. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  39427. -cat >conftest.$ac_ext <<_ACEOF
  39428. -/* confdefs.h. */
  39429. -_ACEOF
  39430. -cat confdefs.h >>conftest.$ac_ext
  39431. -cat >>conftest.$ac_ext <<_ACEOF
  39432. -/* end confdefs.h. */
  39433. -#include <$ac_header>
  39434. -_ACEOF
  39435. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39436. -case "(($ac_try" in
  39437. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39438. - *) ac_try_echo=$ac_try;;
  39439. -esac
  39440. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39441. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39442. - ac_status=$?
  39443. - grep -v '^ *+' conftest.er1 >conftest.err
  39444. - rm -f conftest.er1
  39445. - cat conftest.err >&5
  39446. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39447. - (exit $ac_status); } >/dev/null && {
  39448. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39449. - test ! -s conftest.err
  39450. - }; then
  39451. - ac_header_preproc=yes
  39452. -else
  39453. - echo "$as_me: failed program was:" >&5
  39454. -sed 's/^/| /' conftest.$ac_ext >&5
  39455. +$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
  39456. - ac_header_preproc=no
  39457. -fi
  39458. -rm -f conftest.err conftest.$ac_ext
  39459. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39460. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39461. +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
  39462. -# So? What about this header?
  39463. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39464. - yes:no: )
  39465. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39466. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39467. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39468. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39469. - ac_header_preproc=yes
  39470. + LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS"
  39471. ;;
  39472. - no:yes:* )
  39473. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39474. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39475. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39476. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39477. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39478. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39479. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39480. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39481. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39482. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39483. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39484. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39485. +*bsdi*)
  39486. +
  39487. +$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
  39488. +
  39489. +
  39490. +$as_echo "#define LIBNET_BSD_BYTE_SWAP 1" >>confdefs.h
  39491. +
  39492. + LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  39493. ;;
  39494. -esac
  39495. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39496. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39497. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39498. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39499. -else
  39500. - eval "$as_ac_Header=\$ac_header_preproc"
  39501. -fi
  39502. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39503. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39504. -echo "${ECHO_T}$ac_res" >&6; }
  39505. -fi
  39506. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39507. +*darwin*)
  39508. +
  39509. +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
  39510. +
  39511. + LIBNET_CONFIG_DEFINES="-DHAVE_SOCKADDR_SA_LEN"
  39512. + ;;
  39513. +
  39514. +*solaris*)
  39515. +
  39516. +$as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  39517. +
  39518. + for ac_header in sys/bufmod.h sys/dlpi_ext.h
  39519. +do :
  39520. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39521. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  39522. +eval as_val=\$$as_ac_Header
  39523. + if test "x$as_val" = x""yes; then :
  39524. cat >>confdefs.h <<_ACEOF
  39525. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39526. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39527. _ACEOF
  39528. fi
  39529. done
  39530. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
  39531. +$as_echo_n "checking for /dev/dlpi device... " >&6; }
  39532. + if test -c /dev/dlpi; then
  39533. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39534. +$as_echo "yes" >&6; }
  39535. -{ echo "$as_me:$LINENO: checking link-layer packet interface type" >&5
  39536. -echo $ECHO_N "checking link-layer packet interface type... $ECHO_C" >&6; }
  39537. +$as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
  39538. -if test -n "${with_link_layer}"; then
  39539. - case "${with_link_layer}" in
  39540. - bpf) case " $LIBOBJS " in
  39541. - *" libnet_link_bpf.$ac_objext "* ) ;;
  39542. - *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
  39543. - ;;
  39544. -esac
  39545. - ;;
  39546. - pf) case " $LIBOBJS " in
  39547. - *" libnet_link_pf.$ac_objext "* ) ;;
  39548. - *) LIBOBJS="$LIBOBJS libnet_link_pf.$ac_objext"
  39549. - ;;
  39550. -esac
  39551. - ;;
  39552. - snit) case " $LIBOBJS " in
  39553. - *" libnet_link_snit.$ac_objext "* ) ;;
  39554. - *) LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
  39555. - ;;
  39556. -esac
  39557. - ;;
  39558. - nit) case " $LIBOBJS " in
  39559. - *" libnet_link_nit.$ac_objext "* ) ;;
  39560. - *) LIBOBJS="$LIBOBJS libnet_link_nit.$ac_objext"
  39561. - ;;
  39562. -esac
  39563. - ;;
  39564. - snoop) case " $LIBOBJS " in
  39565. - *" libnet_link_snoop.$ac_objext "* ) ;;
  39566. - *) LIBOBJS="$LIBOBJS libnet_link_snoop.$ac_objext"
  39567. - ;;
  39568. -esac
  39569. - ;;
  39570. - dlpi) case " $LIBOBJS " in
  39571. - *" libnet_link_dlpi.$ac_objext "* ) ;;
  39572. - *) LIBOBJS="$LIBOBJS libnet_link_dlpi.$ac_objext"
  39573. - ;;
  39574. -esac
  39575. - ;;
  39576. - linux) case " $LIBOBJS " in
  39577. - *" libnet_link_linux.$ac_objext "* ) ;;
  39578. - *) LIBOBJS="$LIBOBJS libnet_link_linux.$ac_objext"
  39579. - ;;
  39580. -esac
  39581. + else
  39582. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39583. +$as_echo "no" >&6; }
  39584. + dir="/dev/dlpi"
  39585. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
  39586. +$as_echo_n "checking for $dir directory... " >&6; }
  39587. + if test -d $dir ; then
  39588. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39589. +$as_echo "yes" >&6; }
  39590. +
  39591. +cat >>confdefs.h <<_ACEOF
  39592. +#define DLPI_DEV_PREFIX "$dir"
  39593. +_ACEOF
  39594. +
  39595. + else
  39596. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39597. +$as_echo "no" >&6; }
  39598. + fi
  39599. + fi
  39600. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  39601. +$as_echo_n "checking for socket in -lsocket... " >&6; }
  39602. +if test "${ac_cv_lib_socket_socket+set}" = set; then :
  39603. + $as_echo_n "(cached) " >&6
  39604. +else
  39605. + ac_check_lib_save_LIBS=$LIBS
  39606. +LIBS="-lsocket $LIBS"
  39607. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39608. +/* end confdefs.h. */
  39609. +
  39610. +/* Override any GCC internal prototype to avoid an error.
  39611. + Use char because int might match the return type of a GCC
  39612. + builtin and then its argument prototype would still apply. */
  39613. +#ifdef __cplusplus
  39614. +extern "C"
  39615. +#endif
  39616. +char socket ();
  39617. +int
  39618. +main ()
  39619. +{
  39620. +return socket ();
  39621. + ;
  39622. + return 0;
  39623. +}
  39624. +_ACEOF
  39625. +if ac_fn_c_try_link "$LINENO"; then :
  39626. + ac_cv_lib_socket_socket=yes
  39627. +else
  39628. + ac_cv_lib_socket_socket=no
  39629. +fi
  39630. +rm -f core conftest.err conftest.$ac_objext \
  39631. + conftest$ac_exeext conftest.$ac_ext
  39632. +LIBS=$ac_check_lib_save_LIBS
  39633. +fi
  39634. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  39635. +$as_echo "$ac_cv_lib_socket_socket" >&6; }
  39636. +if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  39637. + cat >>confdefs.h <<_ACEOF
  39638. +#define HAVE_LIBSOCKET 1
  39639. +_ACEOF
  39640. + LIBS="-lsocket $LIBS"
  39641. - { echo "$as_me:$LINENO: checking for packet socket (PF_SOCKET)" >&5
  39642. -echo $ECHO_N "checking for packet socket (PF_SOCKET)... $ECHO_C" >&6; }
  39643. - if test "${libnet_cv_have_packet_socket+set}" = set; then
  39644. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39645. else
  39646. - case "$target_os" in
  39647. + as_fn_error "libsocket not found." "$LINENO" 5
  39648. +fi
  39649. - linux*)
  39650. - libnet_cv_have_packet_socket=no
  39651. - { echo "$as_me:$LINENO: result: no" >&5
  39652. -echo "${ECHO_T}no" >&6; }
  39653. - ;;
  39654. - *)
  39655. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  39656. +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  39657. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  39658. + $as_echo_n "(cached) " >&6
  39659. +else
  39660. + ac_check_lib_save_LIBS=$LIBS
  39661. +LIBS="-lnsl $LIBS"
  39662. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39663. +/* end confdefs.h. */
  39664. - cat > pf_packet-test.c << EOF
  39665. -#include <stdio.h>
  39666. -#include <errno.h>
  39667. -#include <stdlib.h>
  39668. -#include <netinet/in.h>
  39669. -#include <sys/socket.h>
  39670. -#include <features.h> /* for the glibc version number */
  39671. -#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
  39672. -#include <netpacket/packet.h>
  39673. -#include <net/ethernet.h> /* the L2 protocols */
  39674. -#else
  39675. -#include <asm/types.h>
  39676. -#include <linux/if_packet.h>
  39677. -#include <linux/if_ether.h> /* The L2 protocols */
  39678. +/* Override any GCC internal prototype to avoid an error.
  39679. + Use char because int might match the return type of a GCC
  39680. + builtin and then its argument prototype would still apply. */
  39681. +#ifdef __cplusplus
  39682. +extern "C"
  39683. #endif
  39684. -
  39685. -#ifndef SOL_PACKET
  39686. -#define SOL_PACKET 263
  39687. -#endif /* SOL_PACKET */
  39688. -
  39689. +char gethostbyname ();
  39690. int
  39691. -main(int argc, char **argv)
  39692. +main ()
  39693. {
  39694. - int fd;
  39695. -
  39696. - fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  39697. - if (fd == -1)
  39698. - {
  39699. - if (errno == EPERM)
  39700. - {
  39701. - /* user's UID != 0 */
  39702. - printf("probably");
  39703. - exit (EXIT_FAILURE);
  39704. - }
  39705. - printf("no");
  39706. - exit (EXIT_FAILURE);
  39707. - }
  39708. - printf("yes");
  39709. - exit (EXIT_SUCCESS);
  39710. +return gethostbyname ();
  39711. + ;
  39712. + return 0;
  39713. }
  39714. -EOF
  39715. - ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
  39716. +_ACEOF
  39717. +if ac_fn_c_try_link "$LINENO"; then :
  39718. + ac_cv_lib_nsl_gethostbyname=yes
  39719. +else
  39720. + ac_cv_lib_nsl_gethostbyname=no
  39721. +fi
  39722. +rm -f core conftest.err conftest.$ac_objext \
  39723. + conftest$ac_exeext conftest.$ac_ext
  39724. +LIBS=$ac_check_lib_save_LIBS
  39725. +fi
  39726. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  39727. +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  39728. +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  39729. + cat >>confdefs.h <<_ACEOF
  39730. +#define HAVE_LIBNSL 1
  39731. +_ACEOF
  39732. - # Oopz 4.3 BSD doesn't have this. Sorry.
  39733. - if test ! -x ./pf_packet-test ; then
  39734. - libnet_cv_have_packet_socket=choked
  39735. - else
  39736. - libnet_cv_have_packet_socket=`./pf_packet-test`;
  39737. - fi
  39738. - if test $libnet_cv_have_packet_socket = choked; then
  39739. - { echo "$as_me:$LINENO: result: test program compile choked... assuming no" >&5
  39740. -echo "${ECHO_T}test program compile choked... assuming no" >&6; }
  39741. - elif test $libnet_cv_have_packet_socket = yes; then
  39742. - { echo "$as_me:$LINENO: result: yes" >&5
  39743. -echo "${ECHO_T}yes" >&6; }
  39744. - elif test $libnet_cv_have_packet_socket = probably; then
  39745. - { echo "$as_me:$LINENO: result: test program got EPERM... assuming yes" >&5
  39746. -echo "${ECHO_T}test program got EPERM... assuming yes" >&6; }
  39747. - elif test $libnet_cv_have_packet_socket = no; then
  39748. - { echo "$as_me:$LINENO: result: no" >&5
  39749. -echo "${ECHO_T}no" >&6; }
  39750. - fi
  39751. + LIBS="-lnsl $LIBS"
  39752. - rm -f pf_packet-test* core core.pf_packet-test
  39753. - ;;
  39754. - esac
  39755. +else
  39756. + as_fn_error "libnsl not found." "$LINENO" 5
  39757. fi
  39758. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
  39759. +$as_echo_n "checking for hstrerror in -lresolv... " >&6; }
  39760. +if test "${ac_cv_lib_resolv_hstrerror+set}" = set; then :
  39761. + $as_echo_n "(cached) " >&6
  39762. +else
  39763. + ac_check_lib_save_LIBS=$LIBS
  39764. +LIBS="-lresolv $LIBS"
  39765. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39766. +/* end confdefs.h. */
  39767. - if test $libnet_cv_have_packet_socket = yes -o $libnet_cv_have_packet_socket = probably; then
  39768. -
  39769. -cat >>confdefs.h <<\_ACEOF
  39770. -#define HAVE_PACKET_SOCKET 1
  39771. +/* Override any GCC internal prototype to avoid an error.
  39772. + Use char because int might match the return type of a GCC
  39773. + builtin and then its argument prototype would still apply. */
  39774. +#ifdef __cplusplus
  39775. +extern "C"
  39776. +#endif
  39777. +char hstrerror ();
  39778. +int
  39779. +main ()
  39780. +{
  39781. +return hstrerror ();
  39782. + ;
  39783. + return 0;
  39784. +}
  39785. +_ACEOF
  39786. +if ac_fn_c_try_link "$LINENO"; then :
  39787. + ac_cv_lib_resolv_hstrerror=yes
  39788. +else
  39789. + ac_cv_lib_resolv_hstrerror=no
  39790. +fi
  39791. +rm -f core conftest.err conftest.$ac_objext \
  39792. + conftest$ac_exeext conftest.$ac_ext
  39793. +LIBS=$ac_check_lib_save_LIBS
  39794. +fi
  39795. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
  39796. +$as_echo "$ac_cv_lib_resolv_hstrerror" >&6; }
  39797. +if test "x$ac_cv_lib_resolv_hstrerror" = x""yes; then :
  39798. + cat >>confdefs.h <<_ACEOF
  39799. +#define HAVE_LIBRESOLV 1
  39800. _ACEOF
  39801. - fi
  39802. + LIBS="-lresolv $LIBS"
  39803. - { echo "$as_me:$LINENO: checking for Linux proc filesystem" >&5
  39804. -echo $ECHO_N "checking for Linux proc filesystem... $ECHO_C" >&6; }
  39805. - if test "${ac_cv_libnet_linux_procfs+set}" = set; then
  39806. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39807. else
  39808. - if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
  39809. - ac_cv_libnet_linux_procfs=yes
  39810. - else
  39811. - ac_cv_libnet_linux_procfs=no
  39812. - fi
  39813. + as_fn_error "libresolv not found." "$LINENO" 5
  39814. fi
  39815. - { echo "$as_me:$LINENO: result: $ac_cv_libnet_linux_procfs" >&5
  39816. -echo "${ECHO_T}$ac_cv_libnet_linux_procfs" >&6; }
  39817. - if test $ac_cv_libnet_linux_procfs = yes ; then
  39818. -cat >>confdefs.h <<\_ACEOF
  39819. -#define HAVE_LINUX_PROCFS 1
  39820. -_ACEOF
  39821. + case "`uname -r`" in
  39822. + 5.4)
  39823. - fi ;;
  39824. - none) case " $LIBOBJS " in
  39825. - *" libnet_link_none.$ac_objext "* ) ;;
  39826. - *) LIBOBJS="$LIBOBJS libnet_link_none.$ac_objext"
  39827. - ;;
  39828. -esac
  39829. - ;;
  39830. - *) { { echo "$as_me:$LINENO: error: Invalid link type \"${with_link_layer}\"" >&5
  39831. -echo "$as_me: error: Invalid link type \"${with_link_layer}\"" >&2;}
  39832. - { (exit 1); exit 1; }; } ;;
  39833. - esac
  39834. - { echo "$as_me:$LINENO: result: forced link layer to ${with_link_layer}" >&5
  39835. -echo "${ECHO_T}forced link layer to ${with_link_layer}" >&6; }
  39836. -elif test "${cross_compiling}" != "yes" -a -r /dev/bpf0 ; then
  39837. - case " $LIBOBJS " in
  39838. - *" libnet_link_bpf.$ac_objext "* ) ;;
  39839. - *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
  39840. - ;;
  39841. -esac
  39842. +$as_echo "#define STUPID_SOLARIS_CHECKSUM_BUG 1" >>confdefs.h
  39843. - { echo "$as_me:$LINENO: result: found link layer bpf" >&5
  39844. -echo "${ECHO_T}found link layer bpf" >&6; }
  39845. -elif test "${ac_cv_header_net_pfilt_h}" = "yes" ; then
  39846. - case " $LIBOBJS " in
  39847. - *" libnet_link_pf.$ac_objext "* ) ;;
  39848. - *) LIBOBJS="$LIBOBJS libnet_link_pf.$ac_objext"
  39849. - ;;
  39850. -esac
  39851. + ;;
  39852. + 5.5*)
  39853. - { echo "$as_me:$LINENO: result: found link layer pf" >&5
  39854. -echo "${ECHO_T}found link layer pf" >&6; }
  39855. -elif test "${cross_compiling}" != "yes" -a -r /dev/nit ; then
  39856. - case " $LIBOBJS " in
  39857. - *" libnet_link_snit.$ac_objext "* ) ;;
  39858. - *) LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
  39859. - ;;
  39860. -esac
  39861. +$as_echo "#define STUPID_SOLARIS_CHECKSUM_BUG 1" >>confdefs.h
  39862. - { echo "$as_me:$LINENO: result: found link layer snit" >&5
  39863. -echo "${ECHO_T}found link layer snit" >&6; }
  39864. -elif test "${ac_cv_header_sys_net_nit_h}" = "yes" ; then
  39865. - case " $LIBOBJS " in
  39866. - *" libnet_link_nit.$ac_objext "* ) ;;
  39867. - *) LIBOBJS="$LIBOBJS libnet_link_nit.$ac_objext"
  39868. - ;;
  39869. -esac
  39870. + ;;
  39871. + 5.8)
  39872. - { echo "$as_me:$LINENO: result: found link layer nit" >&5
  39873. -echo "${ECHO_T}found link layer nit" >&6; }
  39874. -elif test "${ac_cv_header_net_raw_h}" = "yes" ; then
  39875. - case " $LIBOBJS " in
  39876. - *" libnet_link_snoop.$ac_objext "* ) ;;
  39877. - *) LIBOBJS="$LIBOBJS libnet_link_snoop.$ac_objext"
  39878. - ;;
  39879. -esac
  39880. +$as_echo "#define STUPID_SOLARIS_CHECKSUM_BUG 1" >>confdefs.h
  39881. - { echo "$as_me:$LINENO: result: found link layer snoop" >&5
  39882. -echo "${ECHO_T}found link layer snoop" >&6; }
  39883. -elif test "${ac_cv_header_sys_dlpi_h}" = "yes" ; then
  39884. - case " $LIBOBJS " in
  39885. - *" libnet_link_dlpi.$ac_objext "* ) ;;
  39886. - *) LIBOBJS="$LIBOBJS libnet_link_dlpi.$ac_objext"
  39887. - ;;
  39888. -esac
  39889. - { echo "$as_me:$LINENO: result: found link layer dlpi" >&5
  39890. -echo "${ECHO_T}found link layer dlpi" >&6; }
  39891. +$as_echo "#define HAVE_SOLARIS_IPV6 1" >>confdefs.h
  39892. -cat >>confdefs.h <<\_ACEOF
  39893. -#define HAVE_DLPI 1
  39894. -_ACEOF
  39895. -elif test "${ac_cv_header_linux_socket_h}" = "yes" ; then
  39896. - case " $LIBOBJS " in
  39897. - *" libnet_link_linux.$ac_objext "* ) ;;
  39898. - *) LIBOBJS="$LIBOBJS libnet_link_linux.$ac_objext"
  39899. - ;;
  39900. -esac
  39901. + ;;
  39902. + 5.9)
  39903. - { echo "$as_me:$LINENO: result: found link layer linux" >&5
  39904. -echo "${ECHO_T}found link layer linux" >&6; }
  39905. +$as_echo "#define STUPID_SOLARIS_CHECKSUM_BUG 1" >>confdefs.h
  39906. - { echo "$as_me:$LINENO: checking for packet socket (PF_SOCKET)" >&5
  39907. -echo $ECHO_N "checking for packet socket (PF_SOCKET)... $ECHO_C" >&6; }
  39908. - if test "${libnet_cv_have_packet_socket+set}" = set; then
  39909. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39910. -else
  39911. - case "$target_os" in
  39912. - linux*)
  39913. - libnet_cv_have_packet_socket=no
  39914. - { echo "$as_me:$LINENO: result: no" >&5
  39915. -echo "${ECHO_T}no" >&6; }
  39916. - ;;
  39917. - *)
  39918. +$as_echo "#define HAVE_SOLARIS_IPV6 1" >>confdefs.h
  39919. - cat > pf_packet-test.c << EOF
  39920. -#include <stdio.h>
  39921. -#include <errno.h>
  39922. -#include <stdlib.h>
  39923. -#include <netinet/in.h>
  39924. -#include <sys/socket.h>
  39925. -#include <features.h> /* for the glibc version number */
  39926. -#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
  39927. -#include <netpacket/packet.h>
  39928. -#include <net/ethernet.h> /* the L2 protocols */
  39929. -#else
  39930. -#include <asm/types.h>
  39931. -#include <linux/if_packet.h>
  39932. -#include <linux/if_ether.h> /* The L2 protocols */
  39933. -#endif
  39934. + ;;
  39935. -#ifndef SOL_PACKET
  39936. -#define SOL_PACKET 263
  39937. -#endif /* SOL_PACKET */
  39938. + esac
  39939. -int
  39940. -main(int argc, char **argv)
  39941. -{
  39942. - int fd;
  39943. + ADDITIONAL_LIBS='-lresolv -lsocket -lnsl'
  39944. + LIBNET_CONFIG_LIBS="$LIBNET_CONFIG_LIBS -lresolv -lsocket -lnsl"
  39945. - fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  39946. - if (fd == -1)
  39947. - {
  39948. - if (errno == EPERM)
  39949. - {
  39950. - /* user's UID != 0 */
  39951. - printf("probably");
  39952. - exit (EXIT_FAILURE);
  39953. - }
  39954. - printf("no");
  39955. - exit (EXIT_FAILURE);
  39956. - }
  39957. - printf("yes");
  39958. - exit (EXIT_SUCCESS);
  39959. -}
  39960. -EOF
  39961. - ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
  39962. + ;;
  39963. - # Oopz 4.3 BSD doesn't have this. Sorry.
  39964. - if test ! -x ./pf_packet-test ; then
  39965. - libnet_cv_have_packet_socket=choked
  39966. - else
  39967. - libnet_cv_have_packet_socket=`./pf_packet-test`;
  39968. - fi
  39969. - if test $libnet_cv_have_packet_socket = choked; then
  39970. - { echo "$as_me:$LINENO: result: test program compile choked... assuming no" >&5
  39971. -echo "${ECHO_T}test program compile choked... assuming no" >&6; }
  39972. - elif test $libnet_cv_have_packet_socket = yes; then
  39973. - { echo "$as_me:$LINENO: result: yes" >&5
  39974. -echo "${ECHO_T}yes" >&6; }
  39975. - elif test $libnet_cv_have_packet_socket = probably; then
  39976. - { echo "$as_me:$LINENO: result: test program got EPERM... assuming yes" >&5
  39977. -echo "${ECHO_T}test program got EPERM... assuming yes" >&6; }
  39978. - elif test $libnet_cv_have_packet_socket = no; then
  39979. - { echo "$as_me:$LINENO: result: no" >&5
  39980. -echo "${ECHO_T}no" >&6; }
  39981. - fi
  39982. +*hpux11*)
  39983. +
  39984. +$as_echo "#define HAVE_HPUX11 1" >>confdefs.h
  39985. +
  39986. + for ac_header in sys/dlpi_ext.h
  39987. +do :
  39988. + ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi_ext.h" "ac_cv_header_sys_dlpi_ext_h" "$ac_includes_default"
  39989. +if test "x$ac_cv_header_sys_dlpi_ext_h" = x""yes; then :
  39990. + cat >>confdefs.h <<_ACEOF
  39991. +#define HAVE_SYS_DLPI_EXT_H 1
  39992. +_ACEOF
  39993. +
  39994. +fi
  39995. +
  39996. +done
  39997. - rm -f pf_packet-test* core core.pf_packet-test
  39998. ;;
  39999. - esac
  40000. -fi
  40001. +*cygwin*)
  40002. - if test $libnet_cv_have_packet_socket = yes -o $libnet_cv_have_packet_socket = probably; then
  40003. +$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
  40004. -cat >>confdefs.h <<\_ACEOF
  40005. -#define HAVE_PACKET_SOCKET 1
  40006. -_ACEOF
  40007. - fi
  40008. +$as_echo "#define NO_SNPRINTF 1" >>confdefs.h
  40009. - { echo "$as_me:$LINENO: checking for Linux proc filesystem" >&5
  40010. -echo $ECHO_N "checking for Linux proc filesystem... $ECHO_C" >&6; }
  40011. - if test "${ac_cv_libnet_linux_procfs+set}" = set; then
  40012. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40013. + LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DNO_SNPRINTF"
  40014. + CFLAGS="$CFLAGS -mno-cygwin -O0 -fnative-struct -DNO_SNPRINTF -I/usr/include/pcap"
  40015. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PacketSetMode in -lpacket" >&5
  40016. +$as_echo_n "checking for PacketSetMode in -lpacket... " >&6; }
  40017. +if test "${ac_cv_lib_packet_PacketSetMode+set}" = set; then :
  40018. + $as_echo_n "(cached) " >&6
  40019. else
  40020. - if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
  40021. - ac_cv_libnet_linux_procfs=yes
  40022. - else
  40023. - ac_cv_libnet_linux_procfs=no
  40024. - fi
  40025. -fi
  40026. -
  40027. - { echo "$as_me:$LINENO: result: $ac_cv_libnet_linux_procfs" >&5
  40028. -echo "${ECHO_T}$ac_cv_libnet_linux_procfs" >&6; }
  40029. - if test $ac_cv_libnet_linux_procfs = yes ; then
  40030. + ac_check_lib_save_LIBS=$LIBS
  40031. +LIBS="-lpacket $LIBS"
  40032. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40033. +/* end confdefs.h. */
  40034. -cat >>confdefs.h <<\_ACEOF
  40035. -#define HAVE_LINUX_PROCFS 1
  40036. +/* Override any GCC internal prototype to avoid an error.
  40037. + Use char because int might match the return type of a GCC
  40038. + builtin and then its argument prototype would still apply. */
  40039. +#ifdef __cplusplus
  40040. +extern "C"
  40041. +#endif
  40042. +char PacketSetMode ();
  40043. +int
  40044. +main ()
  40045. +{
  40046. +return PacketSetMode ();
  40047. + ;
  40048. + return 0;
  40049. +}
  40050. +_ACEOF
  40051. +if ac_fn_c_try_link "$LINENO"; then :
  40052. + ac_cv_lib_packet_PacketSetMode=yes
  40053. +else
  40054. + ac_cv_lib_packet_PacketSetMode=no
  40055. +fi
  40056. +rm -f core conftest.err conftest.$ac_objext \
  40057. + conftest$ac_exeext conftest.$ac_ext
  40058. +LIBS=$ac_check_lib_save_LIBS
  40059. +fi
  40060. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_packet_PacketSetMode" >&5
  40061. +$as_echo "$ac_cv_lib_packet_PacketSetMode" >&6; }
  40062. +if test "x$ac_cv_lib_packet_PacketSetMode" = x""yes; then :
  40063. + cat >>confdefs.h <<_ACEOF
  40064. +#define HAVE_LIBPACKET 1
  40065. _ACEOF
  40066. - fi
  40067. -elif test "${cross_compiling}" != "yes" -a -c /dev/bpf0 ; then # check again in case not readable
  40068. - case " $LIBOBJS " in
  40069. - *" libnet_link_bpf.$ac_objext "* ) ;;
  40070. - *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
  40071. - ;;
  40072. -esac
  40073. + LIBS="-lpacket $LIBS"
  40074. - { echo "$as_me:$LINENO: result: found link layer bpf" >&5
  40075. -echo "${ECHO_T}found link layer bpf" >&6; }
  40076. -elif test "${cross_compiling}" != "yes" -a -c /dev/nit ; then # check again in case not readable
  40077. - case " $LIBOBJS " in
  40078. - *" libnet_link_snit.$ac_objext "* ) ;;
  40079. - *) LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
  40080. - ;;
  40081. -esac
  40082. +else
  40083. + as_fn_error "packet lib not found." "$LINENO" 5
  40084. +fi
  40085. - { echo "$as_me:$LINENO: result: found link layer snit" >&5
  40086. -echo "${ECHO_T}found link layer snit" >&6; }
  40087. -elif test "$target_os" = "cygwin" ; then
  40088. - case " $LIBOBJS " in
  40089. - *" libnet_link_win32.$ac_objext "* ) ;;
  40090. - *) LIBOBJS="$LIBOBJS libnet_link_win32.$ac_objext"
  40091. - ;;
  40092. -esac
  40093. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setmode in -lwpcap" >&5
  40094. +$as_echo_n "checking for pcap_setmode in -lwpcap... " >&6; }
  40095. +if test "${ac_cv_lib_wpcap_pcap_setmode+set}" = set; then :
  40096. + $as_echo_n "(cached) " >&6
  40097. +else
  40098. + ac_check_lib_save_LIBS=$LIBS
  40099. +LIBS="-lwpcap $LIBS"
  40100. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40101. +/* end confdefs.h. */
  40102. - { echo "$as_me:$LINENO: result: found link layer win32 wpcap" >&5
  40103. -echo "${ECHO_T}found link layer win32 wpcap" >&6; }
  40104. +/* Override any GCC internal prototype to avoid an error.
  40105. + Use char because int might match the return type of a GCC
  40106. + builtin and then its argument prototype would still apply. */
  40107. +#ifdef __cplusplus
  40108. +extern "C"
  40109. +#endif
  40110. +char pcap_setmode ();
  40111. +int
  40112. +main ()
  40113. +{
  40114. +return pcap_setmode ();
  40115. + ;
  40116. + return 0;
  40117. +}
  40118. +_ACEOF
  40119. +if ac_fn_c_try_link "$LINENO"; then :
  40120. + ac_cv_lib_wpcap_pcap_setmode=yes
  40121. else
  40122. - case " $LIBOBJS " in
  40123. - *" libnet_link_none.$ac_objext "* ) ;;
  40124. - *) LIBOBJS="$LIBOBJS libnet_link_none.$ac_objext"
  40125. - ;;
  40126. -esac
  40127. + ac_cv_lib_wpcap_pcap_setmode=no
  40128. +fi
  40129. +rm -f core conftest.err conftest.$ac_objext \
  40130. + conftest$ac_exeext conftest.$ac_ext
  40131. +LIBS=$ac_check_lib_save_LIBS
  40132. +fi
  40133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wpcap_pcap_setmode" >&5
  40134. +$as_echo "$ac_cv_lib_wpcap_pcap_setmode" >&6; }
  40135. +if test "x$ac_cv_lib_wpcap_pcap_setmode" = x""yes; then :
  40136. + cat >>confdefs.h <<_ACEOF
  40137. +#define HAVE_LIBWPCAP 1
  40138. +_ACEOF
  40139. +
  40140. + LIBS="-lwpcap $LIBS"
  40141. - { echo "$as_me:$LINENO: WARNING: could not find a link-layer packet interface" >&5
  40142. -echo "$as_me: WARNING: could not find a link-layer packet interface" >&2;}
  40143. - { echo "$as_me:$LINENO: WARNING: link-layer packet injection will not be available" >&5
  40144. -echo "$as_me: WARNING: link-layer packet injection will not be available" >&2;}
  40145. +else
  40146. + as_fn_error "pcap lib not found." "$LINENO" 5
  40147. fi
  40148. -LIBOBJS=`echo "$LIBOBJS" |
  40149. - sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
  40150. -LTLIBOBJS=`echo "$LIBOBJS" |
  40151. - sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
  40152. + LIBS="$LIBS -lws2_32"
  40153. + ;;
  40154. +*)
  40155. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: apparently your OS is not officially supported yet" >&5
  40156. +$as_echo "$as_me: WARNING: apparently your OS is not officially supported yet" >&2;}
  40157. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this may not work" >&5
  40158. +$as_echo "$as_me: WARNING: this may not work" >&2;}
  40159. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: please send diffs to vieuxtech@gmail.com" >&5
  40160. +$as_echo "please send diffs to vieuxtech@gmail.com" >&6; }
  40161. + ;;
  40162. +esac
  40163. -echo -n "scanning available packet construction modules: "
  40164. -for dir in src/*build*c ; do
  40165. - echo $dir | sed -e /src\\/libnet_build_/s/// | sed -e /\\.c/s/// | tr \\n \\040
  40166. -done
  40167. -echo ""
  40168. +# Check whether --enable-samples was given.
  40169. +if test "${enable_samples+set}" = set; then :
  40170. + enableval=$enable_samples;
  40171. +fi
  40172. -case "$target_os" in
  40173. -*linux*)
  40174. + if test x"$enable_samples" = xyes; then
  40175. + INSTALL_SAMPLES_TRUE=
  40176. + INSTALL_SAMPLES_FALSE='#'
  40177. +else
  40178. + INSTALL_SAMPLES_TRUE='#'
  40179. + INSTALL_SAMPLES_FALSE=
  40180. +fi
  40181. -cat >>confdefs.h <<\_ACEOF
  40182. -#define _BSD_SOURCE 1
  40183. -_ACEOF
  40184. +ac_config_files="$ac_config_files Makefile src/Makefile win32/Makefile include/Makefile include/libnet/Makefile include/win32/Makefile sample/Makefile doc/Makefile doc/man/Makefile doc/man/man3/Makefile doc/html/Makefile version.h include/libnet.h libnet-config"
  40185. +
  40186. +cat >confcache <<\_ACEOF
  40187. +# This file is a shell script that caches the results of configure
  40188. +# tests run on this system so they can be shared between configure
  40189. +# scripts and configure runs, see configure's option --config-cache.
  40190. +# It is not useful on other systems. If it contains results you don't
  40191. +# want to keep, you may remove or edit it.
  40192. +#
  40193. +# config.status only pays attention to the cache file if you give it
  40194. +# the --recheck option to rerun configure.
  40195. +#
  40196. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  40197. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  40198. +# following values.
  40199. -cat >>confdefs.h <<\_ACEOF
  40200. -#define __BSD_SOURCE 1
  40201. _ACEOF
  40202. +# The following way of writing the cache mishandles newlines in values,
  40203. +# but we know of no workaround that is simple, portable, and efficient.
  40204. +# So, we kill variables containing newlines.
  40205. +# Ultrix sh set writes to stderr and can't be redirected directly,
  40206. +# and sets the high bit in the cache file unless we assign to the vars.
  40207. +(
  40208. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  40209. + eval ac_val=\$$ac_var
  40210. + case $ac_val in #(
  40211. + *${as_nl}*)
  40212. + case $ac_var in #(
  40213. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  40214. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  40215. + esac
  40216. + case $ac_var in #(
  40217. + _ | IFS | as_nl) ;; #(
  40218. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  40219. + *) { eval $ac_var=; unset $ac_var;} ;;
  40220. + esac ;;
  40221. + esac
  40222. + done
  40223. -cat >>confdefs.h <<\_ACEOF
  40224. -#define __FAVOR_BSD 1
  40225. -_ACEOF
  40226. + (set) 2>&1 |
  40227. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  40228. + *${as_nl}ac_space=\ *)
  40229. + # `set' does not quote correctly, so add quotes: double-quote
  40230. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  40231. + sed -n \
  40232. + "s/'/'\\\\''/g;
  40233. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  40234. + ;; #(
  40235. + *)
  40236. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  40237. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  40238. + ;;
  40239. + esac |
  40240. + sort
  40241. +) |
  40242. + sed '
  40243. + /^ac_cv_env_/b end
  40244. + t clear
  40245. + :clear
  40246. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  40247. + t end
  40248. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  40249. + :end' >>confcache
  40250. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  40251. + if test -w "$cache_file"; then
  40252. + test "x$cache_file" != "x/dev/null" &&
  40253. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  40254. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  40255. + cat confcache >$cache_file
  40256. + else
  40257. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  40258. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  40259. + fi
  40260. +fi
  40261. +rm -f confcache
  40262. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  40263. +# Let make expand exec_prefix.
  40264. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  40265. - LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
  40266. +DEFS=-DHAVE_CONFIG_H
  40267. -for ac_header in net/ethernet.h
  40268. -do
  40269. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  40270. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40271. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  40272. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  40273. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40274. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40275. -fi
  40276. -ac_res=`eval echo '${'$as_ac_Header'}'`
  40277. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  40278. -echo "${ECHO_T}$ac_res" >&6; }
  40279. -else
  40280. - # Is the header compilable?
  40281. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  40282. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  40283. -cat >conftest.$ac_ext <<_ACEOF
  40284. -/* confdefs.h. */
  40285. -_ACEOF
  40286. -cat confdefs.h >>conftest.$ac_ext
  40287. -cat >>conftest.$ac_ext <<_ACEOF
  40288. -/* end confdefs.h. */
  40289. -$ac_includes_default
  40290. -#include <$ac_header>
  40291. -_ACEOF
  40292. -rm -f conftest.$ac_objext
  40293. -if { (ac_try="$ac_compile"
  40294. -case "(($ac_try" in
  40295. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40296. - *) ac_try_echo=$ac_try;;
  40297. -esac
  40298. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40299. - (eval "$ac_compile") 2>conftest.er1
  40300. - ac_status=$?
  40301. - grep -v '^ *+' conftest.er1 >conftest.err
  40302. - rm -f conftest.er1
  40303. - cat conftest.err >&5
  40304. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40305. - (exit $ac_status); } && {
  40306. - test -z "$ac_c_werror_flag" ||
  40307. - test ! -s conftest.err
  40308. - } && test -s conftest.$ac_objext; then
  40309. - ac_header_compiler=yes
  40310. -else
  40311. - echo "$as_me: failed program was:" >&5
  40312. -sed 's/^/| /' conftest.$ac_ext >&5
  40313. +ac_libobjs=
  40314. +ac_ltlibobjs=
  40315. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  40316. + # 1. Remove the extension, and $U if already installed.
  40317. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  40318. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  40319. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  40320. + # will be set to the directory where LIBOBJS objects are built.
  40321. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  40322. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  40323. +done
  40324. +LIBOBJS=$ac_libobjs
  40325. - ac_header_compiler=no
  40326. -fi
  40327. +LTLIBOBJS=$ac_ltlibobjs
  40328. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40329. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40330. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  40331. -# Is the header present?
  40332. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  40333. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  40334. -cat >conftest.$ac_ext <<_ACEOF
  40335. -/* confdefs.h. */
  40336. -_ACEOF
  40337. -cat confdefs.h >>conftest.$ac_ext
  40338. -cat >>conftest.$ac_ext <<_ACEOF
  40339. -/* end confdefs.h. */
  40340. -#include <$ac_header>
  40341. -_ACEOF
  40342. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  40343. -case "(($ac_try" in
  40344. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40345. - *) ac_try_echo=$ac_try;;
  40346. -esac
  40347. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40348. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40349. - ac_status=$?
  40350. - grep -v '^ *+' conftest.er1 >conftest.err
  40351. - rm -f conftest.er1
  40352. - cat conftest.err >&5
  40353. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40354. - (exit $ac_status); } >/dev/null && {
  40355. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40356. - test ! -s conftest.err
  40357. - }; then
  40358. - ac_header_preproc=yes
  40359. + if test -n "$EXEEXT"; then
  40360. + am__EXEEXT_TRUE=
  40361. + am__EXEEXT_FALSE='#'
  40362. else
  40363. - echo "$as_me: failed program was:" >&5
  40364. -sed 's/^/| /' conftest.$ac_ext >&5
  40365. + am__EXEEXT_TRUE='#'
  40366. + am__EXEEXT_FALSE=
  40367. +fi
  40368. - ac_header_preproc=no
  40369. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  40370. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  40371. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40372. fi
  40373. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  40374. + as_fn_error "conditional \"AMDEP\" was never defined.
  40375. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40376. +fi
  40377. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  40378. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  40379. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40380. +fi
  40381. +
  40382. +if test -z "${INSTALL_SAMPLES_TRUE}" && test -z "${INSTALL_SAMPLES_FALSE}"; then
  40383. + as_fn_error "conditional \"INSTALL_SAMPLES\" was never defined.
  40384. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40385. +fi
  40386. +
  40387. +: ${CONFIG_STATUS=./config.status}
  40388. +ac_write_fail=0
  40389. +ac_clean_files_save=$ac_clean_files
  40390. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  40391. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  40392. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  40393. +as_write_fail=0
  40394. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  40395. +#! $SHELL
  40396. +# Generated by $as_me.
  40397. +# Run this file to recreate the current configuration.
  40398. +# Compiler output produced by configure, useful for debugging
  40399. +# configure, is in config.log if it exists.
  40400. -rm -f conftest.err conftest.$ac_ext
  40401. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40402. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  40403. +debug=false
  40404. +ac_cs_recheck=false
  40405. +ac_cs_silent=false
  40406. -# So? What about this header?
  40407. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40408. - yes:no: )
  40409. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  40410. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40411. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  40412. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  40413. - ac_header_preproc=yes
  40414. - ;;
  40415. - no:yes:* )
  40416. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  40417. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  40418. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  40419. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  40420. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  40421. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  40422. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  40423. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  40424. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  40425. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  40426. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  40427. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  40428. +SHELL=\${CONFIG_SHELL-$SHELL}
  40429. +export SHELL
  40430. +_ASEOF
  40431. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  40432. +## -------------------- ##
  40433. +## M4sh Initialization. ##
  40434. +## -------------------- ##
  40435. - ;;
  40436. -esac
  40437. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  40438. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  40439. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40440. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40441. +# Be more Bourne compatible
  40442. +DUALCASE=1; export DUALCASE # for MKS sh
  40443. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  40444. + emulate sh
  40445. + NULLCMD=:
  40446. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  40447. + # is contrary to our usage. Disable this feature.
  40448. + alias -g '${1+"$@"}'='"$@"'
  40449. + setopt NO_GLOB_SUBST
  40450. else
  40451. - eval "$as_ac_Header=\$ac_header_preproc"
  40452. + case `(set -o) 2>/dev/null` in #(
  40453. + *posix*) :
  40454. + set -o posix ;; #(
  40455. + *) :
  40456. + ;;
  40457. +esac
  40458. fi
  40459. -ac_res=`eval echo '${'$as_ac_Header'}'`
  40460. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  40461. -echo "${ECHO_T}$ac_res" >&6; }
  40462. -fi
  40463. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  40464. - cat >>confdefs.h <<_ACEOF
  40465. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  40466. -_ACEOF
  40467. - \
  40468. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
  40469. -fi
  40470. -done
  40471. +as_nl='
  40472. +'
  40473. +export as_nl
  40474. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  40475. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40476. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40477. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40478. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  40479. +# but without wasting forks for bash or zsh.
  40480. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  40481. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  40482. + as_echo='print -r --'
  40483. + as_echo_n='print -rn --'
  40484. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  40485. + as_echo='printf %s\n'
  40486. + as_echo_n='printf %s'
  40487. +else
  40488. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  40489. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  40490. + as_echo_n='/usr/ucb/echo -n'
  40491. + else
  40492. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  40493. + as_echo_n_body='eval
  40494. + arg=$1;
  40495. + case $arg in #(
  40496. + *"$as_nl"*)
  40497. + expr "X$arg" : "X\\(.*\\)$as_nl";
  40498. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  40499. + esac;
  40500. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  40501. + '
  40502. + export as_echo_n_body
  40503. + as_echo_n='sh -c $as_echo_n_body as_echo'
  40504. + fi
  40505. + export as_echo_body
  40506. + as_echo='sh -c $as_echo_body as_echo'
  40507. +fi
  40508. - ;;
  40509. +# The user is always right.
  40510. +if test "${PATH_SEPARATOR+set}" != set; then
  40511. + PATH_SEPARATOR=:
  40512. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  40513. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  40514. + PATH_SEPARATOR=';'
  40515. + }
  40516. +fi
  40517. -*freebsd*)
  40518. -cat >>confdefs.h <<\_ACEOF
  40519. -#define LIBNET_BSDISH_OS 1
  40520. -_ACEOF
  40521. +# IFS
  40522. +# We need space, tab and new line, in precisely that order. Quoting is
  40523. +# there to prevent editors from complaining about space-tab.
  40524. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  40525. +# splitting by setting IFS to empty value.)
  40526. +IFS=" "" $as_nl"
  40527. +# Find who we are. Look in the path if we contain no directory separator.
  40528. +case $0 in #((
  40529. + *[\\/]* ) as_myself=$0 ;;
  40530. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40531. +for as_dir in $PATH
  40532. +do
  40533. + IFS=$as_save_IFS
  40534. + test -z "$as_dir" && as_dir=.
  40535. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  40536. + done
  40537. +IFS=$as_save_IFS
  40538. -cat >>confdefs.h <<\_ACEOF
  40539. -#define LIBNET_BSD_BYTE_SWAP 1
  40540. -_ACEOF
  40541. + ;;
  40542. +esac
  40543. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  40544. +# in which case we are not to be found in the path.
  40545. +if test "x$as_myself" = x; then
  40546. + as_myself=$0
  40547. +fi
  40548. +if test ! -f "$as_myself"; then
  40549. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  40550. + exit 1
  40551. +fi
  40552. +# Unset variables that we do not need and which cause bugs (e.g. in
  40553. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  40554. +# suppresses any "Segmentation fault" message there. '((' could
  40555. +# trigger a bug in pdksh 5.2.14.
  40556. +for as_var in BASH_ENV ENV MAIL MAILPATH
  40557. +do eval test x\${$as_var+set} = xset \
  40558. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  40559. +done
  40560. +PS1='$ '
  40561. +PS2='> '
  40562. +PS4='+ '
  40563. -cat >>confdefs.h <<\_ACEOF
  40564. -#define HAVE_SOCKADDR_SA_LEN 1
  40565. -_ACEOF
  40566. +# NLS nuisances.
  40567. +LC_ALL=C
  40568. +export LC_ALL
  40569. +LANGUAGE=C
  40570. +export LANGUAGE
  40571. +# CDPATH.
  40572. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  40573. - LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN"
  40574. - ;;
  40575. -*netbsd*)
  40576. +# as_fn_error ERROR [LINENO LOG_FD]
  40577. +# ---------------------------------
  40578. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  40579. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  40580. +# script with status $?, using 1 if that was 0.
  40581. +as_fn_error ()
  40582. +{
  40583. + as_status=$?; test $as_status -eq 0 && as_status=1
  40584. + if test "$3"; then
  40585. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  40586. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  40587. + fi
  40588. + $as_echo "$as_me: error: $1" >&2
  40589. + as_fn_exit $as_status
  40590. +} # as_fn_error
  40591. +
  40592. +
  40593. +# as_fn_set_status STATUS
  40594. +# -----------------------
  40595. +# Set $? to STATUS, without forking.
  40596. +as_fn_set_status ()
  40597. +{
  40598. + return $1
  40599. +} # as_fn_set_status
  40600. +
  40601. +# as_fn_exit STATUS
  40602. +# -----------------
  40603. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  40604. +as_fn_exit ()
  40605. +{
  40606. + set +e
  40607. + as_fn_set_status $1
  40608. + exit $1
  40609. +} # as_fn_exit
  40610. +
  40611. +# as_fn_unset VAR
  40612. +# ---------------
  40613. +# Portably unset VAR.
  40614. +as_fn_unset ()
  40615. +{
  40616. + { eval $1=; unset $1;}
  40617. +}
  40618. +as_unset=as_fn_unset
  40619. +# as_fn_append VAR VALUE
  40620. +# ----------------------
  40621. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  40622. +# advantage of any shell optimizations that allow amortized linear growth over
  40623. +# repeated appends, instead of the typical quadratic growth present in naive
  40624. +# implementations.
  40625. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  40626. + eval 'as_fn_append ()
  40627. + {
  40628. + eval $1+=\$2
  40629. + }'
  40630. +else
  40631. + as_fn_append ()
  40632. + {
  40633. + eval $1=\$$1\$2
  40634. + }
  40635. +fi # as_fn_append
  40636. -cat >>confdefs.h <<\_ACEOF
  40637. -#define LIBNET_BSDISH_OS 1
  40638. -_ACEOF
  40639. +# as_fn_arith ARG...
  40640. +# ------------------
  40641. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  40642. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  40643. +# must be portable across $(()) and expr.
  40644. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  40645. + eval 'as_fn_arith ()
  40646. + {
  40647. + as_val=$(( $* ))
  40648. + }'
  40649. +else
  40650. + as_fn_arith ()
  40651. + {
  40652. + as_val=`expr "$@" || test $? -eq 1`
  40653. + }
  40654. +fi # as_fn_arith
  40655. -cat >>confdefs.h <<\_ACEOF
  40656. -#define LIBNET_BSD_BYTE_SWAP 1
  40657. -_ACEOF
  40658. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  40659. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  40660. + as_expr=expr
  40661. +else
  40662. + as_expr=false
  40663. +fi
  40664. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  40665. + as_basename=basename
  40666. +else
  40667. + as_basename=false
  40668. +fi
  40669. - LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  40670. - ;;
  40671. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  40672. + as_dirname=dirname
  40673. +else
  40674. + as_dirname=false
  40675. +fi
  40676. -*openbsd*)
  40677. +as_me=`$as_basename -- "$0" ||
  40678. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  40679. + X"$0" : 'X\(//\)$' \| \
  40680. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  40681. +$as_echo X/"$0" |
  40682. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  40683. + s//\1/
  40684. + q
  40685. + }
  40686. + /^X\/\(\/\/\)$/{
  40687. + s//\1/
  40688. + q
  40689. + }
  40690. + /^X\/\(\/\).*/{
  40691. + s//\1/
  40692. + q
  40693. + }
  40694. + s/.*/./; q'`
  40695. -cat >>confdefs.h <<\_ACEOF
  40696. -#define LIBNET_BSDISH_OS 1
  40697. -_ACEOF
  40698. +# Avoid depending upon Character Ranges.
  40699. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  40700. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  40701. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  40702. +as_cr_digits='0123456789'
  40703. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  40704. +ECHO_C= ECHO_N= ECHO_T=
  40705. +case `echo -n x` in #(((((
  40706. +-n*)
  40707. + case `echo 'xy\c'` in
  40708. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  40709. + xy) ECHO_C='\c';;
  40710. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  40711. + ECHO_T=' ';;
  40712. + esac;;
  40713. +*)
  40714. + ECHO_N='-n';;
  40715. +esac
  40716. -cat >>confdefs.h <<\_ACEOF
  40717. -#define HAVE_SOCKADDR_SA_LEN 1
  40718. -_ACEOF
  40719. +rm -f conf$$ conf$$.exe conf$$.file
  40720. +if test -d conf$$.dir; then
  40721. + rm -f conf$$.dir/conf$$.file
  40722. +else
  40723. + rm -f conf$$.dir
  40724. + mkdir conf$$.dir 2>/dev/null
  40725. +fi
  40726. +if (echo >conf$$.file) 2>/dev/null; then
  40727. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  40728. + as_ln_s='ln -s'
  40729. + # ... but there are two gotchas:
  40730. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  40731. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  40732. + # In both cases, we have to default to `cp -p'.
  40733. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  40734. + as_ln_s='cp -p'
  40735. + elif ln conf$$.file conf$$ 2>/dev/null; then
  40736. + as_ln_s=ln
  40737. + else
  40738. + as_ln_s='cp -p'
  40739. + fi
  40740. +else
  40741. + as_ln_s='cp -p'
  40742. +fi
  40743. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  40744. +rmdir conf$$.dir 2>/dev/null
  40745. - LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS"
  40746. - ;;
  40747. -*bsdi*)
  40748. +# as_fn_mkdir_p
  40749. +# -------------
  40750. +# Create "$as_dir" as a directory, including parents if necessary.
  40751. +as_fn_mkdir_p ()
  40752. +{
  40753. -cat >>confdefs.h <<\_ACEOF
  40754. -#define LIBNET_BSDISH_OS 1
  40755. -_ACEOF
  40756. + case $as_dir in #(
  40757. + -*) as_dir=./$as_dir;;
  40758. + esac
  40759. + test -d "$as_dir" || eval $as_mkdir_p || {
  40760. + as_dirs=
  40761. + while :; do
  40762. + case $as_dir in #(
  40763. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  40764. + *) as_qdir=$as_dir;;
  40765. + esac
  40766. + as_dirs="'$as_qdir' $as_dirs"
  40767. + as_dir=`$as_dirname -- "$as_dir" ||
  40768. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40769. + X"$as_dir" : 'X\(//\)[^/]' \| \
  40770. + X"$as_dir" : 'X\(//\)$' \| \
  40771. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  40772. +$as_echo X"$as_dir" |
  40773. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40774. + s//\1/
  40775. + q
  40776. + }
  40777. + /^X\(\/\/\)[^/].*/{
  40778. + s//\1/
  40779. + q
  40780. + }
  40781. + /^X\(\/\/\)$/{
  40782. + s//\1/
  40783. + q
  40784. + }
  40785. + /^X\(\/\).*/{
  40786. + s//\1/
  40787. + q
  40788. + }
  40789. + s/.*/./; q'`
  40790. + test -d "$as_dir" && break
  40791. + done
  40792. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  40793. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  40794. -cat >>confdefs.h <<\_ACEOF
  40795. -#define LIBNET_BSD_BYTE_SWAP 1
  40796. -_ACEOF
  40797. +} # as_fn_mkdir_p
  40798. +if mkdir -p . 2>/dev/null; then
  40799. + as_mkdir_p='mkdir -p "$as_dir"'
  40800. +else
  40801. + test -d ./-p && rmdir ./-p
  40802. + as_mkdir_p=false
  40803. +fi
  40804. - LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  40805. - ;;
  40806. +if test -x / >/dev/null 2>&1; then
  40807. + as_test_x='test -x'
  40808. +else
  40809. + if ls -dL / >/dev/null 2>&1; then
  40810. + as_ls_L_option=L
  40811. + else
  40812. + as_ls_L_option=
  40813. + fi
  40814. + as_test_x='
  40815. + eval sh -c '\''
  40816. + if test -d "$1"; then
  40817. + test -d "$1/.";
  40818. + else
  40819. + case $1 in #(
  40820. + -*)set "./$1";;
  40821. + esac;
  40822. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  40823. + ???[sx]*):;;*)false;;esac;fi
  40824. + '\'' sh
  40825. + '
  40826. +fi
  40827. +as_executable_p=$as_test_x
  40828. -*darwin*)
  40829. +# Sed expression to map a string onto a valid CPP name.
  40830. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  40831. -cat >>confdefs.h <<\_ACEOF
  40832. -#define HAVE_SOCKADDR_SA_LEN 1
  40833. -_ACEOF
  40834. +# Sed expression to map a string onto a valid variable name.
  40835. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  40836. - LIBNET_CONFIG_DEFINES="-DHAVE_SOCKADDR_SA_LEN"
  40837. - ;;
  40838. -*solaris*)
  40839. +exec 6>&1
  40840. +## ----------------------------------- ##
  40841. +## Main body of $CONFIG_STATUS script. ##
  40842. +## ----------------------------------- ##
  40843. +_ASEOF
  40844. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  40845. -cat >>confdefs.h <<\_ACEOF
  40846. -#define HAVE_SOLARIS 1
  40847. -_ACEOF
  40848. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40849. +# Save the log message, to keep $0 and so on meaningful, and to
  40850. +# report actual input values of CONFIG_FILES etc. instead of their
  40851. +# values after options handling.
  40852. +ac_log="
  40853. +This file was extended by libnet $as_me 1.1.5, which was
  40854. +generated by GNU Autoconf 2.65. Invocation command line was
  40855. + CONFIG_FILES = $CONFIG_FILES
  40856. + CONFIG_HEADERS = $CONFIG_HEADERS
  40857. + CONFIG_LINKS = $CONFIG_LINKS
  40858. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  40859. + $ $0 $@
  40860. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  40861. +"
  40862. -for ac_header in sys/bufmod.h sys/dlpi_ext.h
  40863. -do
  40864. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  40865. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40866. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  40867. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  40868. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40869. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40870. -fi
  40871. -ac_res=`eval echo '${'$as_ac_Header'}'`
  40872. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  40873. -echo "${ECHO_T}$ac_res" >&6; }
  40874. -else
  40875. - # Is the header compilable?
  40876. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  40877. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  40878. -cat >conftest.$ac_ext <<_ACEOF
  40879. -/* confdefs.h. */
  40880. -_ACEOF
  40881. -cat confdefs.h >>conftest.$ac_ext
  40882. -cat >>conftest.$ac_ext <<_ACEOF
  40883. -/* end confdefs.h. */
  40884. -$ac_includes_default
  40885. -#include <$ac_header>
  40886. _ACEOF
  40887. -rm -f conftest.$ac_objext
  40888. -if { (ac_try="$ac_compile"
  40889. -case "(($ac_try" in
  40890. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40891. - *) ac_try_echo=$ac_try;;
  40892. +
  40893. +case $ac_config_files in *"
  40894. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  40895. +esac
  40896. +
  40897. +case $ac_config_headers in *"
  40898. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  40899. esac
  40900. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40901. - (eval "$ac_compile") 2>conftest.er1
  40902. - ac_status=$?
  40903. - grep -v '^ *+' conftest.er1 >conftest.err
  40904. - rm -f conftest.er1
  40905. - cat conftest.err >&5
  40906. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40907. - (exit $ac_status); } && {
  40908. - test -z "$ac_c_werror_flag" ||
  40909. - test ! -s conftest.err
  40910. - } && test -s conftest.$ac_objext; then
  40911. - ac_header_compiler=yes
  40912. -else
  40913. - echo "$as_me: failed program was:" >&5
  40914. -sed 's/^/| /' conftest.$ac_ext >&5
  40915. - ac_header_compiler=no
  40916. -fi
  40917. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40918. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40919. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  40920. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40921. +# Files that config.status was made for.
  40922. +config_files="$ac_config_files"
  40923. +config_headers="$ac_config_headers"
  40924. +config_commands="$ac_config_commands"
  40925. -# Is the header present?
  40926. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  40927. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  40928. -cat >conftest.$ac_ext <<_ACEOF
  40929. -/* confdefs.h. */
  40930. _ACEOF
  40931. -cat confdefs.h >>conftest.$ac_ext
  40932. -cat >>conftest.$ac_ext <<_ACEOF
  40933. -/* end confdefs.h. */
  40934. -#include <$ac_header>
  40935. -_ACEOF
  40936. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  40937. -case "(($ac_try" in
  40938. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40939. - *) ac_try_echo=$ac_try;;
  40940. -esac
  40941. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40942. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40943. - ac_status=$?
  40944. - grep -v '^ *+' conftest.er1 >conftest.err
  40945. - rm -f conftest.er1
  40946. - cat conftest.err >&5
  40947. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40948. - (exit $ac_status); } >/dev/null && {
  40949. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40950. - test ! -s conftest.err
  40951. - }; then
  40952. - ac_header_preproc=yes
  40953. -else
  40954. - echo "$as_me: failed program was:" >&5
  40955. -sed 's/^/| /' conftest.$ac_ext >&5
  40956. -
  40957. - ac_header_preproc=no
  40958. -fi
  40959. -rm -f conftest.err conftest.$ac_ext
  40960. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40961. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  40962. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40963. +ac_cs_usage="\
  40964. +\`$as_me' instantiates files and other configuration actions
  40965. +from templates according to the current configuration. Unless the files
  40966. +and actions are specified as TAGs, all are instantiated by default.
  40967. -# So? What about this header?
  40968. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40969. - yes:no: )
  40970. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  40971. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40972. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  40973. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  40974. - ac_header_preproc=yes
  40975. - ;;
  40976. - no:yes:* )
  40977. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  40978. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  40979. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  40980. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  40981. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  40982. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  40983. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  40984. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  40985. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  40986. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  40987. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  40988. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  40989. +Usage: $0 [OPTION]... [TAG]...
  40990. - ;;
  40991. -esac
  40992. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  40993. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  40994. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40995. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40996. -else
  40997. - eval "$as_ac_Header=\$ac_header_preproc"
  40998. -fi
  40999. -ac_res=`eval echo '${'$as_ac_Header'}'`
  41000. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  41001. -echo "${ECHO_T}$ac_res" >&6; }
  41002. + -h, --help print this help, then exit
  41003. + -V, --version print version number and configuration settings, then exit
  41004. + --config print configuration, then exit
  41005. + -q, --quiet, --silent
  41006. + do not print progress messages
  41007. + -d, --debug don't remove temporary files
  41008. + --recheck update $as_me by reconfiguring in the same conditions
  41009. + --file=FILE[:TEMPLATE]
  41010. + instantiate the configuration file FILE
  41011. + --header=FILE[:TEMPLATE]
  41012. + instantiate the configuration header FILE
  41013. -fi
  41014. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  41015. - cat >>confdefs.h <<_ACEOF
  41016. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  41017. -_ACEOF
  41018. +Configuration files:
  41019. +$config_files
  41020. -fi
  41021. +Configuration headers:
  41022. +$config_headers
  41023. -done
  41024. +Configuration commands:
  41025. +$config_commands
  41026. - { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
  41027. -echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
  41028. - if test -c /dev/dlpi; then
  41029. - { echo "$as_me:$LINENO: result: yes" >&5
  41030. -echo "${ECHO_T}yes" >&6; }
  41031. +Report bugs to the package provider."
  41032. -cat >>confdefs.h <<\_ACEOF
  41033. -#define HAVE_DEV_DLPI 1
  41034. _ACEOF
  41035. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41036. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  41037. +ac_cs_version="\\
  41038. +libnet config.status 1.1.5
  41039. +configured by $0, generated by GNU Autoconf 2.65,
  41040. + with options \\"\$ac_cs_config\\"
  41041. - else
  41042. - { echo "$as_me:$LINENO: result: no" >&5
  41043. -echo "${ECHO_T}no" >&6; }
  41044. - dir="/dev/dlpi"
  41045. - { echo "$as_me:$LINENO: checking for $dir directory" >&5
  41046. -echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
  41047. - if test -d $dir ; then
  41048. - { echo "$as_me:$LINENO: result: yes" >&5
  41049. -echo "${ECHO_T}yes" >&6; }
  41050. +Copyright (C) 2009 Free Software Foundation, Inc.
  41051. +This config.status script is free software; the Free Software Foundation
  41052. +gives unlimited permission to copy, distribute and modify it."
  41053. -cat >>confdefs.h <<_ACEOF
  41054. -#define DLPI_DEV_PREFIX "$dir"
  41055. +ac_pwd='$ac_pwd'
  41056. +srcdir='$srcdir'
  41057. +INSTALL='$INSTALL'
  41058. +MKDIR_P='$MKDIR_P'
  41059. +AWK='$AWK'
  41060. +test -n "\$AWK" || AWK=awk
  41061. _ACEOF
  41062. - else
  41063. - { echo "$as_me:$LINENO: result: no" >&5
  41064. -echo "${ECHO_T}no" >&6; }
  41065. - fi
  41066. - fi
  41067. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41068. +# The default lists apply if the user does not specify any file.
  41069. +ac_need_defaults=:
  41070. +while test $# != 0
  41071. +do
  41072. + case $1 in
  41073. + --*=*)
  41074. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  41075. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  41076. + ac_shift=:
  41077. + ;;
  41078. + *)
  41079. + ac_option=$1
  41080. + ac_optarg=$2
  41081. + ac_shift=shift
  41082. + ;;
  41083. + esac
  41084. -{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  41085. -echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  41086. -if test "${ac_cv_lib_socket_socket+set}" = set; then
  41087. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41088. -else
  41089. - ac_check_lib_save_LIBS=$LIBS
  41090. -LIBS="-lsocket $LIBS"
  41091. -cat >conftest.$ac_ext <<_ACEOF
  41092. -/* confdefs.h. */
  41093. -_ACEOF
  41094. -cat confdefs.h >>conftest.$ac_ext
  41095. -cat >>conftest.$ac_ext <<_ACEOF
  41096. -/* end confdefs.h. */
  41097. + case $ac_option in
  41098. + # Handling of the options.
  41099. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  41100. + ac_cs_recheck=: ;;
  41101. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  41102. + $as_echo "$ac_cs_version"; exit ;;
  41103. + --config | --confi | --conf | --con | --co | --c )
  41104. + $as_echo "$ac_cs_config"; exit ;;
  41105. + --debug | --debu | --deb | --de | --d | -d )
  41106. + debug=: ;;
  41107. + --file | --fil | --fi | --f )
  41108. + $ac_shift
  41109. + case $ac_optarg in
  41110. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  41111. + esac
  41112. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  41113. + ac_need_defaults=false;;
  41114. + --header | --heade | --head | --hea )
  41115. + $ac_shift
  41116. + case $ac_optarg in
  41117. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  41118. + esac
  41119. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  41120. + ac_need_defaults=false;;
  41121. + --he | --h)
  41122. + # Conflict between --help and --header
  41123. + as_fn_error "ambiguous option: \`$1'
  41124. +Try \`$0 --help' for more information.";;
  41125. + --help | --hel | -h )
  41126. + $as_echo "$ac_cs_usage"; exit ;;
  41127. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  41128. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  41129. + ac_cs_silent=: ;;
  41130. -/* Override any GCC internal prototype to avoid an error.
  41131. - Use char because int might match the return type of a GCC
  41132. - builtin and then its argument prototype would still apply. */
  41133. -#ifdef __cplusplus
  41134. -extern "C"
  41135. -#endif
  41136. -char socket ();
  41137. -int
  41138. -main ()
  41139. -{
  41140. -return socket ();
  41141. - ;
  41142. - return 0;
  41143. -}
  41144. -_ACEOF
  41145. -rm -f conftest.$ac_objext conftest$ac_exeext
  41146. -if { (ac_try="$ac_link"
  41147. -case "(($ac_try" in
  41148. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41149. - *) ac_try_echo=$ac_try;;
  41150. -esac
  41151. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41152. - (eval "$ac_link") 2>conftest.er1
  41153. - ac_status=$?
  41154. - grep -v '^ *+' conftest.er1 >conftest.err
  41155. - rm -f conftest.er1
  41156. - cat conftest.err >&5
  41157. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41158. - (exit $ac_status); } && {
  41159. - test -z "$ac_c_werror_flag" ||
  41160. - test ! -s conftest.err
  41161. - } && test -s conftest$ac_exeext &&
  41162. - $as_test_x conftest$ac_exeext; then
  41163. - ac_cv_lib_socket_socket=yes
  41164. -else
  41165. - echo "$as_me: failed program was:" >&5
  41166. -sed 's/^/| /' conftest.$ac_ext >&5
  41167. + # This is an error.
  41168. + -*) as_fn_error "unrecognized option: \`$1'
  41169. +Try \`$0 --help' for more information." ;;
  41170. - ac_cv_lib_socket_socket=no
  41171. -fi
  41172. + *) as_fn_append ac_config_targets " $1"
  41173. + ac_need_defaults=false ;;
  41174. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41175. - conftest$ac_exeext conftest.$ac_ext
  41176. -LIBS=$ac_check_lib_save_LIBS
  41177. -fi
  41178. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  41179. -echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  41180. -if test $ac_cv_lib_socket_socket = yes; then
  41181. - cat >>confdefs.h <<_ACEOF
  41182. -#define HAVE_LIBSOCKET 1
  41183. -_ACEOF
  41184. + esac
  41185. + shift
  41186. +done
  41187. - LIBS="-lsocket $LIBS"
  41188. +ac_configure_extra_args=
  41189. -else
  41190. - { { echo "$as_me:$LINENO: error: libsocket not found." >&5
  41191. -echo "$as_me: error: libsocket not found." >&2;}
  41192. - { (exit 1); exit 1; }; }
  41193. +if $ac_cs_silent; then
  41194. + exec 6>/dev/null
  41195. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  41196. fi
  41197. -
  41198. -{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  41199. -echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  41200. -if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  41201. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41202. -else
  41203. - ac_check_lib_save_LIBS=$LIBS
  41204. -LIBS="-lnsl $LIBS"
  41205. -cat >conftest.$ac_ext <<_ACEOF
  41206. -/* confdefs.h. */
  41207. _ACEOF
  41208. -cat confdefs.h >>conftest.$ac_ext
  41209. -cat >>conftest.$ac_ext <<_ACEOF
  41210. -/* end confdefs.h. */
  41211. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41212. +if \$ac_cs_recheck; then
  41213. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  41214. + shift
  41215. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  41216. + CONFIG_SHELL='$SHELL'
  41217. + export CONFIG_SHELL
  41218. + exec "\$@"
  41219. +fi
  41220. -/* Override any GCC internal prototype to avoid an error.
  41221. - Use char because int might match the return type of a GCC
  41222. - builtin and then its argument prototype would still apply. */
  41223. -#ifdef __cplusplus
  41224. -extern "C"
  41225. -#endif
  41226. -char gethostbyname ();
  41227. -int
  41228. -main ()
  41229. -{
  41230. -return gethostbyname ();
  41231. - ;
  41232. - return 0;
  41233. -}
  41234. _ACEOF
  41235. -rm -f conftest.$ac_objext conftest$ac_exeext
  41236. -if { (ac_try="$ac_link"
  41237. -case "(($ac_try" in
  41238. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41239. - *) ac_try_echo=$ac_try;;
  41240. -esac
  41241. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41242. - (eval "$ac_link") 2>conftest.er1
  41243. - ac_status=$?
  41244. - grep -v '^ *+' conftest.er1 >conftest.err
  41245. - rm -f conftest.er1
  41246. - cat conftest.err >&5
  41247. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41248. - (exit $ac_status); } && {
  41249. - test -z "$ac_c_werror_flag" ||
  41250. - test ! -s conftest.err
  41251. - } && test -s conftest$ac_exeext &&
  41252. - $as_test_x conftest$ac_exeext; then
  41253. - ac_cv_lib_nsl_gethostbyname=yes
  41254. -else
  41255. - echo "$as_me: failed program was:" >&5
  41256. -sed 's/^/| /' conftest.$ac_ext >&5
  41257. -
  41258. - ac_cv_lib_nsl_gethostbyname=no
  41259. -fi
  41260. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41261. +exec 5>>config.log
  41262. +{
  41263. + echo
  41264. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  41265. +## Running $as_me. ##
  41266. +_ASBOX
  41267. + $as_echo "$ac_log"
  41268. +} >&5
  41269. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41270. - conftest$ac_exeext conftest.$ac_ext
  41271. -LIBS=$ac_check_lib_save_LIBS
  41272. -fi
  41273. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  41274. -echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  41275. -if test $ac_cv_lib_nsl_gethostbyname = yes; then
  41276. - cat >>confdefs.h <<_ACEOF
  41277. -#define HAVE_LIBNSL 1
  41278. _ACEOF
  41279. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41280. +#
  41281. +# INIT-COMMANDS
  41282. +#
  41283. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  41284. - LIBS="-lnsl $LIBS"
  41285. -else
  41286. - { { echo "$as_me:$LINENO: error: libnsl not found." >&5
  41287. -echo "$as_me: error: libnsl not found." >&2;}
  41288. - { (exit 1); exit 1; }; }
  41289. -fi
  41290. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  41291. +# if CDPATH is set.
  41292. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  41293. +sed_quote_subst='$sed_quote_subst'
  41294. +double_quote_subst='$double_quote_subst'
  41295. +delay_variable_subst='$delay_variable_subst'
  41296. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  41297. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  41298. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  41299. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  41300. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  41301. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  41302. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  41303. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  41304. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  41305. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  41306. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  41307. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  41308. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  41309. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  41310. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  41311. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  41312. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  41313. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  41314. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  41315. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  41316. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  41317. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  41318. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  41319. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  41320. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  41321. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  41322. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41323. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41324. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  41325. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  41326. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  41327. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  41328. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  41329. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  41330. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  41331. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41332. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41333. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41334. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  41335. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  41336. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  41337. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  41338. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  41339. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  41340. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  41341. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  41342. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  41343. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  41344. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  41345. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  41346. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41347. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  41348. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  41349. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  41350. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  41351. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  41352. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  41353. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  41354. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  41355. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  41356. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  41357. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  41358. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41359. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41360. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  41361. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  41362. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41363. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41364. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  41365. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41366. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41367. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41368. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41369. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41370. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41371. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  41372. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41373. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41374. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41375. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  41376. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  41377. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  41378. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  41379. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  41380. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41381. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  41382. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  41383. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  41384. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  41385. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  41386. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41387. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41388. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41389. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41390. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41391. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  41392. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  41393. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  41394. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  41395. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41396. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41397. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  41398. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41399. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41400. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41401. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41402. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41403. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41404. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  41405. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  41406. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41407. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41408. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  41409. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  41410. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  41411. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  41412. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41413. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41414. +
  41415. +LTCC='$LTCC'
  41416. +LTCFLAGS='$LTCFLAGS'
  41417. +compiler='$compiler_DEFAULT'
  41418. +
  41419. +# Quote evaled strings.
  41420. +for var in SED \
  41421. +GREP \
  41422. +EGREP \
  41423. +FGREP \
  41424. +LD \
  41425. +NM \
  41426. +LN_S \
  41427. +lt_SP2NL \
  41428. +lt_NL2SP \
  41429. +reload_flag \
  41430. +OBJDUMP \
  41431. +deplibs_check_method \
  41432. +file_magic_cmd \
  41433. +AR \
  41434. +AR_FLAGS \
  41435. +STRIP \
  41436. +RANLIB \
  41437. +CC \
  41438. +CFLAGS \
  41439. +compiler \
  41440. +lt_cv_sys_global_symbol_pipe \
  41441. +lt_cv_sys_global_symbol_to_cdecl \
  41442. +lt_cv_sys_global_symbol_to_c_name_address \
  41443. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  41444. +SHELL \
  41445. +ECHO \
  41446. +lt_prog_compiler_no_builtin_flag \
  41447. +lt_prog_compiler_wl \
  41448. +lt_prog_compiler_pic \
  41449. +lt_prog_compiler_static \
  41450. +lt_cv_prog_compiler_c_o \
  41451. +need_locks \
  41452. +DSYMUTIL \
  41453. +NMEDIT \
  41454. +LIPO \
  41455. +OTOOL \
  41456. +OTOOL64 \
  41457. +shrext_cmds \
  41458. +export_dynamic_flag_spec \
  41459. +whole_archive_flag_spec \
  41460. +compiler_needs_object \
  41461. +with_gnu_ld \
  41462. +allow_undefined_flag \
  41463. +no_undefined_flag \
  41464. +hardcode_libdir_flag_spec \
  41465. +hardcode_libdir_flag_spec_ld \
  41466. +hardcode_libdir_separator \
  41467. +fix_srcfile_path \
  41468. +exclude_expsyms \
  41469. +include_expsyms \
  41470. +file_list_spec \
  41471. +variables_saved_for_relink \
  41472. +libname_spec \
  41473. +library_names_spec \
  41474. +soname_spec \
  41475. +finish_eval \
  41476. +old_striplib \
  41477. +striplib; do
  41478. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  41479. + *[\\\\\\\`\\"\\\$]*)
  41480. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  41481. + ;;
  41482. + *)
  41483. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  41484. + ;;
  41485. + esac
  41486. +done
  41487. -{ echo "$as_me:$LINENO: checking for hstrerror in -lresolv" >&5
  41488. -echo $ECHO_N "checking for hstrerror in -lresolv... $ECHO_C" >&6; }
  41489. -if test "${ac_cv_lib_resolv_hstrerror+set}" = set; then
  41490. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41491. -else
  41492. - ac_check_lib_save_LIBS=$LIBS
  41493. -LIBS="-lresolv $LIBS"
  41494. -cat >conftest.$ac_ext <<_ACEOF
  41495. -/* confdefs.h. */
  41496. -_ACEOF
  41497. -cat confdefs.h >>conftest.$ac_ext
  41498. -cat >>conftest.$ac_ext <<_ACEOF
  41499. -/* end confdefs.h. */
  41500. +# Double-quote double-evaled strings.
  41501. +for var in reload_cmds \
  41502. +old_postinstall_cmds \
  41503. +old_postuninstall_cmds \
  41504. +old_archive_cmds \
  41505. +extract_expsyms_cmds \
  41506. +old_archive_from_new_cmds \
  41507. +old_archive_from_expsyms_cmds \
  41508. +archive_cmds \
  41509. +archive_expsym_cmds \
  41510. +module_cmds \
  41511. +module_expsym_cmds \
  41512. +export_symbols_cmds \
  41513. +prelink_cmds \
  41514. +postinstall_cmds \
  41515. +postuninstall_cmds \
  41516. +finish_cmds \
  41517. +sys_lib_search_path_spec \
  41518. +sys_lib_dlsearch_path_spec; do
  41519. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  41520. + *[\\\\\\\`\\"\\\$]*)
  41521. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  41522. + ;;
  41523. + *)
  41524. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  41525. + ;;
  41526. + esac
  41527. +done
  41528. -/* Override any GCC internal prototype to avoid an error.
  41529. - Use char because int might match the return type of a GCC
  41530. - builtin and then its argument prototype would still apply. */
  41531. -#ifdef __cplusplus
  41532. -extern "C"
  41533. -#endif
  41534. -char hstrerror ();
  41535. -int
  41536. -main ()
  41537. -{
  41538. -return hstrerror ();
  41539. - ;
  41540. - return 0;
  41541. -}
  41542. -_ACEOF
  41543. -rm -f conftest.$ac_objext conftest$ac_exeext
  41544. -if { (ac_try="$ac_link"
  41545. -case "(($ac_try" in
  41546. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41547. - *) ac_try_echo=$ac_try;;
  41548. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  41549. +case \$lt_ECHO in
  41550. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  41551. + ;;
  41552. esac
  41553. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41554. - (eval "$ac_link") 2>conftest.er1
  41555. - ac_status=$?
  41556. - grep -v '^ *+' conftest.er1 >conftest.err
  41557. - rm -f conftest.er1
  41558. - cat conftest.err >&5
  41559. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41560. - (exit $ac_status); } && {
  41561. - test -z "$ac_c_werror_flag" ||
  41562. - test ! -s conftest.err
  41563. - } && test -s conftest$ac_exeext &&
  41564. - $as_test_x conftest$ac_exeext; then
  41565. - ac_cv_lib_resolv_hstrerror=yes
  41566. -else
  41567. - echo "$as_me: failed program was:" >&5
  41568. -sed 's/^/| /' conftest.$ac_ext >&5
  41569. -
  41570. - ac_cv_lib_resolv_hstrerror=no
  41571. -fi
  41572. -
  41573. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41574. - conftest$ac_exeext conftest.$ac_ext
  41575. -LIBS=$ac_check_lib_save_LIBS
  41576. -fi
  41577. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_hstrerror" >&5
  41578. -echo "${ECHO_T}$ac_cv_lib_resolv_hstrerror" >&6; }
  41579. -if test $ac_cv_lib_resolv_hstrerror = yes; then
  41580. - cat >>confdefs.h <<_ACEOF
  41581. -#define HAVE_LIBRESOLV 1
  41582. -_ACEOF
  41583. - LIBS="-lresolv $LIBS"
  41584. +ac_aux_dir='$ac_aux_dir'
  41585. +xsi_shell='$xsi_shell'
  41586. +lt_shell_append='$lt_shell_append'
  41587. -else
  41588. - { { echo "$as_me:$LINENO: error: libresolv not found." >&5
  41589. -echo "$as_me: error: libresolv not found." >&2;}
  41590. - { (exit 1); exit 1; }; }
  41591. +# See if we are running on zsh, and set the options which allow our
  41592. +# commands through without removal of \ escapes INIT.
  41593. +if test -n "\${ZSH_VERSION+set}" ; then
  41594. + setopt NO_GLOB_SUBST
  41595. fi
  41596. - case "`uname -r`" in
  41597. - 5.4)
  41598. -
  41599. -cat >>confdefs.h <<\_ACEOF
  41600. -#define STUPID_SOLARIS_CHECKSUM_BUG 1
  41601. -_ACEOF
  41602. + PACKAGE='$PACKAGE'
  41603. + VERSION='$VERSION'
  41604. + TIMESTAMP='$TIMESTAMP'
  41605. + RM='$RM'
  41606. + ofile='$ofile'
  41607. - ;;
  41608. - 5.5*)
  41609. -cat >>confdefs.h <<\_ACEOF
  41610. -#define STUPID_SOLARIS_CHECKSUM_BUG 1
  41611. -_ACEOF
  41612. - ;;
  41613. - 5.8)
  41614. -cat >>confdefs.h <<\_ACEOF
  41615. -#define STUPID_SOLARIS_CHECKSUM_BUG 1
  41616. _ACEOF
  41617. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41618. -cat >>confdefs.h <<\_ACEOF
  41619. -#define HAVE_SOLARIS_IPV6 1
  41620. -_ACEOF
  41621. +# Handling of arguments.
  41622. +for ac_config_target in $ac_config_targets
  41623. +do
  41624. + case $ac_config_target in
  41625. + "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  41626. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  41627. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  41628. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  41629. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  41630. + "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  41631. + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  41632. + "include/libnet/Makefile") CONFIG_FILES="$CONFIG_FILES include/libnet/Makefile" ;;
  41633. + "include/win32/Makefile") CONFIG_FILES="$CONFIG_FILES include/win32/Makefile" ;;
  41634. + "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
  41635. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  41636. + "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
  41637. + "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile" ;;
  41638. + "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
  41639. + "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
  41640. + "include/libnet.h") CONFIG_FILES="$CONFIG_FILES include/libnet.h" ;;
  41641. + "libnet-config") CONFIG_FILES="$CONFIG_FILES libnet-config" ;;
  41642. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  41643. + esac
  41644. +done
  41645. - ;;
  41646. - 5.9)
  41647. -cat >>confdefs.h <<\_ACEOF
  41648. -#define STUPID_SOLARIS_CHECKSUM_BUG 1
  41649. -_ACEOF
  41650. +# If the user did not use the arguments to specify the items to instantiate,
  41651. +# then the envvar interface is used. Set only those that are not.
  41652. +# We use the long form for the default assignment because of an extremely
  41653. +# bizarre bug on SunOS 4.1.3.
  41654. +if $ac_need_defaults; then
  41655. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  41656. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  41657. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  41658. +fi
  41659. +# Have a temporary directory for convenience. Make it in the build tree
  41660. +# simply because there is no reason against having it here, and in addition,
  41661. +# creating and moving files from /tmp can sometimes cause problems.
  41662. +# Hook for its removal unless debugging.
  41663. +# Note that there is a small window in which the directory will not be cleaned:
  41664. +# after its creation but before its name has been assigned to `$tmp'.
  41665. +$debug ||
  41666. +{
  41667. + tmp=
  41668. + trap 'exit_status=$?
  41669. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  41670. +' 0
  41671. + trap 'as_fn_exit 1' 1 2 13 15
  41672. +}
  41673. +# Create a (secure) tmp directory for tmp files.
  41674. -cat >>confdefs.h <<\_ACEOF
  41675. -#define HAVE_SOLARIS_IPV6 1
  41676. -_ACEOF
  41677. +{
  41678. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  41679. + test -n "$tmp" && test -d "$tmp"
  41680. +} ||
  41681. +{
  41682. + tmp=./conf$$-$RANDOM
  41683. + (umask 077 && mkdir "$tmp")
  41684. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  41685. - ;;
  41686. +# Set up the scripts for CONFIG_FILES section.
  41687. +# No need to generate them if there are no CONFIG_FILES.
  41688. +# This happens for instance with `./config.status config.h'.
  41689. +if test -n "$CONFIG_FILES"; then
  41690. - esac
  41691. - ADDITIONAL_LIBS='-lresolv -lsocket -lnsl'
  41692. - LIBNET_CONFIG_LIBS="$LIBNET_CONFIG_LIBS -lresolv -lsocket -lnsl"
  41693. +ac_cr=`echo X | tr X '\015'`
  41694. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  41695. +# But we know of no other shell where ac_cr would be empty at this
  41696. +# point, so we can use a bashism as a fallback.
  41697. +if test "x$ac_cr" = x; then
  41698. + eval ac_cr=\$\'\\r\'
  41699. +fi
  41700. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  41701. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  41702. + ac_cs_awk_cr='\r'
  41703. +else
  41704. + ac_cs_awk_cr=$ac_cr
  41705. +fi
  41706. - ;;
  41707. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  41708. +_ACEOF
  41709. -*hpux11*)
  41710. -cat >>confdefs.h <<\_ACEOF
  41711. -#define HAVE_HPUX11 1
  41712. -_ACEOF
  41713. +{
  41714. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  41715. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  41716. + echo "_ACEOF"
  41717. +} >conf$$subs.sh ||
  41718. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41719. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  41720. +ac_delim='%!_!# '
  41721. +for ac_last_try in false false false false false :; do
  41722. + . ./conf$$subs.sh ||
  41723. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41724. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  41725. + if test $ac_delim_n = $ac_delim_num; then
  41726. + break
  41727. + elif $ac_last_try; then
  41728. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41729. + else
  41730. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41731. + fi
  41732. +done
  41733. +rm -f conf$$subs.sh
  41734. -for ac_header in sys/dlpi_ext.h
  41735. -do
  41736. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  41737. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41738. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  41739. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  41740. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41741. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41742. -fi
  41743. -ac_res=`eval echo '${'$as_ac_Header'}'`
  41744. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  41745. -echo "${ECHO_T}$ac_res" >&6; }
  41746. -else
  41747. - # Is the header compilable?
  41748. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  41749. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  41750. -cat >conftest.$ac_ext <<_ACEOF
  41751. -/* confdefs.h. */
  41752. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41753. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  41754. _ACEOF
  41755. -cat confdefs.h >>conftest.$ac_ext
  41756. -cat >>conftest.$ac_ext <<_ACEOF
  41757. -/* end confdefs.h. */
  41758. -$ac_includes_default
  41759. -#include <$ac_header>
  41760. -_ACEOF
  41761. -rm -f conftest.$ac_objext
  41762. -if { (ac_try="$ac_compile"
  41763. -case "(($ac_try" in
  41764. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41765. - *) ac_try_echo=$ac_try;;
  41766. -esac
  41767. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41768. - (eval "$ac_compile") 2>conftest.er1
  41769. - ac_status=$?
  41770. - grep -v '^ *+' conftest.er1 >conftest.err
  41771. - rm -f conftest.er1
  41772. - cat conftest.err >&5
  41773. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41774. - (exit $ac_status); } && {
  41775. - test -z "$ac_c_werror_flag" ||
  41776. - test ! -s conftest.err
  41777. - } && test -s conftest.$ac_objext; then
  41778. - ac_header_compiler=yes
  41779. -else
  41780. - echo "$as_me: failed program was:" >&5
  41781. -sed 's/^/| /' conftest.$ac_ext >&5
  41782. +sed -n '
  41783. +h
  41784. +s/^/S["/; s/!.*/"]=/
  41785. +p
  41786. +g
  41787. +s/^[^!]*!//
  41788. +:repl
  41789. +t repl
  41790. +s/'"$ac_delim"'$//
  41791. +t delim
  41792. +:nl
  41793. +h
  41794. +s/\(.\{148\}\)..*/\1/
  41795. +t more1
  41796. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  41797. +p
  41798. +n
  41799. +b repl
  41800. +:more1
  41801. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41802. +p
  41803. +g
  41804. +s/.\{148\}//
  41805. +t nl
  41806. +:delim
  41807. +h
  41808. +s/\(.\{148\}\)..*/\1/
  41809. +t more2
  41810. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  41811. +p
  41812. +b
  41813. +:more2
  41814. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41815. +p
  41816. +g
  41817. +s/.\{148\}//
  41818. +t delim
  41819. +' <conf$$subs.awk | sed '
  41820. +/^[^""]/{
  41821. + N
  41822. + s/\n//
  41823. +}
  41824. +' >>$CONFIG_STATUS || ac_write_fail=1
  41825. +rm -f conf$$subs.awk
  41826. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41827. +_ACAWK
  41828. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  41829. + for (key in S) S_is_set[key] = 1
  41830. + FS = ""
  41831. - ac_header_compiler=no
  41832. -fi
  41833. +}
  41834. +{
  41835. + line = $ 0
  41836. + nfields = split(line, field, "@")
  41837. + substed = 0
  41838. + len = length(field[1])
  41839. + for (i = 2; i < nfields; i++) {
  41840. + key = field[i]
  41841. + keylen = length(key)
  41842. + if (S_is_set[key]) {
  41843. + value = S[key]
  41844. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  41845. + len += length(value) + length(field[++i])
  41846. + substed = 1
  41847. + } else
  41848. + len += 1 + keylen
  41849. + }
  41850. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41851. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41852. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  41853. + print line
  41854. +}
  41855. -# Is the header present?
  41856. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  41857. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  41858. -cat >conftest.$ac_ext <<_ACEOF
  41859. -/* confdefs.h. */
  41860. -_ACEOF
  41861. -cat confdefs.h >>conftest.$ac_ext
  41862. -cat >>conftest.$ac_ext <<_ACEOF
  41863. -/* end confdefs.h. */
  41864. -#include <$ac_header>
  41865. +_ACAWK
  41866. _ACEOF
  41867. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  41868. -case "(($ac_try" in
  41869. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41870. - *) ac_try_echo=$ac_try;;
  41871. -esac
  41872. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41873. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41874. - ac_status=$?
  41875. - grep -v '^ *+' conftest.er1 >conftest.err
  41876. - rm -f conftest.er1
  41877. - cat conftest.err >&5
  41878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41879. - (exit $ac_status); } >/dev/null && {
  41880. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  41881. - test ! -s conftest.err
  41882. - }; then
  41883. - ac_header_preproc=yes
  41884. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41885. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  41886. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  41887. else
  41888. - echo "$as_me: failed program was:" >&5
  41889. -sed 's/^/| /' conftest.$ac_ext >&5
  41890. + cat
  41891. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  41892. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  41893. +_ACEOF
  41894. - ac_header_preproc=no
  41895. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  41896. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  41897. +# trailing colons and then remove the whole line if VPATH becomes empty
  41898. +# (actually we leave an empty line to preserve line numbers).
  41899. +if test "x$srcdir" = x.; then
  41900. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  41901. +s/:*\$(srcdir):*/:/
  41902. +s/:*\${srcdir}:*/:/
  41903. +s/:*@srcdir@:*/:/
  41904. +s/^\([^=]*=[ ]*\):*/\1/
  41905. +s/:*$//
  41906. +s/^[^=]*=[ ]*$//
  41907. +}'
  41908. fi
  41909. -rm -f conftest.err conftest.$ac_ext
  41910. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41911. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  41912. -
  41913. -# So? What about this header?
  41914. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  41915. - yes:no: )
  41916. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  41917. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41918. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  41919. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  41920. - ac_header_preproc=yes
  41921. - ;;
  41922. - no:yes:* )
  41923. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  41924. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  41925. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  41926. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  41927. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  41928. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  41929. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  41930. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  41931. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  41932. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  41933. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  41934. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  41935. -
  41936. - ;;
  41937. -esac
  41938. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  41939. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  41940. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41941. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41942. -else
  41943. - eval "$as_ac_Header=\$ac_header_preproc"
  41944. -fi
  41945. -ac_res=`eval echo '${'$as_ac_Header'}'`
  41946. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  41947. -echo "${ECHO_T}$ac_res" >&6; }
  41948. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41949. +fi # test -n "$CONFIG_FILES"
  41950. -fi
  41951. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  41952. - cat >>confdefs.h <<_ACEOF
  41953. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  41954. +# Set up the scripts for CONFIG_HEADERS section.
  41955. +# No need to generate them if there are no CONFIG_HEADERS.
  41956. +# This happens for instance with `./config.status Makefile'.
  41957. +if test -n "$CONFIG_HEADERS"; then
  41958. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  41959. +BEGIN {
  41960. _ACEOF
  41961. -fi
  41962. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  41963. +# here-document in config.status, that substitutes the proper values into
  41964. +# config.h.in to produce config.h.
  41965. +# Create a delimiter string that does not exist in confdefs.h, to ease
  41966. +# handling of long lines.
  41967. +ac_delim='%!_!# '
  41968. +for ac_last_try in false false :; do
  41969. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  41970. + if test -z "$ac_t"; then
  41971. + break
  41972. + elif $ac_last_try; then
  41973. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  41974. + else
  41975. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41976. + fi
  41977. done
  41978. - ;;
  41979. -
  41980. -*cygwin*)
  41981. +# For the awk script, D is an array of macro values keyed by name,
  41982. +# likewise P contains macro parameters if any. Preserve backslash
  41983. +# newline sequences.
  41984. -cat >>confdefs.h <<\_ACEOF
  41985. -#define LIBNET_BSDISH_OS 1
  41986. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  41987. +sed -n '
  41988. +s/.\{148\}/&'"$ac_delim"'/g
  41989. +t rset
  41990. +:rset
  41991. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  41992. +t def
  41993. +d
  41994. +:def
  41995. +s/\\$//
  41996. +t bsnl
  41997. +s/["\\]/\\&/g
  41998. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  41999. +D["\1"]=" \3"/p
  42000. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  42001. +d
  42002. +:bsnl
  42003. +s/["\\]/\\&/g
  42004. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  42005. +D["\1"]=" \3\\\\\\n"\\/p
  42006. +t cont
  42007. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  42008. +t cont
  42009. +d
  42010. +:cont
  42011. +n
  42012. +s/.\{148\}/&'"$ac_delim"'/g
  42013. +t clear
  42014. +:clear
  42015. +s/\\$//
  42016. +t bsnlc
  42017. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  42018. +d
  42019. +:bsnlc
  42020. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  42021. +b cont
  42022. +' <confdefs.h | sed '
  42023. +s/'"$ac_delim"'/"\\\
  42024. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  42025. +
  42026. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42027. + for (key in D) D_is_set[key] = 1
  42028. + FS = ""
  42029. +}
  42030. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  42031. + line = \$ 0
  42032. + split(line, arg, " ")
  42033. + if (arg[1] == "#") {
  42034. + defundef = arg[2]
  42035. + mac1 = arg[3]
  42036. + } else {
  42037. + defundef = substr(arg[1], 2)
  42038. + mac1 = arg[2]
  42039. + }
  42040. + split(mac1, mac2, "(") #)
  42041. + macro = mac2[1]
  42042. + prefix = substr(line, 1, index(line, defundef) - 1)
  42043. + if (D_is_set[macro]) {
  42044. + # Preserve the white space surrounding the "#".
  42045. + print prefix "define", macro P[macro] D[macro]
  42046. + next
  42047. + } else {
  42048. + # Replace #undef with comments. This is necessary, for example,
  42049. + # in the case of _POSIX_SOURCE, which is predefined and required
  42050. + # on some systems where configure will not decide to define it.
  42051. + if (defundef == "undef") {
  42052. + print "/*", prefix defundef, macro, "*/"
  42053. + next
  42054. + }
  42055. + }
  42056. +}
  42057. +{ print }
  42058. +_ACAWK
  42059. _ACEOF
  42060. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42061. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  42062. +fi # test -n "$CONFIG_HEADERS"
  42063. -cat >>confdefs.h <<\_ACEOF
  42064. -#define NO_SNPRINTF 1
  42065. -_ACEOF
  42066. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  42067. +shift
  42068. +for ac_tag
  42069. +do
  42070. + case $ac_tag in
  42071. + :[FHLC]) ac_mode=$ac_tag; continue;;
  42072. + esac
  42073. + case $ac_mode$ac_tag in
  42074. + :[FHL]*:*);;
  42075. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  42076. + :[FH]-) ac_tag=-:-;;
  42077. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  42078. + esac
  42079. + ac_save_IFS=$IFS
  42080. + IFS=:
  42081. + set x $ac_tag
  42082. + IFS=$ac_save_IFS
  42083. + shift
  42084. + ac_file=$1
  42085. + shift
  42086. - LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DNO_SNPRINTF"
  42087. - CFLAGS="$CFLAGS -mno-cygwin -O0 -fnative-struct -DNO_SNPRINTF -I/usr/include/pcap"
  42088. + case $ac_mode in
  42089. + :L) ac_source=$1;;
  42090. + :[FH])
  42091. + ac_file_inputs=
  42092. + for ac_f
  42093. + do
  42094. + case $ac_f in
  42095. + -) ac_f="$tmp/stdin";;
  42096. + *) # Look for the file first in the build tree, then in the source tree
  42097. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  42098. + # because $ac_f cannot contain `:'.
  42099. + test -f "$ac_f" ||
  42100. + case $ac_f in
  42101. + [\\/$]*) false;;
  42102. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  42103. + esac ||
  42104. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  42105. + esac
  42106. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  42107. + as_fn_append ac_file_inputs " '$ac_f'"
  42108. + done
  42109. -{ echo "$as_me:$LINENO: checking for PacketSetMode in -lpacket" >&5
  42110. -echo $ECHO_N "checking for PacketSetMode in -lpacket... $ECHO_C" >&6; }
  42111. -if test "${ac_cv_lib_packet_PacketSetMode+set}" = set; then
  42112. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42113. -else
  42114. - ac_check_lib_save_LIBS=$LIBS
  42115. -LIBS="-lpacket $LIBS"
  42116. -cat >conftest.$ac_ext <<_ACEOF
  42117. -/* confdefs.h. */
  42118. -_ACEOF
  42119. -cat confdefs.h >>conftest.$ac_ext
  42120. -cat >>conftest.$ac_ext <<_ACEOF
  42121. -/* end confdefs.h. */
  42122. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  42123. + # use $as_me), people would be surprised to read:
  42124. + # /* config.h. Generated by config.status. */
  42125. + configure_input='Generated from '`
  42126. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  42127. + `' by configure.'
  42128. + if test x"$ac_file" != x-; then
  42129. + configure_input="$ac_file. $configure_input"
  42130. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  42131. +$as_echo "$as_me: creating $ac_file" >&6;}
  42132. + fi
  42133. + # Neutralize special characters interpreted by sed in replacement strings.
  42134. + case $configure_input in #(
  42135. + *\&* | *\|* | *\\* )
  42136. + ac_sed_conf_input=`$as_echo "$configure_input" |
  42137. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  42138. + *) ac_sed_conf_input=$configure_input;;
  42139. + esac
  42140. -/* Override any GCC internal prototype to avoid an error.
  42141. - Use char because int might match the return type of a GCC
  42142. - builtin and then its argument prototype would still apply. */
  42143. -#ifdef __cplusplus
  42144. -extern "C"
  42145. -#endif
  42146. -char PacketSetMode ();
  42147. -int
  42148. -main ()
  42149. -{
  42150. -return PacketSetMode ();
  42151. - ;
  42152. - return 0;
  42153. -}
  42154. -_ACEOF
  42155. -rm -f conftest.$ac_objext conftest$ac_exeext
  42156. -if { (ac_try="$ac_link"
  42157. -case "(($ac_try" in
  42158. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42159. - *) ac_try_echo=$ac_try;;
  42160. -esac
  42161. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42162. - (eval "$ac_link") 2>conftest.er1
  42163. - ac_status=$?
  42164. - grep -v '^ *+' conftest.er1 >conftest.err
  42165. - rm -f conftest.er1
  42166. - cat conftest.err >&5
  42167. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42168. - (exit $ac_status); } && {
  42169. - test -z "$ac_c_werror_flag" ||
  42170. - test ! -s conftest.err
  42171. - } && test -s conftest$ac_exeext &&
  42172. - $as_test_x conftest$ac_exeext; then
  42173. - ac_cv_lib_packet_PacketSetMode=yes
  42174. -else
  42175. - echo "$as_me: failed program was:" >&5
  42176. -sed 's/^/| /' conftest.$ac_ext >&5
  42177. + case $ac_tag in
  42178. + *:-:* | *:-) cat >"$tmp/stdin" \
  42179. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  42180. + esac
  42181. + ;;
  42182. + esac
  42183. - ac_cv_lib_packet_PacketSetMode=no
  42184. -fi
  42185. + ac_dir=`$as_dirname -- "$ac_file" ||
  42186. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42187. + X"$ac_file" : 'X\(//\)[^/]' \| \
  42188. + X"$ac_file" : 'X\(//\)$' \| \
  42189. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  42190. +$as_echo X"$ac_file" |
  42191. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42192. + s//\1/
  42193. + q
  42194. + }
  42195. + /^X\(\/\/\)[^/].*/{
  42196. + s//\1/
  42197. + q
  42198. + }
  42199. + /^X\(\/\/\)$/{
  42200. + s//\1/
  42201. + q
  42202. + }
  42203. + /^X\(\/\).*/{
  42204. + s//\1/
  42205. + q
  42206. + }
  42207. + s/.*/./; q'`
  42208. + as_dir="$ac_dir"; as_fn_mkdir_p
  42209. + ac_builddir=.
  42210. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42211. - conftest$ac_exeext conftest.$ac_ext
  42212. -LIBS=$ac_check_lib_save_LIBS
  42213. -fi
  42214. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_packet_PacketSetMode" >&5
  42215. -echo "${ECHO_T}$ac_cv_lib_packet_PacketSetMode" >&6; }
  42216. -if test $ac_cv_lib_packet_PacketSetMode = yes; then
  42217. - cat >>confdefs.h <<_ACEOF
  42218. -#define HAVE_LIBPACKET 1
  42219. -_ACEOF
  42220. +case "$ac_dir" in
  42221. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42222. +*)
  42223. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  42224. + # A ".." for each directory in $ac_dir_suffix.
  42225. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  42226. + case $ac_top_builddir_sub in
  42227. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42228. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  42229. + esac ;;
  42230. +esac
  42231. +ac_abs_top_builddir=$ac_pwd
  42232. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  42233. +# for backward compatibility:
  42234. +ac_top_builddir=$ac_top_build_prefix
  42235. - LIBS="-lpacket $LIBS"
  42236. +case $srcdir in
  42237. + .) # We are building in place.
  42238. + ac_srcdir=.
  42239. + ac_top_srcdir=$ac_top_builddir_sub
  42240. + ac_abs_top_srcdir=$ac_pwd ;;
  42241. + [\\/]* | ?:[\\/]* ) # Absolute name.
  42242. + ac_srcdir=$srcdir$ac_dir_suffix;
  42243. + ac_top_srcdir=$srcdir
  42244. + ac_abs_top_srcdir=$srcdir ;;
  42245. + *) # Relative name.
  42246. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  42247. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  42248. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  42249. +esac
  42250. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  42251. -else
  42252. - { { echo "$as_me:$LINENO: error: packet lib not found." >&5
  42253. -echo "$as_me: error: packet lib not found." >&2;}
  42254. - { (exit 1); exit 1; }; }
  42255. -fi
  42256. + case $ac_mode in
  42257. + :F)
  42258. + #
  42259. + # CONFIG_FILE
  42260. + #
  42261. -{ echo "$as_me:$LINENO: checking for pcap_setmode in -lwpcap" >&5
  42262. -echo $ECHO_N "checking for pcap_setmode in -lwpcap... $ECHO_C" >&6; }
  42263. -if test "${ac_cv_lib_wpcap_pcap_setmode+set}" = set; then
  42264. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42265. -else
  42266. - ac_check_lib_save_LIBS=$LIBS
  42267. -LIBS="-lwpcap $LIBS"
  42268. -cat >conftest.$ac_ext <<_ACEOF
  42269. -/* confdefs.h. */
  42270. + case $INSTALL in
  42271. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  42272. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  42273. + esac
  42274. + ac_MKDIR_P=$MKDIR_P
  42275. + case $MKDIR_P in
  42276. + [\\/$]* | ?:[\\/]* ) ;;
  42277. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  42278. + esac
  42279. _ACEOF
  42280. -cat confdefs.h >>conftest.$ac_ext
  42281. -cat >>conftest.$ac_ext <<_ACEOF
  42282. -/* end confdefs.h. */
  42283. -/* Override any GCC internal prototype to avoid an error.
  42284. - Use char because int might match the return type of a GCC
  42285. - builtin and then its argument prototype would still apply. */
  42286. -#ifdef __cplusplus
  42287. -extern "C"
  42288. -#endif
  42289. -char pcap_setmode ();
  42290. -int
  42291. -main ()
  42292. -{
  42293. -return pcap_setmode ();
  42294. - ;
  42295. - return 0;
  42296. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42297. +# If the template does not know about datarootdir, expand it.
  42298. +# FIXME: This hack should be removed a few years after 2.60.
  42299. +ac_datarootdir_hack=; ac_datarootdir_seen=
  42300. +ac_sed_dataroot='
  42301. +/datarootdir/ {
  42302. + p
  42303. + q
  42304. }
  42305. +/@datadir@/p
  42306. +/@docdir@/p
  42307. +/@infodir@/p
  42308. +/@localedir@/p
  42309. +/@mandir@/p'
  42310. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  42311. +*datarootdir*) ac_datarootdir_seen=yes;;
  42312. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  42313. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  42314. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  42315. _ACEOF
  42316. -rm -f conftest.$ac_objext conftest$ac_exeext
  42317. -if { (ac_try="$ac_link"
  42318. -case "(($ac_try" in
  42319. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42320. - *) ac_try_echo=$ac_try;;
  42321. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42322. + ac_datarootdir_hack='
  42323. + s&@datadir@&$datadir&g
  42324. + s&@docdir@&$docdir&g
  42325. + s&@infodir@&$infodir&g
  42326. + s&@localedir@&$localedir&g
  42327. + s&@mandir@&$mandir&g
  42328. + s&\\\${datarootdir}&$datarootdir&g' ;;
  42329. esac
  42330. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42331. - (eval "$ac_link") 2>conftest.er1
  42332. - ac_status=$?
  42333. - grep -v '^ *+' conftest.er1 >conftest.err
  42334. - rm -f conftest.er1
  42335. - cat conftest.err >&5
  42336. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42337. - (exit $ac_status); } && {
  42338. - test -z "$ac_c_werror_flag" ||
  42339. - test ! -s conftest.err
  42340. - } && test -s conftest$ac_exeext &&
  42341. - $as_test_x conftest$ac_exeext; then
  42342. - ac_cv_lib_wpcap_pcap_setmode=yes
  42343. -else
  42344. - echo "$as_me: failed program was:" >&5
  42345. -sed 's/^/| /' conftest.$ac_ext >&5
  42346. -
  42347. - ac_cv_lib_wpcap_pcap_setmode=no
  42348. -fi
  42349. -
  42350. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42351. - conftest$ac_exeext conftest.$ac_ext
  42352. -LIBS=$ac_check_lib_save_LIBS
  42353. -fi
  42354. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_wpcap_pcap_setmode" >&5
  42355. -echo "${ECHO_T}$ac_cv_lib_wpcap_pcap_setmode" >&6; }
  42356. -if test $ac_cv_lib_wpcap_pcap_setmode = yes; then
  42357. - cat >>confdefs.h <<_ACEOF
  42358. -#define HAVE_LIBWPCAP 1
  42359. _ACEOF
  42360. - LIBS="-lwpcap $LIBS"
  42361. -
  42362. -else
  42363. - { { echo "$as_me:$LINENO: error: pcap lib not found." >&5
  42364. -echo "$as_me: error: pcap lib not found." >&2;}
  42365. - { (exit 1); exit 1; }; }
  42366. -fi
  42367. -
  42368. - LIBS="$LIBS -lws2_32"
  42369. - ;;
  42370. -
  42371. -*)
  42372. - { echo "$as_me:$LINENO: WARNING: apparently your OS is not officially supported yet" >&5
  42373. -echo "$as_me: WARNING: apparently your OS is not officially supported yet" >&2;}
  42374. - { echo "$as_me:$LINENO: WARNING: this may not work" >&5
  42375. -echo "$as_me: WARNING: this may not work" >&2;}
  42376. - { echo "$as_me:$LINENO: result: please send diffs to vieuxtech@gmail.com" >&5
  42377. -echo "${ECHO_T}please send diffs to vieuxtech@gmail.com" >&6; }
  42378. - ;;
  42379. +# Neutralize VPATH when `$srcdir' = `.'.
  42380. +# Shell code in configure.ac might set extrasub.
  42381. +# FIXME: do we really want to maintain this feature?
  42382. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42383. +ac_sed_extra="$ac_vpsub
  42384. +$extrasub
  42385. +_ACEOF
  42386. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42387. +:t
  42388. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  42389. +s|@configure_input@|$ac_sed_conf_input|;t t
  42390. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  42391. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  42392. +s&@srcdir@&$ac_srcdir&;t t
  42393. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  42394. +s&@top_srcdir@&$ac_top_srcdir&;t t
  42395. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  42396. +s&@builddir@&$ac_builddir&;t t
  42397. +s&@abs_builddir@&$ac_abs_builddir&;t t
  42398. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  42399. +s&@INSTALL@&$ac_INSTALL&;t t
  42400. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  42401. +$ac_datarootdir_hack
  42402. +"
  42403. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  42404. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42405. -esac
  42406. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  42407. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  42408. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  42409. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42410. +which seems to be undefined. Please make sure it is defined." >&5
  42411. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42412. +which seems to be undefined. Please make sure it is defined." >&2;}
  42413. + rm -f "$tmp/stdin"
  42414. + case $ac_file in
  42415. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  42416. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  42417. + esac \
  42418. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42419. + ;;
  42420. + :H)
  42421. + #
  42422. + # CONFIG_HEADER
  42423. + #
  42424. + if test x"$ac_file" != x-; then
  42425. + {
  42426. + $as_echo "/* $configure_input */" \
  42427. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  42428. + } >"$tmp/config.h" \
  42429. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42430. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  42431. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  42432. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  42433. + else
  42434. + rm -f "$ac_file"
  42435. + mv "$tmp/config.h" "$ac_file" \
  42436. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42437. + fi
  42438. + else
  42439. + $as_echo "/* $configure_input */" \
  42440. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  42441. + || as_fn_error "could not create -" "$LINENO" 5
  42442. + fi
  42443. +# Compute "$ac_file"'s index in $config_headers.
  42444. +_am_arg="$ac_file"
  42445. +_am_stamp_count=1
  42446. +for _am_header in $config_headers :; do
  42447. + case $_am_header in
  42448. + $_am_arg | $_am_arg:* )
  42449. + break ;;
  42450. + * )
  42451. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  42452. + esac
  42453. +done
  42454. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  42455. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42456. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  42457. + X"$_am_arg" : 'X\(//\)$' \| \
  42458. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  42459. +$as_echo X"$_am_arg" |
  42460. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42461. + s//\1/
  42462. + q
  42463. + }
  42464. + /^X\(\/\/\)[^/].*/{
  42465. + s//\1/
  42466. + q
  42467. + }
  42468. + /^X\(\/\/\)$/{
  42469. + s//\1/
  42470. + q
  42471. + }
  42472. + /^X\(\/\).*/{
  42473. + s//\1/
  42474. + q
  42475. + }
  42476. + s/.*/./; q'`/stamp-h$_am_stamp_count
  42477. + ;;
  42478. -# Check whether --enable-samples was given.
  42479. -if test "${enable_samples+set}" = set; then
  42480. - enableval=$enable_samples;
  42481. -fi
  42482. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  42483. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  42484. + ;;
  42485. + esac
  42486. - if test x"$enable_samples" = xyes; then
  42487. - INSTALL_SAMPLES_TRUE=
  42488. - INSTALL_SAMPLES_FALSE='#'
  42489. -else
  42490. - INSTALL_SAMPLES_TRUE='#'
  42491. - INSTALL_SAMPLES_FALSE=
  42492. -fi
  42493. + case $ac_file$ac_mode in
  42494. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  42495. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  42496. + # are listed without --file. Let's play safe and only enable the eval
  42497. + # if we detect the quoting.
  42498. + case $CONFIG_FILES in
  42499. + *\'*) eval set x "$CONFIG_FILES" ;;
  42500. + *) set x $CONFIG_FILES ;;
  42501. + esac
  42502. + shift
  42503. + for mf
  42504. + do
  42505. + # Strip MF so we end up with the name of the file.
  42506. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  42507. + # Check whether this is an Automake generated Makefile or not.
  42508. + # We used to match only the files named `Makefile.in', but
  42509. + # some people rename them; so instead we look at the file content.
  42510. + # Grep'ing the first line is not enough: some people post-process
  42511. + # each Makefile.in and add a new line on top of each file to say so.
  42512. + # Grep'ing the whole file is not good either: AIX grep has a line
  42513. + # limit of 2048, but all sed's we know have understand at least 4000.
  42514. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  42515. + dirpart=`$as_dirname -- "$mf" ||
  42516. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42517. + X"$mf" : 'X\(//\)[^/]' \| \
  42518. + X"$mf" : 'X\(//\)$' \| \
  42519. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  42520. +$as_echo X"$mf" |
  42521. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42522. + s//\1/
  42523. + q
  42524. + }
  42525. + /^X\(\/\/\)[^/].*/{
  42526. + s//\1/
  42527. + q
  42528. + }
  42529. + /^X\(\/\/\)$/{
  42530. + s//\1/
  42531. + q
  42532. + }
  42533. + /^X\(\/\).*/{
  42534. + s//\1/
  42535. + q
  42536. + }
  42537. + s/.*/./; q'`
  42538. + else
  42539. + continue
  42540. + fi
  42541. + # Extract the definition of DEPDIR, am__include, and am__quote
  42542. + # from the Makefile without running `make'.
  42543. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  42544. + test -z "$DEPDIR" && continue
  42545. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  42546. + test -z "am__include" && continue
  42547. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  42548. + # When using ansi2knr, U may be empty or an underscore; expand it
  42549. + U=`sed -n 's/^U = //p' < "$mf"`
  42550. + # Find all dependency output files, they are included files with
  42551. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  42552. + # simplest approach to changing $(DEPDIR) to its actual value in the
  42553. + # expansion.
  42554. + for file in `sed -n "
  42555. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  42556. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  42557. + # Make sure the directory exists.
  42558. + test -f "$dirpart/$file" && continue
  42559. + fdir=`$as_dirname -- "$file" ||
  42560. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42561. + X"$file" : 'X\(//\)[^/]' \| \
  42562. + X"$file" : 'X\(//\)$' \| \
  42563. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  42564. +$as_echo X"$file" |
  42565. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42566. + s//\1/
  42567. + q
  42568. + }
  42569. + /^X\(\/\/\)[^/].*/{
  42570. + s//\1/
  42571. + q
  42572. + }
  42573. + /^X\(\/\/\)$/{
  42574. + s//\1/
  42575. + q
  42576. + }
  42577. + /^X\(\/\).*/{
  42578. + s//\1/
  42579. + q
  42580. + }
  42581. + s/.*/./; q'`
  42582. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  42583. + # echo "creating $dirpart/$file"
  42584. + echo '# dummy' > "$dirpart/$file"
  42585. + done
  42586. + done
  42587. +}
  42588. + ;;
  42589. + "libtool":C)
  42590. + # See if we are running on zsh, and set the options which allow our
  42591. + # commands through without removal of \ escapes.
  42592. + if test -n "${ZSH_VERSION+set}" ; then
  42593. + setopt NO_GLOB_SUBST
  42594. + fi
  42595. -ac_config_files="$ac_config_files Makefile src/Makefile win32/Makefile include/Makefile include/libnet/Makefile include/win32/Makefile sample/Makefile doc/Makefile doc/man/Makefile doc/man/man3/Makefile doc/html/Makefile version.h include/libnet.h libnet-config"
  42596. + cfgfile="${ofile}T"
  42597. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  42598. + $RM "$cfgfile"
  42599. -cat >confcache <<\_ACEOF
  42600. -# This file is a shell script that caches the results of configure
  42601. -# tests run on this system so they can be shared between configure
  42602. -# scripts and configure runs, see configure's option --config-cache.
  42603. -# It is not useful on other systems. If it contains results you don't
  42604. -# want to keep, you may remove or edit it.
  42605. + cat <<_LT_EOF >> "$cfgfile"
  42606. +#! $SHELL
  42607. +
  42608. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  42609. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  42610. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  42611. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  42612. #
  42613. -# config.status only pays attention to the cache file if you give it
  42614. -# the --recheck option to rerun configure.
  42615. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  42616. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  42617. +# Written by Gordon Matzigkeit, 1996
  42618. +#
  42619. +# This file is part of GNU Libtool.
  42620. +#
  42621. +# GNU Libtool is free software; you can redistribute it and/or
  42622. +# modify it under the terms of the GNU General Public License as
  42623. +# published by the Free Software Foundation; either version 2 of
  42624. +# the License, or (at your option) any later version.
  42625. +#
  42626. +# As a special exception to the GNU General Public License,
  42627. +# if you distribute this file as part of a program or library that
  42628. +# is built using GNU Libtool, you may include this file under the
  42629. +# same distribution terms that you use for the rest of that program.
  42630. +#
  42631. +# GNU Libtool is distributed in the hope that it will be useful,
  42632. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  42633. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42634. +# GNU General Public License for more details.
  42635. #
  42636. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  42637. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  42638. -# following values.
  42639. +# You should have received a copy of the GNU General Public License
  42640. +# along with GNU Libtool; see the file COPYING. If not, a copy
  42641. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  42642. +# obtained by writing to the Free Software Foundation, Inc.,
  42643. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  42644. -_ACEOF
  42645. -# The following way of writing the cache mishandles newlines in values,
  42646. -# but we know of no workaround that is simple, portable, and efficient.
  42647. -# So, we kill variables containing newlines.
  42648. -# Ultrix sh set writes to stderr and can't be redirected directly,
  42649. -# and sets the high bit in the cache file unless we assign to the vars.
  42650. -(
  42651. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  42652. - eval ac_val=\$$ac_var
  42653. - case $ac_val in #(
  42654. - *${as_nl}*)
  42655. - case $ac_var in #(
  42656. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  42657. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  42658. - esac
  42659. - case $ac_var in #(
  42660. - _ | IFS | as_nl) ;; #(
  42661. - *) $as_unset $ac_var ;;
  42662. - esac ;;
  42663. - esac
  42664. - done
  42665. +# The names of the tagged configurations supported by this script.
  42666. +available_tags=""
  42667. - (set) 2>&1 |
  42668. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  42669. - *${as_nl}ac_space=\ *)
  42670. - # `set' does not quote correctly, so add quotes (double-quote
  42671. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  42672. - sed -n \
  42673. - "s/'/'\\\\''/g;
  42674. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  42675. - ;; #(
  42676. - *)
  42677. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  42678. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  42679. - ;;
  42680. - esac |
  42681. - sort
  42682. -) |
  42683. - sed '
  42684. - /^ac_cv_env_/b end
  42685. - t clear
  42686. - :clear
  42687. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  42688. - t end
  42689. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  42690. - :end' >>confcache
  42691. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  42692. - if test -w "$cache_file"; then
  42693. - test "x$cache_file" != "x/dev/null" &&
  42694. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  42695. -echo "$as_me: updating cache $cache_file" >&6;}
  42696. - cat confcache >$cache_file
  42697. - else
  42698. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  42699. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  42700. - fi
  42701. -fi
  42702. -rm -f confcache
  42703. +# ### BEGIN LIBTOOL CONFIG
  42704. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  42705. -# Let make expand exec_prefix.
  42706. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  42707. +# Which release of libtool.m4 was used?
  42708. +macro_version=$macro_version
  42709. +macro_revision=$macro_revision
  42710. -DEFS=-DHAVE_CONFIG_H
  42711. +# Whether or not to build shared libraries.
  42712. +build_libtool_libs=$enable_shared
  42713. -ac_libobjs=
  42714. -ac_ltlibobjs=
  42715. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  42716. - # 1. Remove the extension, and $U if already installed.
  42717. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  42718. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  42719. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  42720. - # will be set to the directory where LIBOBJS objects are built.
  42721. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  42722. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  42723. -done
  42724. -LIBOBJS=$ac_libobjs
  42725. +# Whether or not to build static libraries.
  42726. +build_old_libs=$enable_static
  42727. -LTLIBOBJS=$ac_ltlibobjs
  42728. +# What type of objects to build.
  42729. +pic_mode=$pic_mode
  42730. +# Whether or not to optimize for fast installation.
  42731. +fast_install=$enable_fast_install
  42732. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  42733. - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  42734. -Usually this means the macro was only invoked conditionally." >&5
  42735. -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  42736. -Usually this means the macro was only invoked conditionally." >&2;}
  42737. - { (exit 1); exit 1; }; }
  42738. -fi
  42739. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  42740. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  42741. -Usually this means the macro was only invoked conditionally." >&5
  42742. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  42743. -Usually this means the macro was only invoked conditionally." >&2;}
  42744. - { (exit 1); exit 1; }; }
  42745. -fi
  42746. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  42747. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  42748. -Usually this means the macro was only invoked conditionally." >&5
  42749. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  42750. -Usually this means the macro was only invoked conditionally." >&2;}
  42751. - { (exit 1); exit 1; }; }
  42752. -fi
  42753. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  42754. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  42755. -Usually this means the macro was only invoked conditionally." >&5
  42756. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  42757. -Usually this means the macro was only invoked conditionally." >&2;}
  42758. - { (exit 1); exit 1; }; }
  42759. -fi
  42760. -if test -z "${INSTALL_SAMPLES_TRUE}" && test -z "${INSTALL_SAMPLES_FALSE}"; then
  42761. - { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SAMPLES\" was never defined.
  42762. -Usually this means the macro was only invoked conditionally." >&5
  42763. -echo "$as_me: error: conditional \"INSTALL_SAMPLES\" was never defined.
  42764. -Usually this means the macro was only invoked conditionally." >&2;}
  42765. - { (exit 1); exit 1; }; }
  42766. -fi
  42767. +# The host system.
  42768. +host_alias=$host_alias
  42769. +host=$host
  42770. +host_os=$host_os
  42771. -: ${CONFIG_STATUS=./config.status}
  42772. -ac_clean_files_save=$ac_clean_files
  42773. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  42774. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  42775. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  42776. -cat >$CONFIG_STATUS <<_ACEOF
  42777. -#! $SHELL
  42778. -# Generated by $as_me.
  42779. -# Run this file to recreate the current configuration.
  42780. -# Compiler output produced by configure, useful for debugging
  42781. -# configure, is in config.log if it exists.
  42782. +# The build system.
  42783. +build_alias=$build_alias
  42784. +build=$build
  42785. +build_os=$build_os
  42786. -debug=false
  42787. -ac_cs_recheck=false
  42788. -ac_cs_silent=false
  42789. -SHELL=\${CONFIG_SHELL-$SHELL}
  42790. -_ACEOF
  42791. +# A sed program that does not truncate output.
  42792. +SED=$lt_SED
  42793. -cat >>$CONFIG_STATUS <<\_ACEOF
  42794. -## --------------------- ##
  42795. -## M4sh Initialization. ##
  42796. -## --------------------- ##
  42797. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  42798. +Xsed="\$SED -e 1s/^X//"
  42799. -# Be more Bourne compatible
  42800. -DUALCASE=1; export DUALCASE # for MKS sh
  42801. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  42802. - emulate sh
  42803. - NULLCMD=:
  42804. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  42805. - # is contrary to our usage. Disable this feature.
  42806. - alias -g '${1+"$@"}'='"$@"'
  42807. - setopt NO_GLOB_SUBST
  42808. -else
  42809. - case `(set -o) 2>/dev/null` in
  42810. - *posix*) set -o posix ;;
  42811. -esac
  42812. +# A grep program that handles long lines.
  42813. +GREP=$lt_GREP
  42814. -fi
  42815. +# An ERE matcher.
  42816. +EGREP=$lt_EGREP
  42817. +# A literal string matcher.
  42818. +FGREP=$lt_FGREP
  42819. +# A BSD- or MS-compatible name lister.
  42820. +NM=$lt_NM
  42821. +# Whether we need soft or hard links.
  42822. +LN_S=$lt_LN_S
  42823. -# PATH needs CR
  42824. -# Avoid depending upon Character Ranges.
  42825. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  42826. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  42827. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  42828. -as_cr_digits='0123456789'
  42829. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  42830. +# What is the maximum length of a command?
  42831. +max_cmd_len=$max_cmd_len
  42832. -# The user is always right.
  42833. -if test "${PATH_SEPARATOR+set}" != set; then
  42834. - echo "#! /bin/sh" >conf$$.sh
  42835. - echo "exit 0" >>conf$$.sh
  42836. - chmod +x conf$$.sh
  42837. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42838. - PATH_SEPARATOR=';'
  42839. - else
  42840. - PATH_SEPARATOR=:
  42841. - fi
  42842. - rm -f conf$$.sh
  42843. -fi
  42844. +# Object file suffix (normally "o").
  42845. +objext=$ac_objext
  42846. -# Support unset when possible.
  42847. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  42848. - as_unset=unset
  42849. -else
  42850. - as_unset=false
  42851. -fi
  42852. +# Executable file suffix (normally "").
  42853. +exeext=$exeext
  42854. +# whether the shell understands "unset".
  42855. +lt_unset=$lt_unset
  42856. -# IFS
  42857. -# We need space, tab and new line, in precisely that order. Quoting is
  42858. -# there to prevent editors from complaining about space-tab.
  42859. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  42860. -# splitting by setting IFS to empty value.)
  42861. -as_nl='
  42862. -'
  42863. -IFS=" "" $as_nl"
  42864. +# turn spaces into newlines.
  42865. +SP2NL=$lt_lt_SP2NL
  42866. -# Find who we are. Look in the path if we contain no directory separator.
  42867. -case $0 in
  42868. - *[\\/]* ) as_myself=$0 ;;
  42869. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42870. -for as_dir in $PATH
  42871. -do
  42872. - IFS=$as_save_IFS
  42873. - test -z "$as_dir" && as_dir=.
  42874. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  42875. -done
  42876. -IFS=$as_save_IFS
  42877. +# turn newlines into spaces.
  42878. +NL2SP=$lt_lt_NL2SP
  42879. - ;;
  42880. -esac
  42881. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  42882. -# in which case we are not to be found in the path.
  42883. -if test "x$as_myself" = x; then
  42884. - as_myself=$0
  42885. -fi
  42886. -if test ! -f "$as_myself"; then
  42887. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  42888. - { (exit 1); exit 1; }
  42889. -fi
  42890. +# How to create reloadable object files.
  42891. +reload_flag=$lt_reload_flag
  42892. +reload_cmds=$lt_reload_cmds
  42893. -# Work around bugs in pre-3.0 UWIN ksh.
  42894. -for as_var in ENV MAIL MAILPATH
  42895. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  42896. -done
  42897. -PS1='$ '
  42898. -PS2='> '
  42899. -PS4='+ '
  42900. +# An object symbol dumper.
  42901. +OBJDUMP=$lt_OBJDUMP
  42902. -# NLS nuisances.
  42903. -for as_var in \
  42904. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  42905. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  42906. - LC_TELEPHONE LC_TIME
  42907. -do
  42908. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42909. - eval $as_var=C; export $as_var
  42910. - else
  42911. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  42912. - fi
  42913. -done
  42914. +# Method to check whether dependent libraries are shared objects.
  42915. +deplibs_check_method=$lt_deplibs_check_method
  42916. -# Required to use basename.
  42917. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  42918. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  42919. - as_expr=expr
  42920. -else
  42921. - as_expr=false
  42922. -fi
  42923. +# Command to use when deplibs_check_method == "file_magic".
  42924. +file_magic_cmd=$lt_file_magic_cmd
  42925. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  42926. - as_basename=basename
  42927. -else
  42928. - as_basename=false
  42929. -fi
  42930. +# The archiver.
  42931. +AR=$lt_AR
  42932. +AR_FLAGS=$lt_AR_FLAGS
  42933. +# A symbol stripping program.
  42934. +STRIP=$lt_STRIP
  42935. -# Name of the executable.
  42936. -as_me=`$as_basename -- "$0" ||
  42937. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  42938. - X"$0" : 'X\(//\)$' \| \
  42939. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  42940. -echo X/"$0" |
  42941. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  42942. - s//\1/
  42943. - q
  42944. - }
  42945. - /^X\/\(\/\/\)$/{
  42946. - s//\1/
  42947. - q
  42948. - }
  42949. - /^X\/\(\/\).*/{
  42950. - s//\1/
  42951. - q
  42952. - }
  42953. - s/.*/./; q'`
  42954. +# Commands used to install an old-style archive.
  42955. +RANLIB=$lt_RANLIB
  42956. +old_postinstall_cmds=$lt_old_postinstall_cmds
  42957. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  42958. -# CDPATH.
  42959. -$as_unset CDPATH
  42960. +# A C compiler.
  42961. +LTCC=$lt_CC
  42962. +# LTCC compiler flags.
  42963. +LTCFLAGS=$lt_CFLAGS
  42964. +# Take the output of nm and produce a listing of raw symbols and C names.
  42965. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  42966. - as_lineno_1=$LINENO
  42967. - as_lineno_2=$LINENO
  42968. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  42969. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  42970. -
  42971. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  42972. - # uniformly replaced by the line number. The first 'sed' inserts a
  42973. - # line-number line after each line using $LINENO; the second 'sed'
  42974. - # does the real work. The second script uses 'N' to pair each
  42975. - # line-number line with the line containing $LINENO, and appends
  42976. - # trailing '-' during substitution so that $LINENO is not a special
  42977. - # case at line end.
  42978. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  42979. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  42980. - # E. McMahon (1931-1989) for sed's syntax. :-)
  42981. - sed -n '
  42982. - p
  42983. - /[$]LINENO/=
  42984. - ' <$as_myself |
  42985. - sed '
  42986. - s/[$]LINENO.*/&-/
  42987. - t lineno
  42988. - b
  42989. - :lineno
  42990. - N
  42991. - :loop
  42992. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  42993. - t loop
  42994. - s/-\n.*//
  42995. - ' >$as_me.lineno &&
  42996. - chmod +x "$as_me.lineno" ||
  42997. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  42998. - { (exit 1); exit 1; }; }
  42999. +# Transform the output of nm in a proper C declaration.
  43000. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  43001. +
  43002. +# Transform the output of nm in a C name address pair.
  43003. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  43004. - # Don't try to exec as it changes $[0], causing all sort of problems
  43005. - # (the dirname of $[0] is not the place where we might find the
  43006. - # original and so on. Autoconf is especially sensitive to this).
  43007. - . "./$as_me.lineno"
  43008. - # Exit status is that of the last command.
  43009. - exit
  43010. -}
  43011. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  43012. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  43013. +# The name of the directory that contains temporary libtool files.
  43014. +objdir=$objdir
  43015. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  43016. - as_dirname=dirname
  43017. -else
  43018. - as_dirname=false
  43019. -fi
  43020. +# Shell to use when invoking shell scripts.
  43021. +SHELL=$lt_SHELL
  43022. -ECHO_C= ECHO_N= ECHO_T=
  43023. -case `echo -n x` in
  43024. --n*)
  43025. - case `echo 'x\c'` in
  43026. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  43027. - *) ECHO_C='\c';;
  43028. - esac;;
  43029. -*)
  43030. - ECHO_N='-n';;
  43031. -esac
  43032. +# An echo program that does not interpret backslashes.
  43033. +ECHO=$lt_ECHO
  43034. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  43035. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43036. - as_expr=expr
  43037. -else
  43038. - as_expr=false
  43039. -fi
  43040. +# Used to examine libraries when file_magic_cmd begins with "file".
  43041. +MAGIC_CMD=$MAGIC_CMD
  43042. -rm -f conf$$ conf$$.exe conf$$.file
  43043. -if test -d conf$$.dir; then
  43044. - rm -f conf$$.dir/conf$$.file
  43045. -else
  43046. - rm -f conf$$.dir
  43047. - mkdir conf$$.dir
  43048. -fi
  43049. -echo >conf$$.file
  43050. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  43051. - as_ln_s='ln -s'
  43052. - # ... but there are two gotchas:
  43053. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  43054. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  43055. - # In both cases, we have to default to `cp -p'.
  43056. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  43057. - as_ln_s='cp -p'
  43058. -elif ln conf$$.file conf$$ 2>/dev/null; then
  43059. - as_ln_s=ln
  43060. -else
  43061. - as_ln_s='cp -p'
  43062. -fi
  43063. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  43064. -rmdir conf$$.dir 2>/dev/null
  43065. +# Must we lock files when doing compilation?
  43066. +need_locks=$lt_need_locks
  43067. -if mkdir -p . 2>/dev/null; then
  43068. - as_mkdir_p=:
  43069. -else
  43070. - test -d ./-p && rmdir ./-p
  43071. - as_mkdir_p=false
  43072. -fi
  43073. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  43074. +DSYMUTIL=$lt_DSYMUTIL
  43075. -if test -x / >/dev/null 2>&1; then
  43076. - as_test_x='test -x'
  43077. -else
  43078. - if ls -dL / >/dev/null 2>&1; then
  43079. - as_ls_L_option=L
  43080. - else
  43081. - as_ls_L_option=
  43082. - fi
  43083. - as_test_x='
  43084. - eval sh -c '\''
  43085. - if test -d "$1"; then
  43086. - test -d "$1/.";
  43087. - else
  43088. - case $1 in
  43089. - -*)set "./$1";;
  43090. - esac;
  43091. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  43092. - ???[sx]*):;;*)false;;esac;fi
  43093. - '\'' sh
  43094. - '
  43095. -fi
  43096. -as_executable_p=$as_test_x
  43097. +# Tool to change global to local symbols on Mac OS X.
  43098. +NMEDIT=$lt_NMEDIT
  43099. -# Sed expression to map a string onto a valid CPP name.
  43100. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  43101. +# Tool to manipulate fat objects and archives on Mac OS X.
  43102. +LIPO=$lt_LIPO
  43103. -# Sed expression to map a string onto a valid variable name.
  43104. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  43105. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  43106. +OTOOL=$lt_OTOOL
  43107. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  43108. +OTOOL64=$lt_OTOOL64
  43109. -exec 6>&1
  43110. +# Old archive suffix (normally "a").
  43111. +libext=$libext
  43112. -# Save the log message, to keep $[0] and so on meaningful, and to
  43113. -# report actual input values of CONFIG_FILES etc. instead of their
  43114. -# values after options handling.
  43115. -ac_log="
  43116. -This file was extended by libnet $as_me 1.1.5, which was
  43117. -generated by GNU Autoconf 2.61. Invocation command line was
  43118. +# Shared library suffix (normally ".so").
  43119. +shrext_cmds=$lt_shrext_cmds
  43120. - CONFIG_FILES = $CONFIG_FILES
  43121. - CONFIG_HEADERS = $CONFIG_HEADERS
  43122. - CONFIG_LINKS = $CONFIG_LINKS
  43123. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  43124. - $ $0 $@
  43125. +# The commands to extract the exported symbol list from a shared archive.
  43126. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  43127. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  43128. -"
  43129. +# Variables whose values should be saved in libtool wrapper scripts and
  43130. +# restored at link time.
  43131. +variables_saved_for_relink=$lt_variables_saved_for_relink
  43132. -_ACEOF
  43133. +# Do we need the "lib" prefix for modules?
  43134. +need_lib_prefix=$need_lib_prefix
  43135. -cat >>$CONFIG_STATUS <<_ACEOF
  43136. -# Files that config.status was made for.
  43137. -config_files="$ac_config_files"
  43138. -config_headers="$ac_config_headers"
  43139. -config_commands="$ac_config_commands"
  43140. +# Do we need a version for libraries?
  43141. +need_version=$need_version
  43142. -_ACEOF
  43143. +# Library versioning type.
  43144. +version_type=$version_type
  43145. -cat >>$CONFIG_STATUS <<\_ACEOF
  43146. -ac_cs_usage="\
  43147. -\`$as_me' instantiates files from templates according to the
  43148. -current configuration.
  43149. +# Shared library runtime path variable.
  43150. +runpath_var=$runpath_var
  43151. -Usage: $0 [OPTIONS] [FILE]...
  43152. +# Shared library path variable.
  43153. +shlibpath_var=$shlibpath_var
  43154. - -h, --help print this help, then exit
  43155. - -V, --version print version number and configuration settings, then exit
  43156. - -q, --quiet do not print progress messages
  43157. - -d, --debug don't remove temporary files
  43158. - --recheck update $as_me by reconfiguring in the same conditions
  43159. - --file=FILE[:TEMPLATE]
  43160. - instantiate the configuration file FILE
  43161. - --header=FILE[:TEMPLATE]
  43162. - instantiate the configuration header FILE
  43163. +# Is shlibpath searched before the hard-coded library search path?
  43164. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  43165. -Configuration files:
  43166. -$config_files
  43167. +# Format of library name prefix.
  43168. +libname_spec=$lt_libname_spec
  43169. -Configuration headers:
  43170. -$config_headers
  43171. +# List of archive names. First name is the real one, the rest are links.
  43172. +# The last name is the one that the linker finds with -lNAME
  43173. +library_names_spec=$lt_library_names_spec
  43174. -Configuration commands:
  43175. -$config_commands
  43176. +# The coded name of the library, if different from the real name.
  43177. +soname_spec=$lt_soname_spec
  43178. -Report bugs to <bug-autoconf@gnu.org>."
  43179. +# Command to use after installation of a shared archive.
  43180. +postinstall_cmds=$lt_postinstall_cmds
  43181. -_ACEOF
  43182. -cat >>$CONFIG_STATUS <<_ACEOF
  43183. -ac_cs_version="\\
  43184. -libnet config.status 1.1.5
  43185. -configured by $0, generated by GNU Autoconf 2.61,
  43186. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  43187. +# Command to use after uninstallation of a shared archive.
  43188. +postuninstall_cmds=$lt_postuninstall_cmds
  43189. -Copyright (C) 2006 Free Software Foundation, Inc.
  43190. -This config.status script is free software; the Free Software Foundation
  43191. -gives unlimited permission to copy, distribute and modify it."
  43192. +# Commands used to finish a libtool library installation in a directory.
  43193. +finish_cmds=$lt_finish_cmds
  43194. -ac_pwd='$ac_pwd'
  43195. -srcdir='$srcdir'
  43196. -INSTALL='$INSTALL'
  43197. -MKDIR_P='$MKDIR_P'
  43198. -_ACEOF
  43199. +# As "finish_cmds", except a single script fragment to be evaled but
  43200. +# not shown.
  43201. +finish_eval=$lt_finish_eval
  43202. -cat >>$CONFIG_STATUS <<\_ACEOF
  43203. -# If no file are specified by the user, then we need to provide default
  43204. -# value. By we need to know if files were specified by the user.
  43205. -ac_need_defaults=:
  43206. -while test $# != 0
  43207. -do
  43208. - case $1 in
  43209. - --*=*)
  43210. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  43211. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  43212. - ac_shift=:
  43213. - ;;
  43214. - *)
  43215. - ac_option=$1
  43216. - ac_optarg=$2
  43217. - ac_shift=shift
  43218. - ;;
  43219. - esac
  43220. +# Whether we should hardcode library paths into libraries.
  43221. +hardcode_into_libs=$hardcode_into_libs
  43222. - case $ac_option in
  43223. - # Handling of the options.
  43224. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  43225. - ac_cs_recheck=: ;;
  43226. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  43227. - echo "$ac_cs_version"; exit ;;
  43228. - --debug | --debu | --deb | --de | --d | -d )
  43229. - debug=: ;;
  43230. - --file | --fil | --fi | --f )
  43231. - $ac_shift
  43232. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  43233. - ac_need_defaults=false;;
  43234. - --header | --heade | --head | --hea )
  43235. - $ac_shift
  43236. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  43237. - ac_need_defaults=false;;
  43238. - --he | --h)
  43239. - # Conflict between --help and --header
  43240. - { echo "$as_me: error: ambiguous option: $1
  43241. -Try \`$0 --help' for more information." >&2
  43242. - { (exit 1); exit 1; }; };;
  43243. - --help | --hel | -h )
  43244. - echo "$ac_cs_usage"; exit ;;
  43245. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  43246. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  43247. - ac_cs_silent=: ;;
  43248. +# Compile-time system search path for libraries.
  43249. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  43250. - # This is an error.
  43251. - -*) { echo "$as_me: error: unrecognized option: $1
  43252. -Try \`$0 --help' for more information." >&2
  43253. - { (exit 1); exit 1; }; } ;;
  43254. +# Run-time system search path for libraries.
  43255. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  43256. - *) ac_config_targets="$ac_config_targets $1"
  43257. - ac_need_defaults=false ;;
  43258. +# Whether dlopen is supported.
  43259. +dlopen_support=$enable_dlopen
  43260. - esac
  43261. - shift
  43262. -done
  43263. +# Whether dlopen of programs is supported.
  43264. +dlopen_self=$enable_dlopen_self
  43265. -ac_configure_extra_args=
  43266. +# Whether dlopen of statically linked programs is supported.
  43267. +dlopen_self_static=$enable_dlopen_self_static
  43268. -if $ac_cs_silent; then
  43269. - exec 6>/dev/null
  43270. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  43271. -fi
  43272. +# Commands to strip libraries.
  43273. +old_striplib=$lt_old_striplib
  43274. +striplib=$lt_striplib
  43275. -_ACEOF
  43276. -cat >>$CONFIG_STATUS <<_ACEOF
  43277. -if \$ac_cs_recheck; then
  43278. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  43279. - CONFIG_SHELL=$SHELL
  43280. - export CONFIG_SHELL
  43281. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  43282. -fi
  43283. -_ACEOF
  43284. -cat >>$CONFIG_STATUS <<\_ACEOF
  43285. -exec 5>>config.log
  43286. -{
  43287. - echo
  43288. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  43289. -## Running $as_me. ##
  43290. -_ASBOX
  43291. - echo "$ac_log"
  43292. -} >&5
  43293. +# The linker used to build libraries.
  43294. +LD=$lt_LD
  43295. -_ACEOF
  43296. -cat >>$CONFIG_STATUS <<_ACEOF
  43297. -#
  43298. -# INIT-COMMANDS
  43299. -#
  43300. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  43301. +# Commands used to build an old-style archive.
  43302. +old_archive_cmds=$lt_old_archive_cmds
  43303. -_ACEOF
  43304. +# A language specific compiler.
  43305. +CC=$lt_compiler
  43306. -cat >>$CONFIG_STATUS <<\_ACEOF
  43307. +# Is the compiler the GNU compiler?
  43308. +with_gcc=$GCC
  43309. -# Handling of arguments.
  43310. -for ac_config_target in $ac_config_targets
  43311. -do
  43312. - case $ac_config_target in
  43313. - "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  43314. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  43315. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  43316. - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  43317. - "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  43318. - "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  43319. - "include/libnet/Makefile") CONFIG_FILES="$CONFIG_FILES include/libnet/Makefile" ;;
  43320. - "include/win32/Makefile") CONFIG_FILES="$CONFIG_FILES include/win32/Makefile" ;;
  43321. - "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
  43322. - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  43323. - "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
  43324. - "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile" ;;
  43325. - "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
  43326. - "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
  43327. - "include/libnet.h") CONFIG_FILES="$CONFIG_FILES include/libnet.h" ;;
  43328. - "libnet-config") CONFIG_FILES="$CONFIG_FILES libnet-config" ;;
  43329. +# Compiler flag to turn off builtin functions.
  43330. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  43331. +
  43332. +# How to pass a linker flag through the compiler.
  43333. +wl=$lt_lt_prog_compiler_wl
  43334. +
  43335. +# Additional compiler flags for building library objects.
  43336. +pic_flag=$lt_lt_prog_compiler_pic
  43337. +
  43338. +# Compiler flag to prevent dynamic linking.
  43339. +link_static_flag=$lt_lt_prog_compiler_static
  43340. +
  43341. +# Does compiler simultaneously support -c and -o options?
  43342. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  43343. +
  43344. +# Whether or not to add -lc for building shared libraries.
  43345. +build_libtool_need_lc=$archive_cmds_need_lc
  43346. +
  43347. +# Whether or not to disallow shared libs when runtime libs are static.
  43348. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  43349. +
  43350. +# Compiler flag to allow reflexive dlopens.
  43351. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  43352. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  43353. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  43354. - { (exit 1); exit 1; }; };;
  43355. - esac
  43356. -done
  43357. +# Compiler flag to generate shared objects directly from archives.
  43358. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  43359. +# Whether the compiler copes with passing no objects directly.
  43360. +compiler_needs_object=$lt_compiler_needs_object
  43361. -# If the user did not use the arguments to specify the items to instantiate,
  43362. -# then the envvar interface is used. Set only those that are not.
  43363. -# We use the long form for the default assignment because of an extremely
  43364. -# bizarre bug on SunOS 4.1.3.
  43365. -if $ac_need_defaults; then
  43366. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  43367. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  43368. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  43369. -fi
  43370. +# Create an old-style archive from a shared archive.
  43371. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  43372. -# Have a temporary directory for convenience. Make it in the build tree
  43373. -# simply because there is no reason against having it here, and in addition,
  43374. -# creating and moving files from /tmp can sometimes cause problems.
  43375. -# Hook for its removal unless debugging.
  43376. -# Note that there is a small window in which the directory will not be cleaned:
  43377. -# after its creation but before its name has been assigned to `$tmp'.
  43378. -$debug ||
  43379. -{
  43380. - tmp=
  43381. - trap 'exit_status=$?
  43382. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  43383. -' 0
  43384. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  43385. -}
  43386. -# Create a (secure) tmp directory for tmp files.
  43387. +# Create a temporary old-style archive to link instead of a shared archive.
  43388. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  43389. -{
  43390. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  43391. - test -n "$tmp" && test -d "$tmp"
  43392. -} ||
  43393. -{
  43394. - tmp=./conf$$-$RANDOM
  43395. - (umask 077 && mkdir "$tmp")
  43396. -} ||
  43397. -{
  43398. - echo "$me: cannot create a temporary directory in ." >&2
  43399. - { (exit 1); exit 1; }
  43400. -}
  43401. +# Commands used to build a shared archive.
  43402. +archive_cmds=$lt_archive_cmds
  43403. +archive_expsym_cmds=$lt_archive_expsym_cmds
  43404. -#
  43405. -# Set up the sed scripts for CONFIG_FILES section.
  43406. -#
  43407. +# Commands used to build a loadable module if different from building
  43408. +# a shared archive.
  43409. +module_cmds=$lt_module_cmds
  43410. +module_expsym_cmds=$lt_module_expsym_cmds
  43411. -# No need to generate the scripts if there are no CONFIG_FILES.
  43412. -# This happens for instance when ./config.status config.h
  43413. -if test -n "$CONFIG_FILES"; then
  43414. +# Whether we are building with GNU ld or not.
  43415. +with_gnu_ld=$lt_with_gnu_ld
  43416. -_ACEOF
  43417. +# Flag that allows shared libraries with undefined symbols to be built.
  43418. +allow_undefined_flag=$lt_allow_undefined_flag
  43419. +# Flag that enforces no undefined symbols.
  43420. +no_undefined_flag=$lt_no_undefined_flag
  43421. +# Flag to hardcode \$libdir into a binary during linking.
  43422. +# This must work even if \$libdir does not exist
  43423. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  43424. -ac_delim='%!_!# '
  43425. -for ac_last_try in false false false false false :; do
  43426. - cat >conf$$subs.sed <<_ACEOF
  43427. -SHELL!$SHELL$ac_delim
  43428. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  43429. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  43430. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  43431. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  43432. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  43433. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  43434. -exec_prefix!$exec_prefix$ac_delim
  43435. -prefix!$prefix$ac_delim
  43436. -program_transform_name!$program_transform_name$ac_delim
  43437. -bindir!$bindir$ac_delim
  43438. -sbindir!$sbindir$ac_delim
  43439. -libexecdir!$libexecdir$ac_delim
  43440. -datarootdir!$datarootdir$ac_delim
  43441. -datadir!$datadir$ac_delim
  43442. -sysconfdir!$sysconfdir$ac_delim
  43443. -sharedstatedir!$sharedstatedir$ac_delim
  43444. -localstatedir!$localstatedir$ac_delim
  43445. -includedir!$includedir$ac_delim
  43446. -oldincludedir!$oldincludedir$ac_delim
  43447. -docdir!$docdir$ac_delim
  43448. -infodir!$infodir$ac_delim
  43449. -htmldir!$htmldir$ac_delim
  43450. -dvidir!$dvidir$ac_delim
  43451. -pdfdir!$pdfdir$ac_delim
  43452. -psdir!$psdir$ac_delim
  43453. -libdir!$libdir$ac_delim
  43454. -localedir!$localedir$ac_delim
  43455. -mandir!$mandir$ac_delim
  43456. -DEFS!$DEFS$ac_delim
  43457. -ECHO_C!$ECHO_C$ac_delim
  43458. -ECHO_N!$ECHO_N$ac_delim
  43459. -ECHO_T!$ECHO_T$ac_delim
  43460. -LIBS!$LIBS$ac_delim
  43461. -build_alias!$build_alias$ac_delim
  43462. -host_alias!$host_alias$ac_delim
  43463. -target_alias!$target_alias$ac_delim
  43464. -build!$build$ac_delim
  43465. -build_cpu!$build_cpu$ac_delim
  43466. -build_vendor!$build_vendor$ac_delim
  43467. -build_os!$build_os$ac_delim
  43468. -host!$host$ac_delim
  43469. -host_cpu!$host_cpu$ac_delim
  43470. -host_vendor!$host_vendor$ac_delim
  43471. -host_os!$host_os$ac_delim
  43472. -target!$target$ac_delim
  43473. -target_cpu!$target_cpu$ac_delim
  43474. -target_vendor!$target_vendor$ac_delim
  43475. -target_os!$target_os$ac_delim
  43476. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  43477. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  43478. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  43479. -am__isrc!$am__isrc$ac_delim
  43480. -CYGPATH_W!$CYGPATH_W$ac_delim
  43481. -PACKAGE!$PACKAGE$ac_delim
  43482. -VERSION!$VERSION$ac_delim
  43483. -ACLOCAL!$ACLOCAL$ac_delim
  43484. -AUTOCONF!$AUTOCONF$ac_delim
  43485. -AUTOMAKE!$AUTOMAKE$ac_delim
  43486. -AUTOHEADER!$AUTOHEADER$ac_delim
  43487. -MAKEINFO!$MAKEINFO$ac_delim
  43488. -install_sh!$install_sh$ac_delim
  43489. -STRIP!$STRIP$ac_delim
  43490. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  43491. -mkdir_p!$mkdir_p$ac_delim
  43492. -AWK!$AWK$ac_delim
  43493. -SET_MAKE!$SET_MAKE$ac_delim
  43494. -am__leading_dot!$am__leading_dot$ac_delim
  43495. -AMTAR!$AMTAR$ac_delim
  43496. -am__tar!$am__tar$ac_delim
  43497. -am__untar!$am__untar$ac_delim
  43498. -MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  43499. -MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  43500. -MAINT!$MAINT$ac_delim
  43501. -CC!$CC$ac_delim
  43502. -CFLAGS!$CFLAGS$ac_delim
  43503. -LDFLAGS!$LDFLAGS$ac_delim
  43504. -CPPFLAGS!$CPPFLAGS$ac_delim
  43505. -ac_ct_CC!$ac_ct_CC$ac_delim
  43506. -EXEEXT!$EXEEXT$ac_delim
  43507. -OBJEXT!$OBJEXT$ac_delim
  43508. -DEPDIR!$DEPDIR$ac_delim
  43509. -am__include!$am__include$ac_delim
  43510. -am__quote!$am__quote$ac_delim
  43511. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  43512. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  43513. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  43514. -CCDEPMODE!$CCDEPMODE$ac_delim
  43515. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  43516. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  43517. -CPP!$CPP$ac_delim
  43518. -GREP!$GREP$ac_delim
  43519. -EGREP!$EGREP$ac_delim
  43520. -SED!$SED$ac_delim
  43521. -LN_S!$LN_S$ac_delim
  43522. -ECHO!$ECHO$ac_delim
  43523. -AR!$AR$ac_delim
  43524. -_ACEOF
  43525. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  43526. +# during linking. This must work even if \$libdir does not exist.
  43527. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  43528. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  43529. - break
  43530. - elif $ac_last_try; then
  43531. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  43532. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  43533. - { (exit 1); exit 1; }; }
  43534. - else
  43535. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  43536. - fi
  43537. -done
  43538. +# Whether we need a single "-rpath" flag with a separated argument.
  43539. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  43540. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  43541. -if test -n "$ac_eof"; then
  43542. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  43543. - ac_eof=`expr $ac_eof + 1`
  43544. -fi
  43545. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  43546. +# DIR into the resulting binary.
  43547. +hardcode_direct=$hardcode_direct
  43548. -cat >>$CONFIG_STATUS <<_ACEOF
  43549. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  43550. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  43551. -_ACEOF
  43552. -sed '
  43553. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  43554. -s/^/s,@/; s/!/@,|#_!!_#|/
  43555. -:n
  43556. -t n
  43557. -s/'"$ac_delim"'$/,g/; t
  43558. -s/$/\\/; p
  43559. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  43560. -' >>$CONFIG_STATUS <conf$$subs.sed
  43561. -rm -f conf$$subs.sed
  43562. -cat >>$CONFIG_STATUS <<_ACEOF
  43563. -CEOF$ac_eof
  43564. -_ACEOF
  43565. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  43566. +# DIR into the resulting binary and the resulting library dependency is
  43567. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  43568. +# library is relocated.
  43569. +hardcode_direct_absolute=$hardcode_direct_absolute
  43570. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  43571. +# into the resulting binary.
  43572. +hardcode_minus_L=$hardcode_minus_L
  43573. -ac_delim='%!_!# '
  43574. -for ac_last_try in false false false false false :; do
  43575. - cat >conf$$subs.sed <<_ACEOF
  43576. -RANLIB!$RANLIB$ac_delim
  43577. -CXX!$CXX$ac_delim
  43578. -CXXFLAGS!$CXXFLAGS$ac_delim
  43579. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  43580. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  43581. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  43582. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  43583. -CXXCPP!$CXXCPP$ac_delim
  43584. -F77!$F77$ac_delim
  43585. -FFLAGS!$FFLAGS$ac_delim
  43586. -ac_ct_F77!$ac_ct_F77$ac_delim
  43587. -LIBTOOL!$LIBTOOL$ac_delim
  43588. -ENDIANESS!$ENDIANESS$ac_delim
  43589. -HAVE_PACKET_SOCKET!$HAVE_PACKET_SOCKET$ac_delim
  43590. -ADDITIONAL_LIBS!$ADDITIONAL_LIBS$ac_delim
  43591. -LIBNET_CONFIG_DEFINES!$LIBNET_CONFIG_DEFINES$ac_delim
  43592. -LIBNET_CONFIG_LIBS!$LIBNET_CONFIG_LIBS$ac_delim
  43593. -LIBNET_CONFIG_CFLAGS!$LIBNET_CONFIG_CFLAGS$ac_delim
  43594. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  43595. -LIBOBJS!$LIBOBJS$ac_delim
  43596. -INSTALL_SAMPLES_TRUE!$INSTALL_SAMPLES_TRUE$ac_delim
  43597. -INSTALL_SAMPLES_FALSE!$INSTALL_SAMPLES_FALSE$ac_delim
  43598. -_ACEOF
  43599. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  43600. +# into the resulting binary.
  43601. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  43602. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
  43603. - break
  43604. - elif $ac_last_try; then
  43605. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  43606. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  43607. - { (exit 1); exit 1; }; }
  43608. - else
  43609. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  43610. - fi
  43611. -done
  43612. +# Set to "yes" if building a shared library automatically hardcodes DIR
  43613. +# into the library and all subsequent libraries and executables linked
  43614. +# against it.
  43615. +hardcode_automatic=$hardcode_automatic
  43616. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  43617. -if test -n "$ac_eof"; then
  43618. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  43619. - ac_eof=`expr $ac_eof + 1`
  43620. -fi
  43621. -
  43622. -cat >>$CONFIG_STATUS <<_ACEOF
  43623. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  43624. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  43625. -_ACEOF
  43626. -sed '
  43627. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  43628. -s/^/s,@/; s/!/@,|#_!!_#|/
  43629. -:n
  43630. -t n
  43631. -s/'"$ac_delim"'$/,g/; t
  43632. -s/$/\\/; p
  43633. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  43634. -' >>$CONFIG_STATUS <conf$$subs.sed
  43635. -rm -f conf$$subs.sed
  43636. -cat >>$CONFIG_STATUS <<_ACEOF
  43637. -:end
  43638. -s/|#_!!_#|//g
  43639. -CEOF$ac_eof
  43640. -_ACEOF
  43641. +# Set to yes if linker adds runtime paths of dependent libraries
  43642. +# to runtime path list.
  43643. +inherit_rpath=$inherit_rpath
  43644. +# Whether libtool must link a program against all its dependency libraries.
  43645. +link_all_deplibs=$link_all_deplibs
  43646. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  43647. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  43648. -# trailing colons and then remove the whole line if VPATH becomes empty
  43649. -# (actually we leave an empty line to preserve line numbers).
  43650. -if test "x$srcdir" = x.; then
  43651. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  43652. -s/:*\$(srcdir):*/:/
  43653. -s/:*\${srcdir}:*/:/
  43654. -s/:*@srcdir@:*/:/
  43655. -s/^\([^=]*=[ ]*\):*/\1/
  43656. -s/:*$//
  43657. -s/^[^=]*=[ ]*$//
  43658. -}'
  43659. -fi
  43660. +# Fix the shell variable \$srcfile for the compiler.
  43661. +fix_srcfile_path=$lt_fix_srcfile_path
  43662. -cat >>$CONFIG_STATUS <<\_ACEOF
  43663. -fi # test -n "$CONFIG_FILES"
  43664. +# Set to "yes" if exported symbols are required.
  43665. +always_export_symbols=$always_export_symbols
  43666. +# The commands to list exported symbols.
  43667. +export_symbols_cmds=$lt_export_symbols_cmds
  43668. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  43669. -do
  43670. - case $ac_tag in
  43671. - :[FHLC]) ac_mode=$ac_tag; continue;;
  43672. - esac
  43673. - case $ac_mode$ac_tag in
  43674. - :[FHL]*:*);;
  43675. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  43676. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  43677. - { (exit 1); exit 1; }; };;
  43678. - :[FH]-) ac_tag=-:-;;
  43679. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  43680. - esac
  43681. - ac_save_IFS=$IFS
  43682. - IFS=:
  43683. - set x $ac_tag
  43684. - IFS=$ac_save_IFS
  43685. - shift
  43686. - ac_file=$1
  43687. - shift
  43688. +# Symbols that should not be listed in the preloaded symbols.
  43689. +exclude_expsyms=$lt_exclude_expsyms
  43690. - case $ac_mode in
  43691. - :L) ac_source=$1;;
  43692. - :[FH])
  43693. - ac_file_inputs=
  43694. - for ac_f
  43695. - do
  43696. - case $ac_f in
  43697. - -) ac_f="$tmp/stdin";;
  43698. - *) # Look for the file first in the build tree, then in the source tree
  43699. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  43700. - # because $ac_f cannot contain `:'.
  43701. - test -f "$ac_f" ||
  43702. - case $ac_f in
  43703. - [\\/$]*) false;;
  43704. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  43705. - esac ||
  43706. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  43707. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  43708. - { (exit 1); exit 1; }; };;
  43709. - esac
  43710. - ac_file_inputs="$ac_file_inputs $ac_f"
  43711. - done
  43712. +# Symbols that must always be exported.
  43713. +include_expsyms=$lt_include_expsyms
  43714. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  43715. - # use $as_me), people would be surprised to read:
  43716. - # /* config.h. Generated by config.status. */
  43717. - configure_input="Generated from "`IFS=:
  43718. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  43719. - if test x"$ac_file" != x-; then
  43720. - configure_input="$ac_file. $configure_input"
  43721. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  43722. -echo "$as_me: creating $ac_file" >&6;}
  43723. - fi
  43724. +# Commands necessary for linking programs (against libraries) with templates.
  43725. +prelink_cmds=$lt_prelink_cmds
  43726. - case $ac_tag in
  43727. - *:-:* | *:-) cat >"$tmp/stdin";;
  43728. - esac
  43729. +# Specify filename containing input files.
  43730. +file_list_spec=$lt_file_list_spec
  43731. +
  43732. +# How to hardcode a shared library path into an executable.
  43733. +hardcode_action=$hardcode_action
  43734. +
  43735. +# ### END LIBTOOL CONFIG
  43736. +
  43737. +_LT_EOF
  43738. +
  43739. + case $host_os in
  43740. + aix3*)
  43741. + cat <<\_LT_EOF >> "$cfgfile"
  43742. +# AIX sometimes has problems with the GCC collect2 program. For some
  43743. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  43744. +# vanish in a puff of smoke.
  43745. +if test "X${COLLECT_NAMES+set}" != Xset; then
  43746. + COLLECT_NAMES=
  43747. + export COLLECT_NAMES
  43748. +fi
  43749. +_LT_EOF
  43750. ;;
  43751. esac
  43752. - ac_dir=`$as_dirname -- "$ac_file" ||
  43753. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43754. - X"$ac_file" : 'X\(//\)[^/]' \| \
  43755. - X"$ac_file" : 'X\(//\)$' \| \
  43756. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  43757. -echo X"$ac_file" |
  43758. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43759. - s//\1/
  43760. - q
  43761. - }
  43762. - /^X\(\/\/\)[^/].*/{
  43763. - s//\1/
  43764. - q
  43765. - }
  43766. - /^X\(\/\/\)$/{
  43767. - s//\1/
  43768. - q
  43769. - }
  43770. - /^X\(\/\).*/{
  43771. - s//\1/
  43772. - q
  43773. - }
  43774. - s/.*/./; q'`
  43775. - { as_dir="$ac_dir"
  43776. - case $as_dir in #(
  43777. - -*) as_dir=./$as_dir;;
  43778. - esac
  43779. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  43780. - as_dirs=
  43781. - while :; do
  43782. - case $as_dir in #(
  43783. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  43784. - *) as_qdir=$as_dir;;
  43785. - esac
  43786. - as_dirs="'$as_qdir' $as_dirs"
  43787. - as_dir=`$as_dirname -- "$as_dir" ||
  43788. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43789. - X"$as_dir" : 'X\(//\)[^/]' \| \
  43790. - X"$as_dir" : 'X\(//\)$' \| \
  43791. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  43792. -echo X"$as_dir" |
  43793. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43794. - s//\1/
  43795. - q
  43796. - }
  43797. - /^X\(\/\/\)[^/].*/{
  43798. - s//\1/
  43799. - q
  43800. - }
  43801. - /^X\(\/\/\)$/{
  43802. - s//\1/
  43803. - q
  43804. - }
  43805. - /^X\(\/\).*/{
  43806. - s//\1/
  43807. - q
  43808. - }
  43809. - s/.*/./; q'`
  43810. - test -d "$as_dir" && break
  43811. - done
  43812. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  43813. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  43814. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  43815. - { (exit 1); exit 1; }; }; }
  43816. - ac_builddir=.
  43817. -case "$ac_dir" in
  43818. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  43819. -*)
  43820. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  43821. - # A ".." for each directory in $ac_dir_suffix.
  43822. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  43823. - case $ac_top_builddir_sub in
  43824. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  43825. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  43826. - esac ;;
  43827. -esac
  43828. -ac_abs_top_builddir=$ac_pwd
  43829. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  43830. -# for backward compatibility:
  43831. -ac_top_builddir=$ac_top_build_prefix
  43832. +ltmain="$ac_aux_dir/ltmain.sh"
  43833. -case $srcdir in
  43834. - .) # We are building in place.
  43835. - ac_srcdir=.
  43836. - ac_top_srcdir=$ac_top_builddir_sub
  43837. - ac_abs_top_srcdir=$ac_pwd ;;
  43838. - [\\/]* | ?:[\\/]* ) # Absolute name.
  43839. - ac_srcdir=$srcdir$ac_dir_suffix;
  43840. - ac_top_srcdir=$srcdir
  43841. - ac_abs_top_srcdir=$srcdir ;;
  43842. - *) # Relative name.
  43843. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  43844. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  43845. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  43846. -esac
  43847. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  43848. + # We use sed instead of cat because bash on DJGPP gets confused if
  43849. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  43850. + # text mode, it properly converts lines to CR/LF. This bash problem
  43851. + # is reportedly fixed, but why not run on old versions too?
  43852. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  43853. + || (rm -f "$cfgfile"; exit 1)
  43854. - case $ac_mode in
  43855. - :F)
  43856. - #
  43857. - # CONFIG_FILE
  43858. - #
  43859. + case $xsi_shell in
  43860. + yes)
  43861. + cat << \_LT_EOF >> "$cfgfile"
  43862. - case $INSTALL in
  43863. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  43864. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  43865. - esac
  43866. - ac_MKDIR_P=$MKDIR_P
  43867. - case $MKDIR_P in
  43868. - [\\/$]* | ?:[\\/]* ) ;;
  43869. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  43870. +# func_dirname file append nondir_replacement
  43871. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  43872. +# otherwise set result to NONDIR_REPLACEMENT.
  43873. +func_dirname ()
  43874. +{
  43875. + case ${1} in
  43876. + */*) func_dirname_result="${1%/*}${2}" ;;
  43877. + * ) func_dirname_result="${3}" ;;
  43878. esac
  43879. -_ACEOF
  43880. +}
  43881. -cat >>$CONFIG_STATUS <<\_ACEOF
  43882. -# If the template does not know about datarootdir, expand it.
  43883. -# FIXME: This hack should be removed a few years after 2.60.
  43884. -ac_datarootdir_hack=; ac_datarootdir_seen=
  43885. +# func_basename file
  43886. +func_basename ()
  43887. +{
  43888. + func_basename_result="${1##*/}"
  43889. +}
  43890. -case `sed -n '/datarootdir/ {
  43891. - p
  43892. - q
  43893. +# func_dirname_and_basename file append nondir_replacement
  43894. +# perform func_basename and func_dirname in a single function
  43895. +# call:
  43896. +# dirname: Compute the dirname of FILE. If nonempty,
  43897. +# add APPEND to the result, otherwise set result
  43898. +# to NONDIR_REPLACEMENT.
  43899. +# value returned in "$func_dirname_result"
  43900. +# basename: Compute filename of FILE.
  43901. +# value retuned in "$func_basename_result"
  43902. +# Implementation must be kept synchronized with func_dirname
  43903. +# and func_basename. For efficiency, we do not delegate to
  43904. +# those functions but instead duplicate the functionality here.
  43905. +func_dirname_and_basename ()
  43906. +{
  43907. + case ${1} in
  43908. + */*) func_dirname_result="${1%/*}${2}" ;;
  43909. + * ) func_dirname_result="${3}" ;;
  43910. + esac
  43911. + func_basename_result="${1##*/}"
  43912. }
  43913. -/@datadir@/p
  43914. -/@docdir@/p
  43915. -/@infodir@/p
  43916. -/@localedir@/p
  43917. -/@mandir@/p
  43918. -' $ac_file_inputs` in
  43919. -*datarootdir*) ac_datarootdir_seen=yes;;
  43920. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  43921. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  43922. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  43923. -_ACEOF
  43924. -cat >>$CONFIG_STATUS <<_ACEOF
  43925. - ac_datarootdir_hack='
  43926. - s&@datadir@&$datadir&g
  43927. - s&@docdir@&$docdir&g
  43928. - s&@infodir@&$infodir&g
  43929. - s&@localedir@&$localedir&g
  43930. - s&@mandir@&$mandir&g
  43931. - s&\\\${datarootdir}&$datarootdir&g' ;;
  43932. -esac
  43933. -_ACEOF
  43934. -# Neutralize VPATH when `$srcdir' = `.'.
  43935. -# Shell code in configure.ac might set extrasub.
  43936. -# FIXME: do we really want to maintain this feature?
  43937. -cat >>$CONFIG_STATUS <<_ACEOF
  43938. - sed "$ac_vpsub
  43939. -$extrasub
  43940. -_ACEOF
  43941. -cat >>$CONFIG_STATUS <<\_ACEOF
  43942. -:t
  43943. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  43944. -s&@configure_input@&$configure_input&;t t
  43945. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  43946. -s&@srcdir@&$ac_srcdir&;t t
  43947. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  43948. -s&@top_srcdir@&$ac_top_srcdir&;t t
  43949. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  43950. -s&@builddir@&$ac_builddir&;t t
  43951. -s&@abs_builddir@&$ac_abs_builddir&;t t
  43952. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  43953. -s&@INSTALL@&$ac_INSTALL&;t t
  43954. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  43955. -$ac_datarootdir_hack
  43956. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  43957. +# func_stripname prefix suffix name
  43958. +# strip PREFIX and SUFFIX off of NAME.
  43959. +# PREFIX and SUFFIX must not contain globbing or regex special
  43960. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  43961. +# dot (in which case that matches only a dot).
  43962. +func_stripname ()
  43963. +{
  43964. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  43965. + # positional parameters, so assign one to ordinary parameter first.
  43966. + func_stripname_result=${3}
  43967. + func_stripname_result=${func_stripname_result#"${1}"}
  43968. + func_stripname_result=${func_stripname_result%"${2}"}
  43969. +}
  43970. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  43971. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  43972. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  43973. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  43974. -which seems to be undefined. Please make sure it is defined." >&5
  43975. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  43976. -which seems to be undefined. Please make sure it is defined." >&2;}
  43977. +# func_opt_split
  43978. +func_opt_split ()
  43979. +{
  43980. + func_opt_split_opt=${1%%=*}
  43981. + func_opt_split_arg=${1#*=}
  43982. +}
  43983. - rm -f "$tmp/stdin"
  43984. - case $ac_file in
  43985. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  43986. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  43987. +# func_lo2o object
  43988. +func_lo2o ()
  43989. +{
  43990. + case ${1} in
  43991. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  43992. + *) func_lo2o_result=${1} ;;
  43993. esac
  43994. - ;;
  43995. - :H)
  43996. - #
  43997. - # CONFIG_HEADER
  43998. - #
  43999. -_ACEOF
  44000. +}
  44001. -# Transform confdefs.h into a sed script `conftest.defines', that
  44002. -# substitutes the proper values into config.h.in to produce config.h.
  44003. -rm -f conftest.defines conftest.tail
  44004. -# First, append a space to every undef/define line, to ease matching.
  44005. -echo 's/$/ /' >conftest.defines
  44006. -# Then, protect against being on the right side of a sed subst, or in
  44007. -# an unquoted here document, in config.status. If some macros were
  44008. -# called several times there might be several #defines for the same
  44009. -# symbol, which is useless. But do not sort them, since the last
  44010. -# AC_DEFINE must be honored.
  44011. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  44012. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  44013. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  44014. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  44015. -# just an empty string.
  44016. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  44017. -ac_dB='\\)[ (].*,\\1define\\2'
  44018. -ac_dC=' '
  44019. -ac_dD=' ,'
  44020. +# func_xform libobj-or-source
  44021. +func_xform ()
  44022. +{
  44023. + func_xform_result=${1%.*}.lo
  44024. +}
  44025. -uniq confdefs.h |
  44026. - sed -n '
  44027. - t rset
  44028. - :rset
  44029. - s/^[ ]*#[ ]*define[ ][ ]*//
  44030. - t ok
  44031. - d
  44032. - :ok
  44033. - s/[\\&,]/\\&/g
  44034. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  44035. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  44036. - ' >>conftest.defines
  44037. -
  44038. -# Remove the space that was appended to ease matching.
  44039. -# Then replace #undef with comments. This is necessary, for
  44040. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  44041. -# on some systems where configure will not decide to define it.
  44042. -# (The regexp can be short, since the line contains either #define or #undef.)
  44043. -echo 's/ $//
  44044. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  44045. -
  44046. -# Break up conftest.defines:
  44047. -ac_max_sed_lines=50
  44048. -
  44049. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  44050. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  44051. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  44052. -# et cetera.
  44053. -ac_in='$ac_file_inputs'
  44054. -ac_out='"$tmp/out1"'
  44055. -ac_nxt='"$tmp/out2"'
  44056. +# func_arith arithmetic-term...
  44057. +func_arith ()
  44058. +{
  44059. + func_arith_result=$(( $* ))
  44060. +}
  44061. -while :
  44062. -do
  44063. - # Write a here document:
  44064. - cat >>$CONFIG_STATUS <<_ACEOF
  44065. - # First, check the format of the line:
  44066. - cat >"\$tmp/defines.sed" <<\\CEOF
  44067. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  44068. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  44069. -b
  44070. -:def
  44071. -_ACEOF
  44072. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  44073. - echo 'CEOF
  44074. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  44075. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  44076. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  44077. - grep . conftest.tail >/dev/null || break
  44078. - rm -f conftest.defines
  44079. - mv conftest.tail conftest.defines
  44080. -done
  44081. -rm -f conftest.defines conftest.tail
  44082. +# func_len string
  44083. +# STRING may not start with a hyphen.
  44084. +func_len ()
  44085. +{
  44086. + func_len_result=${#1}
  44087. +}
  44088. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  44089. -cat >>$CONFIG_STATUS <<\_ACEOF
  44090. - if test x"$ac_file" != x-; then
  44091. - echo "/* $configure_input */" >"$tmp/config.h"
  44092. - cat "$ac_result" >>"$tmp/config.h"
  44093. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  44094. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  44095. -echo "$as_me: $ac_file is unchanged" >&6;}
  44096. - else
  44097. - rm -f $ac_file
  44098. - mv "$tmp/config.h" $ac_file
  44099. - fi
  44100. +_LT_EOF
  44101. + ;;
  44102. + *) # Bourne compatible functions.
  44103. + cat << \_LT_EOF >> "$cfgfile"
  44104. +
  44105. +# func_dirname file append nondir_replacement
  44106. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  44107. +# otherwise set result to NONDIR_REPLACEMENT.
  44108. +func_dirname ()
  44109. +{
  44110. + # Extract subdirectory from the argument.
  44111. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  44112. + if test "X$func_dirname_result" = "X${1}"; then
  44113. + func_dirname_result="${3}"
  44114. else
  44115. - echo "/* $configure_input */"
  44116. - cat "$ac_result"
  44117. + func_dirname_result="$func_dirname_result${2}"
  44118. fi
  44119. - rm -f "$tmp/out12"
  44120. -# Compute $ac_file's index in $config_headers.
  44121. -_am_stamp_count=1
  44122. -for _am_header in $config_headers :; do
  44123. - case $_am_header in
  44124. - $ac_file | $ac_file:* )
  44125. - break ;;
  44126. - * )
  44127. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  44128. - esac
  44129. -done
  44130. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  44131. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44132. - X$ac_file : 'X\(//\)[^/]' \| \
  44133. - X$ac_file : 'X\(//\)$' \| \
  44134. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  44135. -echo X$ac_file |
  44136. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44137. - s//\1/
  44138. - q
  44139. - }
  44140. - /^X\(\/\/\)[^/].*/{
  44141. - s//\1/
  44142. - q
  44143. - }
  44144. - /^X\(\/\/\)$/{
  44145. - s//\1/
  44146. - q
  44147. - }
  44148. - /^X\(\/\).*/{
  44149. - s//\1/
  44150. - q
  44151. - }
  44152. - s/.*/./; q'`/stamp-h$_am_stamp_count
  44153. - ;;
  44154. +}
  44155. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  44156. -echo "$as_me: executing $ac_file commands" >&6;}
  44157. - ;;
  44158. +# func_basename file
  44159. +func_basename ()
  44160. +{
  44161. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  44162. +}
  44163. +
  44164. +
  44165. +# func_stripname prefix suffix name
  44166. +# strip PREFIX and SUFFIX off of NAME.
  44167. +# PREFIX and SUFFIX must not contain globbing or regex special
  44168. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  44169. +# dot (in which case that matches only a dot).
  44170. +# func_strip_suffix prefix name
  44171. +func_stripname ()
  44172. +{
  44173. + case ${2} in
  44174. + .*) func_stripname_result=`$ECHO "X${3}" \
  44175. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  44176. + *) func_stripname_result=`$ECHO "X${3}" \
  44177. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  44178. esac
  44179. +}
  44180. +# sed scripts:
  44181. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  44182. +my_sed_long_arg='1s/^-[^=]*=//'
  44183. - case $ac_file$ac_mode in
  44184. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  44185. - # Strip MF so we end up with the name of the file.
  44186. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  44187. - # Check whether this is an Automake generated Makefile or not.
  44188. - # We used to match only the files named `Makefile.in', but
  44189. - # some people rename them; so instead we look at the file content.
  44190. - # Grep'ing the first line is not enough: some people post-process
  44191. - # each Makefile.in and add a new line on top of each file to say so.
  44192. - # Grep'ing the whole file is not good either: AIX grep has a line
  44193. - # limit of 2048, but all sed's we know have understand at least 4000.
  44194. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  44195. - dirpart=`$as_dirname -- "$mf" ||
  44196. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44197. - X"$mf" : 'X\(//\)[^/]' \| \
  44198. - X"$mf" : 'X\(//\)$' \| \
  44199. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  44200. -echo X"$mf" |
  44201. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44202. - s//\1/
  44203. - q
  44204. - }
  44205. - /^X\(\/\/\)[^/].*/{
  44206. - s//\1/
  44207. - q
  44208. - }
  44209. - /^X\(\/\/\)$/{
  44210. - s//\1/
  44211. - q
  44212. - }
  44213. - /^X\(\/\).*/{
  44214. - s//\1/
  44215. - q
  44216. - }
  44217. - s/.*/./; q'`
  44218. - else
  44219. - continue
  44220. - fi
  44221. - # Extract the definition of DEPDIR, am__include, and am__quote
  44222. - # from the Makefile without running `make'.
  44223. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  44224. - test -z "$DEPDIR" && continue
  44225. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  44226. - test -z "am__include" && continue
  44227. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  44228. - # When using ansi2knr, U may be empty or an underscore; expand it
  44229. - U=`sed -n 's/^U = //p' < "$mf"`
  44230. - # Find all dependency output files, they are included files with
  44231. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  44232. - # simplest approach to changing $(DEPDIR) to its actual value in the
  44233. - # expansion.
  44234. - for file in `sed -n "
  44235. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  44236. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  44237. - # Make sure the directory exists.
  44238. - test -f "$dirpart/$file" && continue
  44239. - fdir=`$as_dirname -- "$file" ||
  44240. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44241. - X"$file" : 'X\(//\)[^/]' \| \
  44242. - X"$file" : 'X\(//\)$' \| \
  44243. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  44244. -echo X"$file" |
  44245. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44246. - s//\1/
  44247. - q
  44248. - }
  44249. - /^X\(\/\/\)[^/].*/{
  44250. - s//\1/
  44251. - q
  44252. - }
  44253. - /^X\(\/\/\)$/{
  44254. - s//\1/
  44255. - q
  44256. - }
  44257. - /^X\(\/\).*/{
  44258. - s//\1/
  44259. - q
  44260. - }
  44261. - s/.*/./; q'`
  44262. - { as_dir=$dirpart/$fdir
  44263. - case $as_dir in #(
  44264. - -*) as_dir=./$as_dir;;
  44265. +# func_opt_split
  44266. +func_opt_split ()
  44267. +{
  44268. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  44269. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  44270. +}
  44271. +
  44272. +# func_lo2o object
  44273. +func_lo2o ()
  44274. +{
  44275. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  44276. +}
  44277. +
  44278. +# func_xform libobj-or-source
  44279. +func_xform ()
  44280. +{
  44281. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  44282. +}
  44283. +
  44284. +# func_arith arithmetic-term...
  44285. +func_arith ()
  44286. +{
  44287. + func_arith_result=`expr "$@"`
  44288. +}
  44289. +
  44290. +# func_len string
  44291. +# STRING may not start with a hyphen.
  44292. +func_len ()
  44293. +{
  44294. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  44295. +}
  44296. +
  44297. +_LT_EOF
  44298. +esac
  44299. +
  44300. +case $lt_shell_append in
  44301. + yes)
  44302. + cat << \_LT_EOF >> "$cfgfile"
  44303. +
  44304. +# func_append var value
  44305. +# Append VALUE to the end of shell variable VAR.
  44306. +func_append ()
  44307. +{
  44308. + eval "$1+=\$2"
  44309. +}
  44310. +_LT_EOF
  44311. + ;;
  44312. + *)
  44313. + cat << \_LT_EOF >> "$cfgfile"
  44314. +
  44315. +# func_append var value
  44316. +# Append VALUE to the end of shell variable VAR.
  44317. +func_append ()
  44318. +{
  44319. + eval "$1=\$$1\$2"
  44320. +}
  44321. +
  44322. +_LT_EOF
  44323. + ;;
  44324. esac
  44325. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  44326. - as_dirs=
  44327. - while :; do
  44328. - case $as_dir in #(
  44329. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  44330. - *) as_qdir=$as_dir;;
  44331. - esac
  44332. - as_dirs="'$as_qdir' $as_dirs"
  44333. - as_dir=`$as_dirname -- "$as_dir" ||
  44334. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44335. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44336. - X"$as_dir" : 'X\(//\)$' \| \
  44337. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  44338. -echo X"$as_dir" |
  44339. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44340. - s//\1/
  44341. - q
  44342. - }
  44343. - /^X\(\/\/\)[^/].*/{
  44344. - s//\1/
  44345. - q
  44346. - }
  44347. - /^X\(\/\/\)$/{
  44348. - s//\1/
  44349. - q
  44350. - }
  44351. - /^X\(\/\).*/{
  44352. - s//\1/
  44353. - q
  44354. - }
  44355. - s/.*/./; q'`
  44356. - test -d "$as_dir" && break
  44357. - done
  44358. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  44359. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  44360. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  44361. - { (exit 1); exit 1; }; }; }
  44362. - # echo "creating $dirpart/$file"
  44363. - echo '# dummy' > "$dirpart/$file"
  44364. - done
  44365. -done
  44366. +
  44367. +
  44368. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  44369. + || (rm -f "$cfgfile"; exit 1)
  44370. +
  44371. + mv -f "$cfgfile" "$ofile" ||
  44372. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  44373. + chmod +x "$ofile"
  44374. +
  44375. ;;
  44376. esac
  44377. done # for ac_tag
  44378. -{ (exit 0); exit 0; }
  44379. +as_fn_exit 0
  44380. _ACEOF
  44381. -chmod +x $CONFIG_STATUS
  44382. ac_clean_files=$ac_clean_files_save
  44383. +test $ac_write_fail = 0 ||
  44384. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  44385. +
  44386. # configure is writing to config.log, and then calls config.status.
  44387. # config.status does its own redirection, appending to config.log.
  44388. @@ -23546,6 +14133,10 @@
  44389. exec 5>>config.log
  44390. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  44391. # would make configure fail if this is the last instruction.
  44392. - $ac_cs_success || { (exit 1); exit 1; }
  44393. + $ac_cs_success || as_fn_exit $?
  44394. +fi
  44395. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  44396. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  44397. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  44398. fi
  44399. diff -Nur libnet-1.1.5.orig/doc/html/Makefile.in libnet-1.1.5/doc/html/Makefile.in
  44400. --- libnet-1.1.5.orig/doc/html/Makefile.in 2010-11-09 01:48:06.000000000 +0100
  44401. +++ libnet-1.1.5/doc/html/Makefile.in 2011-02-24 19:45:54.263556039 +0100
  44402. @@ -1,8 +1,9 @@
  44403. -# Makefile.in generated by automake 1.10 from Makefile.am.
  44404. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  44405. # @configure_input@
  44406. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  44407. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  44408. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  44409. +# Inc.
  44410. # This Makefile.in is free software; the Free Software Foundation
  44411. # gives unlimited permission to copy and/or distribute it,
  44412. # with or without modifications, as long as this notice is preserved.
  44413. @@ -15,8 +16,9 @@
  44414. @SET_MAKE@
  44415. VPATH = @srcdir@
  44416. pkgdatadir = $(datadir)/@PACKAGE@
  44417. -pkglibdir = $(libdir)/@PACKAGE@
  44418. pkgincludedir = $(includedir)/@PACKAGE@
  44419. +pkglibdir = $(libdir)/@PACKAGE@
  44420. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  44421. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  44422. install_sh_DATA = $(install_sh) -c -m 644
  44423. install_sh_PROGRAM = $(install_sh) -c
  44424. @@ -42,6 +44,7 @@
  44425. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  44426. CONFIG_HEADER = $(top_builddir)/include/config.h
  44427. CONFIG_CLEAN_FILES =
  44428. +CONFIG_CLEAN_VPATH_FILES =
  44429. SOURCES =
  44430. DIST_SOURCES =
  44431. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  44432. @@ -58,22 +61,18 @@
  44433. CFLAGS = @CFLAGS@
  44434. CPP = @CPP@
  44435. CPPFLAGS = @CPPFLAGS@
  44436. -CXX = @CXX@
  44437. -CXXCPP = @CXXCPP@
  44438. -CXXDEPMODE = @CXXDEPMODE@
  44439. -CXXFLAGS = @CXXFLAGS@
  44440. CYGPATH_W = @CYGPATH_W@
  44441. DEFS = @DEFS@
  44442. DEPDIR = @DEPDIR@
  44443. -ECHO = @ECHO@
  44444. +DSYMUTIL = @DSYMUTIL@
  44445. +DUMPBIN = @DUMPBIN@
  44446. ECHO_C = @ECHO_C@
  44447. ECHO_N = @ECHO_N@
  44448. ECHO_T = @ECHO_T@
  44449. EGREP = @EGREP@
  44450. ENDIANESS = @ENDIANESS@
  44451. EXEEXT = @EXEEXT@
  44452. -F77 = @F77@
  44453. -FFLAGS = @FFLAGS@
  44454. +FGREP = @FGREP@
  44455. GREP = @GREP@
  44456. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  44457. INSTALL = @INSTALL@
  44458. @@ -81,6 +80,7 @@
  44459. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  44460. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  44461. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  44462. +LD = @LD@
  44463. LDFLAGS = @LDFLAGS@
  44464. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  44465. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  44466. @@ -88,17 +88,24 @@
  44467. LIBOBJS = @LIBOBJS@
  44468. LIBS = @LIBS@
  44469. LIBTOOL = @LIBTOOL@
  44470. +LIPO = @LIPO@
  44471. LN_S = @LN_S@
  44472. LTLIBOBJS = @LTLIBOBJS@
  44473. MAINT = @MAINT@
  44474. MAKEINFO = @MAKEINFO@
  44475. MKDIR_P = @MKDIR_P@
  44476. +NM = @NM@
  44477. +NMEDIT = @NMEDIT@
  44478. +OBJDUMP = @OBJDUMP@
  44479. OBJEXT = @OBJEXT@
  44480. +OTOOL = @OTOOL@
  44481. +OTOOL64 = @OTOOL64@
  44482. PACKAGE = @PACKAGE@
  44483. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  44484. PACKAGE_NAME = @PACKAGE_NAME@
  44485. PACKAGE_STRING = @PACKAGE_STRING@
  44486. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  44487. +PACKAGE_URL = @PACKAGE_URL@
  44488. PACKAGE_VERSION = @PACKAGE_VERSION@
  44489. PATH_SEPARATOR = @PATH_SEPARATOR@
  44490. RANLIB = @RANLIB@
  44491. @@ -112,8 +119,7 @@
  44492. abs_top_builddir = @abs_top_builddir@
  44493. abs_top_srcdir = @abs_top_srcdir@
  44494. ac_ct_CC = @ac_ct_CC@
  44495. -ac_ct_CXX = @ac_ct_CXX@
  44496. -ac_ct_F77 = @ac_ct_F77@
  44497. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  44498. am__include = @am__include@
  44499. am__leading_dot = @am__leading_dot@
  44500. am__quote = @am__quote@
  44501. @@ -144,6 +150,7 @@
  44502. libexecdir = @libexecdir@
  44503. localedir = @localedir@
  44504. localstatedir = @localstatedir@
  44505. +lt_ECHO = @lt_ECHO@
  44506. mandir = @mandir@
  44507. mkdir_p = @mkdir_p@
  44508. oldincludedir = @oldincludedir@
  44509. @@ -160,6 +167,7 @@
  44510. target_cpu = @target_cpu@
  44511. target_os = @target_os@
  44512. target_vendor = @target_vendor@
  44513. +top_build_prefix = @top_build_prefix@
  44514. top_builddir = @top_builddir@
  44515. top_srcdir = @top_srcdir@
  44516. EXTRA_DIST = $(srcdir)/*.html $(srcdir)/*.css $(srcdir)/*.png $(srcdir)/*.gif
  44517. @@ -170,14 +178,14 @@
  44518. @for dep in $?; do \
  44519. case '$(am__configure_deps)' in \
  44520. *$$dep*) \
  44521. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  44522. - && exit 0; \
  44523. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  44524. + && { if test -f $@; then exit 0; else break; fi; }; \
  44525. exit 1;; \
  44526. esac; \
  44527. done; \
  44528. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/html/Makefile'; \
  44529. - cd $(top_srcdir) && \
  44530. - $(AUTOMAKE) --gnu doc/html/Makefile
  44531. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/html/Makefile'; \
  44532. + $(am__cd) $(top_srcdir) && \
  44533. + $(AUTOMAKE) --gnu doc/html/Makefile
  44534. .PRECIOUS: Makefile
  44535. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  44536. @case '$?' in \
  44537. @@ -195,6 +203,7 @@
  44538. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44539. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  44540. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44541. +$(am__aclocal_m4_deps):
  44542. mostlyclean-libtool:
  44543. -rm -f *.lo
  44544. @@ -224,13 +233,17 @@
  44545. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  44546. if test -d $$d/$$file; then \
  44547. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  44548. + if test -d "$(distdir)/$$file"; then \
  44549. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44550. + fi; \
  44551. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  44552. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  44553. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  44554. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44555. fi; \
  44556. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  44557. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  44558. else \
  44559. - test -f $(distdir)/$$file \
  44560. - || cp -p $$d/$$file $(distdir)/$$file \
  44561. + test -f "$(distdir)/$$file" \
  44562. + || cp -p $$d/$$file "$(distdir)/$$file" \
  44563. || exit 1; \
  44564. fi; \
  44565. done
  44566. @@ -258,6 +271,7 @@
  44567. distclean-generic:
  44568. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  44569. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  44570. maintainer-clean-generic:
  44571. @echo "This command is intended for maintainers to use"
  44572. @@ -276,6 +290,8 @@
  44573. html: html-am
  44574. +html-am:
  44575. +
  44576. info: info-am
  44577. info-am:
  44578. @@ -284,18 +300,28 @@
  44579. install-dvi: install-dvi-am
  44580. +install-dvi-am:
  44581. +
  44582. install-exec-am:
  44583. install-html: install-html-am
  44584. +install-html-am:
  44585. +
  44586. install-info: install-info-am
  44587. +install-info-am:
  44588. +
  44589. install-man:
  44590. install-pdf: install-pdf-am
  44591. +install-pdf-am:
  44592. +
  44593. install-ps: install-ps-am
  44594. +install-ps-am:
  44595. +
  44596. installcheck-am:
  44597. maintainer-clean: maintainer-clean-am
  44598. @@ -329,6 +355,7 @@
  44599. maintainer-clean-generic mostlyclean mostlyclean-generic \
  44600. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  44601. +
  44602. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  44603. # Otherwise a system limit (for SysV at least) may be exceeded.
  44604. .NOEXPORT:
  44605. diff -Nur libnet-1.1.5.orig/doc/Makefile.in libnet-1.1.5/doc/Makefile.in
  44606. --- libnet-1.1.5.orig/doc/Makefile.in 2010-11-09 01:48:06.000000000 +0100
  44607. +++ libnet-1.1.5/doc/Makefile.in 2011-02-24 19:45:54.213553065 +0100
  44608. @@ -1,8 +1,9 @@
  44609. -# Makefile.in generated by automake 1.10 from Makefile.am.
  44610. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  44611. # @configure_input@
  44612. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  44613. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  44614. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  44615. +# Inc.
  44616. # This Makefile.in is free software; the Free Software Foundation
  44617. # gives unlimited permission to copy and/or distribute it,
  44618. # with or without modifications, as long as this notice is preserved.
  44619. @@ -15,8 +16,9 @@
  44620. @SET_MAKE@
  44621. VPATH = @srcdir@
  44622. pkgdatadir = $(datadir)/@PACKAGE@
  44623. -pkglibdir = $(libdir)/@PACKAGE@
  44624. pkgincludedir = $(includedir)/@PACKAGE@
  44625. +pkglibdir = $(libdir)/@PACKAGE@
  44626. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  44627. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  44628. install_sh_DATA = $(install_sh) -c -m 644
  44629. install_sh_PROGRAM = $(install_sh) -c
  44630. @@ -42,6 +44,7 @@
  44631. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  44632. CONFIG_HEADER = $(top_builddir)/include/config.h
  44633. CONFIG_CLEAN_FILES =
  44634. +CONFIG_CLEAN_VPATH_FILES =
  44635. SOURCES =
  44636. DIST_SOURCES =
  44637. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  44638. @@ -53,10 +56,38 @@
  44639. ps-recursive uninstall-recursive
  44640. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  44641. distclean-recursive maintainer-clean-recursive
  44642. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  44643. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  44644. + distdir
  44645. ETAGS = etags
  44646. CTAGS = ctags
  44647. DIST_SUBDIRS = $(SUBDIRS)
  44648. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  44649. +am__relativize = \
  44650. + dir0=`pwd`; \
  44651. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  44652. + sed_rest='s,^[^/]*/*,,'; \
  44653. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  44654. + sed_butlast='s,/*[^/]*$$,,'; \
  44655. + while test -n "$$dir1"; do \
  44656. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  44657. + if test "$$first" != "."; then \
  44658. + if test "$$first" = ".."; then \
  44659. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  44660. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  44661. + else \
  44662. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  44663. + if test "$$first2" = "$$first"; then \
  44664. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  44665. + else \
  44666. + dir2="../$$dir2"; \
  44667. + fi; \
  44668. + dir0="$$dir0"/"$$first"; \
  44669. + fi; \
  44670. + fi; \
  44671. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  44672. + done; \
  44673. + reldir="$$dir2"
  44674. ACLOCAL = @ACLOCAL@
  44675. ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
  44676. AMTAR = @AMTAR@
  44677. @@ -70,22 +101,18 @@
  44678. CFLAGS = @CFLAGS@
  44679. CPP = @CPP@
  44680. CPPFLAGS = @CPPFLAGS@
  44681. -CXX = @CXX@
  44682. -CXXCPP = @CXXCPP@
  44683. -CXXDEPMODE = @CXXDEPMODE@
  44684. -CXXFLAGS = @CXXFLAGS@
  44685. CYGPATH_W = @CYGPATH_W@
  44686. DEFS = @DEFS@
  44687. DEPDIR = @DEPDIR@
  44688. -ECHO = @ECHO@
  44689. +DSYMUTIL = @DSYMUTIL@
  44690. +DUMPBIN = @DUMPBIN@
  44691. ECHO_C = @ECHO_C@
  44692. ECHO_N = @ECHO_N@
  44693. ECHO_T = @ECHO_T@
  44694. EGREP = @EGREP@
  44695. ENDIANESS = @ENDIANESS@
  44696. EXEEXT = @EXEEXT@
  44697. -F77 = @F77@
  44698. -FFLAGS = @FFLAGS@
  44699. +FGREP = @FGREP@
  44700. GREP = @GREP@
  44701. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  44702. INSTALL = @INSTALL@
  44703. @@ -93,6 +120,7 @@
  44704. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  44705. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  44706. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  44707. +LD = @LD@
  44708. LDFLAGS = @LDFLAGS@
  44709. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  44710. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  44711. @@ -100,17 +128,24 @@
  44712. LIBOBJS = @LIBOBJS@
  44713. LIBS = @LIBS@
  44714. LIBTOOL = @LIBTOOL@
  44715. +LIPO = @LIPO@
  44716. LN_S = @LN_S@
  44717. LTLIBOBJS = @LTLIBOBJS@
  44718. MAINT = @MAINT@
  44719. MAKEINFO = @MAKEINFO@
  44720. MKDIR_P = @MKDIR_P@
  44721. +NM = @NM@
  44722. +NMEDIT = @NMEDIT@
  44723. +OBJDUMP = @OBJDUMP@
  44724. OBJEXT = @OBJEXT@
  44725. +OTOOL = @OTOOL@
  44726. +OTOOL64 = @OTOOL64@
  44727. PACKAGE = @PACKAGE@
  44728. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  44729. PACKAGE_NAME = @PACKAGE_NAME@
  44730. PACKAGE_STRING = @PACKAGE_STRING@
  44731. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  44732. +PACKAGE_URL = @PACKAGE_URL@
  44733. PACKAGE_VERSION = @PACKAGE_VERSION@
  44734. PATH_SEPARATOR = @PATH_SEPARATOR@
  44735. RANLIB = @RANLIB@
  44736. @@ -124,8 +159,7 @@
  44737. abs_top_builddir = @abs_top_builddir@
  44738. abs_top_srcdir = @abs_top_srcdir@
  44739. ac_ct_CC = @ac_ct_CC@
  44740. -ac_ct_CXX = @ac_ct_CXX@
  44741. -ac_ct_F77 = @ac_ct_F77@
  44742. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  44743. am__include = @am__include@
  44744. am__leading_dot = @am__leading_dot@
  44745. am__quote = @am__quote@
  44746. @@ -156,6 +190,7 @@
  44747. libexecdir = @libexecdir@
  44748. localedir = @localedir@
  44749. localstatedir = @localstatedir@
  44750. +lt_ECHO = @lt_ECHO@
  44751. mandir = @mandir@
  44752. mkdir_p = @mkdir_p@
  44753. oldincludedir = @oldincludedir@
  44754. @@ -172,6 +207,7 @@
  44755. target_cpu = @target_cpu@
  44756. target_os = @target_os@
  44757. target_vendor = @target_vendor@
  44758. +top_build_prefix = @top_build_prefix@
  44759. top_builddir = @top_builddir@
  44760. top_srcdir = @top_srcdir@
  44761. EXTRA_DIST = BUGS CHANGELOG CONTRIB COPYING DESIGN_NOTES \
  44762. @@ -186,14 +222,14 @@
  44763. @for dep in $?; do \
  44764. case '$(am__configure_deps)' in \
  44765. *$$dep*) \
  44766. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  44767. - && exit 0; \
  44768. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  44769. + && { if test -f $@; then exit 0; else break; fi; }; \
  44770. exit 1;; \
  44771. esac; \
  44772. done; \
  44773. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  44774. - cd $(top_srcdir) && \
  44775. - $(AUTOMAKE) --gnu doc/Makefile
  44776. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  44777. + $(am__cd) $(top_srcdir) && \
  44778. + $(AUTOMAKE) --gnu doc/Makefile
  44779. .PRECIOUS: Makefile
  44780. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  44781. @case '$?' in \
  44782. @@ -211,6 +247,7 @@
  44783. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44784. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  44785. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44786. +$(am__aclocal_m4_deps):
  44787. mostlyclean-libtool:
  44788. -rm -f *.lo
  44789. @@ -225,7 +262,7 @@
  44790. # (which will cause the Makefiles to be regenerated when you run `make');
  44791. # (2) otherwise, pass the desired values on the `make' command line.
  44792. $(RECURSIVE_TARGETS):
  44793. - @failcom='exit 1'; \
  44794. + @fail= failcom='exit 1'; \
  44795. for f in x $$MAKEFLAGS; do \
  44796. case $$f in \
  44797. *=* | --[!k]*);; \
  44798. @@ -242,7 +279,7 @@
  44799. else \
  44800. local_target="$$target"; \
  44801. fi; \
  44802. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  44803. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  44804. || eval $$failcom; \
  44805. done; \
  44806. if test "$$dot_seen" = "no"; then \
  44807. @@ -250,7 +287,7 @@
  44808. fi; test -z "$$fail"
  44809. $(RECURSIVE_CLEAN_TARGETS):
  44810. - @failcom='exit 1'; \
  44811. + @fail= failcom='exit 1'; \
  44812. for f in x $$MAKEFLAGS; do \
  44813. case $$f in \
  44814. *=* | --[!k]*);; \
  44815. @@ -276,16 +313,16 @@
  44816. else \
  44817. local_target="$$target"; \
  44818. fi; \
  44819. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  44820. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  44821. || eval $$failcom; \
  44822. done && test -z "$$fail"
  44823. tags-recursive:
  44824. list='$(SUBDIRS)'; for subdir in $$list; do \
  44825. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  44826. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  44827. done
  44828. ctags-recursive:
  44829. list='$(SUBDIRS)'; for subdir in $$list; do \
  44830. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  44831. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  44832. done
  44833. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  44834. @@ -293,14 +330,14 @@
  44835. unique=`for i in $$list; do \
  44836. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44837. done | \
  44838. - $(AWK) ' { files[$$0] = 1; } \
  44839. - END { for (i in files) print i; }'`; \
  44840. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44841. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44842. mkid -fID $$unique
  44843. tags: TAGS
  44844. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44845. $(TAGS_FILES) $(LISP)
  44846. - tags=; \
  44847. + set x; \
  44848. here=`pwd`; \
  44849. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  44850. include_option=--etags-include; \
  44851. @@ -312,39 +349,43 @@
  44852. list='$(SUBDIRS)'; for subdir in $$list; do \
  44853. if test "$$subdir" = .; then :; else \
  44854. test ! -f $$subdir/TAGS || \
  44855. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  44856. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  44857. fi; \
  44858. done; \
  44859. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44860. unique=`for i in $$list; do \
  44861. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44862. done | \
  44863. - $(AWK) ' { files[$$0] = 1; } \
  44864. - END { for (i in files) print i; }'`; \
  44865. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  44866. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44867. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44868. + shift; \
  44869. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  44870. test -n "$$unique" || unique=$$empty_fix; \
  44871. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44872. - $$tags $$unique; \
  44873. + if test $$# -gt 0; then \
  44874. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44875. + "$$@" $$unique; \
  44876. + else \
  44877. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44878. + $$unique; \
  44879. + fi; \
  44880. fi
  44881. ctags: CTAGS
  44882. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44883. $(TAGS_FILES) $(LISP)
  44884. - tags=; \
  44885. - here=`pwd`; \
  44886. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44887. unique=`for i in $$list; do \
  44888. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44889. done | \
  44890. - $(AWK) ' { files[$$0] = 1; } \
  44891. - END { for (i in files) print i; }'`; \
  44892. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  44893. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44894. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44895. + test -z "$(CTAGS_ARGS)$$unique" \
  44896. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  44897. - $$tags $$unique
  44898. + $$unique
  44899. GTAGS:
  44900. here=`$(am__cd) $(top_builddir) && pwd` \
  44901. - && cd $(top_srcdir) \
  44902. - && gtags -i $(GTAGS_ARGS) $$here
  44903. + && $(am__cd) $(top_srcdir) \
  44904. + && gtags -i $(GTAGS_ARGS) "$$here"
  44905. distclean-tags:
  44906. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  44907. @@ -365,29 +406,44 @@
  44908. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  44909. if test -d $$d/$$file; then \
  44910. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  44911. + if test -d "$(distdir)/$$file"; then \
  44912. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44913. + fi; \
  44914. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  44915. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  44916. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  44917. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44918. fi; \
  44919. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  44920. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  44921. else \
  44922. - test -f $(distdir)/$$file \
  44923. - || cp -p $$d/$$file $(distdir)/$$file \
  44924. + test -f "$(distdir)/$$file" \
  44925. + || cp -p $$d/$$file "$(distdir)/$$file" \
  44926. || exit 1; \
  44927. fi; \
  44928. done
  44929. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  44930. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  44931. if test "$$subdir" = .; then :; else \
  44932. test -d "$(distdir)/$$subdir" \
  44933. || $(MKDIR_P) "$(distdir)/$$subdir" \
  44934. || exit 1; \
  44935. - distdir=`$(am__cd) $(distdir) && pwd`; \
  44936. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  44937. - (cd $$subdir && \
  44938. + fi; \
  44939. + done
  44940. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  44941. + if test "$$subdir" = .; then :; else \
  44942. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  44943. + $(am__relativize); \
  44944. + new_distdir=$$reldir; \
  44945. + dir1=$$subdir; dir2="$(top_distdir)"; \
  44946. + $(am__relativize); \
  44947. + new_top_distdir=$$reldir; \
  44948. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  44949. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  44950. + ($(am__cd) $$subdir && \
  44951. $(MAKE) $(AM_MAKEFLAGS) \
  44952. - top_distdir="$$top_distdir" \
  44953. - distdir="$$distdir/$$subdir" \
  44954. + top_distdir="$$new_top_distdir" \
  44955. + distdir="$$new_distdir" \
  44956. am__remove_distdir=: \
  44957. am__skip_length_check=: \
  44958. + am__skip_mode_fix=: \
  44959. distdir) \
  44960. || exit 1; \
  44961. fi; \
  44962. @@ -417,6 +473,7 @@
  44963. distclean-generic:
  44964. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  44965. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  44966. maintainer-clean-generic:
  44967. @echo "This command is intended for maintainers to use"
  44968. @@ -435,6 +492,8 @@
  44969. html: html-recursive
  44970. +html-am:
  44971. +
  44972. info: info-recursive
  44973. info-am:
  44974. @@ -443,18 +502,28 @@
  44975. install-dvi: install-dvi-recursive
  44976. +install-dvi-am:
  44977. +
  44978. install-exec-am:
  44979. install-html: install-html-recursive
  44980. +install-html-am:
  44981. +
  44982. install-info: install-info-recursive
  44983. +install-info-am:
  44984. +
  44985. install-man:
  44986. install-pdf: install-pdf-recursive
  44987. +install-pdf-am:
  44988. +
  44989. install-ps: install-ps-recursive
  44990. +install-ps-am:
  44991. +
  44992. installcheck-am:
  44993. maintainer-clean: maintainer-clean-recursive
  44994. @@ -475,8 +544,8 @@
  44995. uninstall-am:
  44996. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  44997. - install-strip
  44998. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  44999. + install-am install-strip tags-recursive
  45000. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  45001. all all-am check check-am clean clean-generic clean-libtool \
  45002. @@ -495,6 +564,7 @@
  45003. doc:
  45004. cd $(top_srcdir) && doxygen doc/libnet.doxygen.conf
  45005. +
  45006. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45007. # Otherwise a system limit (for SysV at least) may be exceeded.
  45008. .NOEXPORT:
  45009. diff -Nur libnet-1.1.5.orig/doc/man/Makefile.in libnet-1.1.5/doc/man/Makefile.in
  45010. --- libnet-1.1.5.orig/doc/man/Makefile.in 2010-11-09 01:48:06.000000000 +0100
  45011. +++ libnet-1.1.5/doc/man/Makefile.in 2011-02-24 19:45:54.293555078 +0100
  45012. @@ -1,8 +1,9 @@
  45013. -# Makefile.in generated by automake 1.10 from Makefile.am.
  45014. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45015. # @configure_input@
  45016. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45017. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  45018. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45019. +# Inc.
  45020. # This Makefile.in is free software; the Free Software Foundation
  45021. # gives unlimited permission to copy and/or distribute it,
  45022. # with or without modifications, as long as this notice is preserved.
  45023. @@ -15,8 +16,9 @@
  45024. @SET_MAKE@
  45025. VPATH = @srcdir@
  45026. pkgdatadir = $(datadir)/@PACKAGE@
  45027. -pkglibdir = $(libdir)/@PACKAGE@
  45028. pkgincludedir = $(includedir)/@PACKAGE@
  45029. +pkglibdir = $(libdir)/@PACKAGE@
  45030. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45031. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45032. install_sh_DATA = $(install_sh) -c -m 644
  45033. install_sh_PROGRAM = $(install_sh) -c
  45034. @@ -42,6 +44,7 @@
  45035. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  45036. CONFIG_HEADER = $(top_builddir)/include/config.h
  45037. CONFIG_CLEAN_FILES =
  45038. +CONFIG_CLEAN_VPATH_FILES =
  45039. SOURCES =
  45040. DIST_SOURCES =
  45041. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  45042. @@ -53,10 +56,38 @@
  45043. ps-recursive uninstall-recursive
  45044. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  45045. distclean-recursive maintainer-clean-recursive
  45046. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  45047. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  45048. + distdir
  45049. ETAGS = etags
  45050. CTAGS = ctags
  45051. DIST_SUBDIRS = $(SUBDIRS)
  45052. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  45053. +am__relativize = \
  45054. + dir0=`pwd`; \
  45055. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  45056. + sed_rest='s,^[^/]*/*,,'; \
  45057. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  45058. + sed_butlast='s,/*[^/]*$$,,'; \
  45059. + while test -n "$$dir1"; do \
  45060. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  45061. + if test "$$first" != "."; then \
  45062. + if test "$$first" = ".."; then \
  45063. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  45064. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  45065. + else \
  45066. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  45067. + if test "$$first2" = "$$first"; then \
  45068. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  45069. + else \
  45070. + dir2="../$$dir2"; \
  45071. + fi; \
  45072. + dir0="$$dir0"/"$$first"; \
  45073. + fi; \
  45074. + fi; \
  45075. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  45076. + done; \
  45077. + reldir="$$dir2"
  45078. ACLOCAL = @ACLOCAL@
  45079. ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
  45080. AMTAR = @AMTAR@
  45081. @@ -70,22 +101,18 @@
  45082. CFLAGS = @CFLAGS@
  45083. CPP = @CPP@
  45084. CPPFLAGS = @CPPFLAGS@
  45085. -CXX = @CXX@
  45086. -CXXCPP = @CXXCPP@
  45087. -CXXDEPMODE = @CXXDEPMODE@
  45088. -CXXFLAGS = @CXXFLAGS@
  45089. CYGPATH_W = @CYGPATH_W@
  45090. DEFS = @DEFS@
  45091. DEPDIR = @DEPDIR@
  45092. -ECHO = @ECHO@
  45093. +DSYMUTIL = @DSYMUTIL@
  45094. +DUMPBIN = @DUMPBIN@
  45095. ECHO_C = @ECHO_C@
  45096. ECHO_N = @ECHO_N@
  45097. ECHO_T = @ECHO_T@
  45098. EGREP = @EGREP@
  45099. ENDIANESS = @ENDIANESS@
  45100. EXEEXT = @EXEEXT@
  45101. -F77 = @F77@
  45102. -FFLAGS = @FFLAGS@
  45103. +FGREP = @FGREP@
  45104. GREP = @GREP@
  45105. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  45106. INSTALL = @INSTALL@
  45107. @@ -93,6 +120,7 @@
  45108. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45109. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45110. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45111. +LD = @LD@
  45112. LDFLAGS = @LDFLAGS@
  45113. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  45114. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  45115. @@ -100,17 +128,24 @@
  45116. LIBOBJS = @LIBOBJS@
  45117. LIBS = @LIBS@
  45118. LIBTOOL = @LIBTOOL@
  45119. +LIPO = @LIPO@
  45120. LN_S = @LN_S@
  45121. LTLIBOBJS = @LTLIBOBJS@
  45122. MAINT = @MAINT@
  45123. MAKEINFO = @MAKEINFO@
  45124. MKDIR_P = @MKDIR_P@
  45125. +NM = @NM@
  45126. +NMEDIT = @NMEDIT@
  45127. +OBJDUMP = @OBJDUMP@
  45128. OBJEXT = @OBJEXT@
  45129. +OTOOL = @OTOOL@
  45130. +OTOOL64 = @OTOOL64@
  45131. PACKAGE = @PACKAGE@
  45132. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45133. PACKAGE_NAME = @PACKAGE_NAME@
  45134. PACKAGE_STRING = @PACKAGE_STRING@
  45135. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  45136. +PACKAGE_URL = @PACKAGE_URL@
  45137. PACKAGE_VERSION = @PACKAGE_VERSION@
  45138. PATH_SEPARATOR = @PATH_SEPARATOR@
  45139. RANLIB = @RANLIB@
  45140. @@ -124,8 +159,7 @@
  45141. abs_top_builddir = @abs_top_builddir@
  45142. abs_top_srcdir = @abs_top_srcdir@
  45143. ac_ct_CC = @ac_ct_CC@
  45144. -ac_ct_CXX = @ac_ct_CXX@
  45145. -ac_ct_F77 = @ac_ct_F77@
  45146. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45147. am__include = @am__include@
  45148. am__leading_dot = @am__leading_dot@
  45149. am__quote = @am__quote@
  45150. @@ -156,6 +190,7 @@
  45151. libexecdir = @libexecdir@
  45152. localedir = @localedir@
  45153. localstatedir = @localstatedir@
  45154. +lt_ECHO = @lt_ECHO@
  45155. mandir = @mandir@
  45156. mkdir_p = @mkdir_p@
  45157. oldincludedir = @oldincludedir@
  45158. @@ -172,6 +207,7 @@
  45159. target_cpu = @target_cpu@
  45160. target_os = @target_os@
  45161. target_vendor = @target_vendor@
  45162. +top_build_prefix = @top_build_prefix@
  45163. top_builddir = @top_builddir@
  45164. top_srcdir = @top_srcdir@
  45165. SUBDIRS = man3
  45166. @@ -182,14 +218,14 @@
  45167. @for dep in $?; do \
  45168. case '$(am__configure_deps)' in \
  45169. *$$dep*) \
  45170. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45171. - && exit 0; \
  45172. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45173. + && { if test -f $@; then exit 0; else break; fi; }; \
  45174. exit 1;; \
  45175. esac; \
  45176. done; \
  45177. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/man/Makefile'; \
  45178. - cd $(top_srcdir) && \
  45179. - $(AUTOMAKE) --gnu doc/man/Makefile
  45180. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/man/Makefile'; \
  45181. + $(am__cd) $(top_srcdir) && \
  45182. + $(AUTOMAKE) --gnu doc/man/Makefile
  45183. .PRECIOUS: Makefile
  45184. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45185. @case '$?' in \
  45186. @@ -207,6 +243,7 @@
  45187. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45188. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  45189. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45190. +$(am__aclocal_m4_deps):
  45191. mostlyclean-libtool:
  45192. -rm -f *.lo
  45193. @@ -221,7 +258,7 @@
  45194. # (which will cause the Makefiles to be regenerated when you run `make');
  45195. # (2) otherwise, pass the desired values on the `make' command line.
  45196. $(RECURSIVE_TARGETS):
  45197. - @failcom='exit 1'; \
  45198. + @fail= failcom='exit 1'; \
  45199. for f in x $$MAKEFLAGS; do \
  45200. case $$f in \
  45201. *=* | --[!k]*);; \
  45202. @@ -238,7 +275,7 @@
  45203. else \
  45204. local_target="$$target"; \
  45205. fi; \
  45206. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  45207. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  45208. || eval $$failcom; \
  45209. done; \
  45210. if test "$$dot_seen" = "no"; then \
  45211. @@ -246,7 +283,7 @@
  45212. fi; test -z "$$fail"
  45213. $(RECURSIVE_CLEAN_TARGETS):
  45214. - @failcom='exit 1'; \
  45215. + @fail= failcom='exit 1'; \
  45216. for f in x $$MAKEFLAGS; do \
  45217. case $$f in \
  45218. *=* | --[!k]*);; \
  45219. @@ -272,16 +309,16 @@
  45220. else \
  45221. local_target="$$target"; \
  45222. fi; \
  45223. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  45224. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  45225. || eval $$failcom; \
  45226. done && test -z "$$fail"
  45227. tags-recursive:
  45228. list='$(SUBDIRS)'; for subdir in $$list; do \
  45229. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  45230. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  45231. done
  45232. ctags-recursive:
  45233. list='$(SUBDIRS)'; for subdir in $$list; do \
  45234. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  45235. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  45236. done
  45237. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  45238. @@ -289,14 +326,14 @@
  45239. unique=`for i in $$list; do \
  45240. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45241. done | \
  45242. - $(AWK) ' { files[$$0] = 1; } \
  45243. - END { for (i in files) print i; }'`; \
  45244. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45245. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  45246. mkid -fID $$unique
  45247. tags: TAGS
  45248. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  45249. $(TAGS_FILES) $(LISP)
  45250. - tags=; \
  45251. + set x; \
  45252. here=`pwd`; \
  45253. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  45254. include_option=--etags-include; \
  45255. @@ -308,39 +345,43 @@
  45256. list='$(SUBDIRS)'; for subdir in $$list; do \
  45257. if test "$$subdir" = .; then :; else \
  45258. test ! -f $$subdir/TAGS || \
  45259. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  45260. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  45261. fi; \
  45262. done; \
  45263. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  45264. unique=`for i in $$list; do \
  45265. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45266. done | \
  45267. - $(AWK) ' { files[$$0] = 1; } \
  45268. - END { for (i in files) print i; }'`; \
  45269. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  45270. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45271. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  45272. + shift; \
  45273. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  45274. test -n "$$unique" || unique=$$empty_fix; \
  45275. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45276. - $$tags $$unique; \
  45277. + if test $$# -gt 0; then \
  45278. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45279. + "$$@" $$unique; \
  45280. + else \
  45281. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45282. + $$unique; \
  45283. + fi; \
  45284. fi
  45285. ctags: CTAGS
  45286. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  45287. $(TAGS_FILES) $(LISP)
  45288. - tags=; \
  45289. - here=`pwd`; \
  45290. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  45291. unique=`for i in $$list; do \
  45292. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45293. done | \
  45294. - $(AWK) ' { files[$$0] = 1; } \
  45295. - END { for (i in files) print i; }'`; \
  45296. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  45297. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45298. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  45299. + test -z "$(CTAGS_ARGS)$$unique" \
  45300. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  45301. - $$tags $$unique
  45302. + $$unique
  45303. GTAGS:
  45304. here=`$(am__cd) $(top_builddir) && pwd` \
  45305. - && cd $(top_srcdir) \
  45306. - && gtags -i $(GTAGS_ARGS) $$here
  45307. + && $(am__cd) $(top_srcdir) \
  45308. + && gtags -i $(GTAGS_ARGS) "$$here"
  45309. distclean-tags:
  45310. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  45311. @@ -361,29 +402,44 @@
  45312. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45313. if test -d $$d/$$file; then \
  45314. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45315. + if test -d "$(distdir)/$$file"; then \
  45316. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45317. + fi; \
  45318. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45319. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45320. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45321. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45322. fi; \
  45323. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45324. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45325. else \
  45326. - test -f $(distdir)/$$file \
  45327. - || cp -p $$d/$$file $(distdir)/$$file \
  45328. + test -f "$(distdir)/$$file" \
  45329. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45330. || exit 1; \
  45331. fi; \
  45332. done
  45333. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  45334. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  45335. if test "$$subdir" = .; then :; else \
  45336. test -d "$(distdir)/$$subdir" \
  45337. || $(MKDIR_P) "$(distdir)/$$subdir" \
  45338. || exit 1; \
  45339. - distdir=`$(am__cd) $(distdir) && pwd`; \
  45340. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  45341. - (cd $$subdir && \
  45342. + fi; \
  45343. + done
  45344. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  45345. + if test "$$subdir" = .; then :; else \
  45346. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  45347. + $(am__relativize); \
  45348. + new_distdir=$$reldir; \
  45349. + dir1=$$subdir; dir2="$(top_distdir)"; \
  45350. + $(am__relativize); \
  45351. + new_top_distdir=$$reldir; \
  45352. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  45353. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  45354. + ($(am__cd) $$subdir && \
  45355. $(MAKE) $(AM_MAKEFLAGS) \
  45356. - top_distdir="$$top_distdir" \
  45357. - distdir="$$distdir/$$subdir" \
  45358. + top_distdir="$$new_top_distdir" \
  45359. + distdir="$$new_distdir" \
  45360. am__remove_distdir=: \
  45361. am__skip_length_check=: \
  45362. + am__skip_mode_fix=: \
  45363. distdir) \
  45364. || exit 1; \
  45365. fi; \
  45366. @@ -413,6 +469,7 @@
  45367. distclean-generic:
  45368. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45369. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45370. maintainer-clean-generic:
  45371. @echo "This command is intended for maintainers to use"
  45372. @@ -431,6 +488,8 @@
  45373. html: html-recursive
  45374. +html-am:
  45375. +
  45376. info: info-recursive
  45377. info-am:
  45378. @@ -439,18 +498,28 @@
  45379. install-dvi: install-dvi-recursive
  45380. +install-dvi-am:
  45381. +
  45382. install-exec-am:
  45383. install-html: install-html-recursive
  45384. +install-html-am:
  45385. +
  45386. install-info: install-info-recursive
  45387. +install-info-am:
  45388. +
  45389. install-man:
  45390. install-pdf: install-pdf-recursive
  45391. +install-pdf-am:
  45392. +
  45393. install-ps: install-ps-recursive
  45394. +install-ps-am:
  45395. +
  45396. installcheck-am:
  45397. maintainer-clean: maintainer-clean-recursive
  45398. @@ -471,8 +540,8 @@
  45399. uninstall-am:
  45400. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  45401. - install-strip
  45402. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  45403. + install-am install-strip tags-recursive
  45404. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  45405. all all-am check check-am clean clean-generic clean-libtool \
  45406. @@ -488,6 +557,7 @@
  45407. mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  45408. uninstall uninstall-am
  45409. +
  45410. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45411. # Otherwise a system limit (for SysV at least) may be exceeded.
  45412. .NOEXPORT:
  45413. diff -Nur libnet-1.1.5.orig/doc/man/man3/Makefile.in libnet-1.1.5/doc/man/man3/Makefile.in
  45414. --- libnet-1.1.5.orig/doc/man/man3/Makefile.in 2010-11-09 01:48:06.000000000 +0100
  45415. +++ libnet-1.1.5/doc/man/man3/Makefile.in 2011-02-24 19:45:54.373551385 +0100
  45416. @@ -1,8 +1,9 @@
  45417. -# Makefile.in generated by automake 1.10 from Makefile.am.
  45418. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45419. # @configure_input@
  45420. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45421. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  45422. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45423. +# Inc.
  45424. # This Makefile.in is free software; the Free Software Foundation
  45425. # gives unlimited permission to copy and/or distribute it,
  45426. # with or without modifications, as long as this notice is preserved.
  45427. @@ -15,8 +16,9 @@
  45428. @SET_MAKE@
  45429. VPATH = @srcdir@
  45430. pkgdatadir = $(datadir)/@PACKAGE@
  45431. -pkglibdir = $(libdir)/@PACKAGE@
  45432. pkgincludedir = $(includedir)/@PACKAGE@
  45433. +pkglibdir = $(libdir)/@PACKAGE@
  45434. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45435. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45436. install_sh_DATA = $(install_sh) -c -m 644
  45437. install_sh_PROGRAM = $(install_sh) -c
  45438. @@ -42,8 +44,30 @@
  45439. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  45440. CONFIG_HEADER = $(top_builddir)/include/config.h
  45441. CONFIG_CLEAN_FILES =
  45442. +CONFIG_CLEAN_VPATH_FILES =
  45443. SOURCES =
  45444. DIST_SOURCES =
  45445. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  45446. +am__vpath_adj = case $$p in \
  45447. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  45448. + *) f=$$p;; \
  45449. + esac;
  45450. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  45451. +am__install_max = 40
  45452. +am__nobase_strip_setup = \
  45453. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  45454. +am__nobase_strip = \
  45455. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  45456. +am__nobase_list = $(am__nobase_strip_setup); \
  45457. + for p in $$list; do echo "$$p $$p"; done | \
  45458. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  45459. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  45460. + if (++n[$$2] == $(am__install_max)) \
  45461. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  45462. + END { for (dir in files) print dir, files[dir] }'
  45463. +am__base_list = \
  45464. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  45465. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  45466. man3dir = $(mandir)/man3
  45467. am__installdirs = "$(DESTDIR)$(man3dir)"
  45468. NROFF = nroff
  45469. @@ -62,22 +86,18 @@
  45470. CFLAGS = @CFLAGS@
  45471. CPP = @CPP@
  45472. CPPFLAGS = @CPPFLAGS@
  45473. -CXX = @CXX@
  45474. -CXXCPP = @CXXCPP@
  45475. -CXXDEPMODE = @CXXDEPMODE@
  45476. -CXXFLAGS = @CXXFLAGS@
  45477. CYGPATH_W = @CYGPATH_W@
  45478. DEFS = @DEFS@
  45479. DEPDIR = @DEPDIR@
  45480. -ECHO = @ECHO@
  45481. +DSYMUTIL = @DSYMUTIL@
  45482. +DUMPBIN = @DUMPBIN@
  45483. ECHO_C = @ECHO_C@
  45484. ECHO_N = @ECHO_N@
  45485. ECHO_T = @ECHO_T@
  45486. EGREP = @EGREP@
  45487. ENDIANESS = @ENDIANESS@
  45488. EXEEXT = @EXEEXT@
  45489. -F77 = @F77@
  45490. -FFLAGS = @FFLAGS@
  45491. +FGREP = @FGREP@
  45492. GREP = @GREP@
  45493. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  45494. INSTALL = @INSTALL@
  45495. @@ -85,6 +105,7 @@
  45496. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45497. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45498. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45499. +LD = @LD@
  45500. LDFLAGS = @LDFLAGS@
  45501. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  45502. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  45503. @@ -92,17 +113,24 @@
  45504. LIBOBJS = @LIBOBJS@
  45505. LIBS = @LIBS@
  45506. LIBTOOL = @LIBTOOL@
  45507. +LIPO = @LIPO@
  45508. LN_S = @LN_S@
  45509. LTLIBOBJS = @LTLIBOBJS@
  45510. MAINT = @MAINT@
  45511. MAKEINFO = @MAKEINFO@
  45512. MKDIR_P = @MKDIR_P@
  45513. +NM = @NM@
  45514. +NMEDIT = @NMEDIT@
  45515. +OBJDUMP = @OBJDUMP@
  45516. OBJEXT = @OBJEXT@
  45517. +OTOOL = @OTOOL@
  45518. +OTOOL64 = @OTOOL64@
  45519. PACKAGE = @PACKAGE@
  45520. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45521. PACKAGE_NAME = @PACKAGE_NAME@
  45522. PACKAGE_STRING = @PACKAGE_STRING@
  45523. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  45524. +PACKAGE_URL = @PACKAGE_URL@
  45525. PACKAGE_VERSION = @PACKAGE_VERSION@
  45526. PATH_SEPARATOR = @PATH_SEPARATOR@
  45527. RANLIB = @RANLIB@
  45528. @@ -116,8 +144,7 @@
  45529. abs_top_builddir = @abs_top_builddir@
  45530. abs_top_srcdir = @abs_top_srcdir@
  45531. ac_ct_CC = @ac_ct_CC@
  45532. -ac_ct_CXX = @ac_ct_CXX@
  45533. -ac_ct_F77 = @ac_ct_F77@
  45534. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45535. am__include = @am__include@
  45536. am__leading_dot = @am__leading_dot@
  45537. am__quote = @am__quote@
  45538. @@ -148,6 +175,7 @@
  45539. libexecdir = @libexecdir@
  45540. localedir = @localedir@
  45541. localstatedir = @localstatedir@
  45542. +lt_ECHO = @lt_ECHO@
  45543. mandir = @mandir@
  45544. mkdir_p = @mkdir_p@
  45545. oldincludedir = @oldincludedir@
  45546. @@ -164,6 +192,7 @@
  45547. target_cpu = @target_cpu@
  45548. target_os = @target_os@
  45549. target_vendor = @target_vendor@
  45550. +top_build_prefix = @top_build_prefix@
  45551. top_builddir = @top_builddir@
  45552. top_srcdir = @top_srcdir@
  45553. man3_MANS = $(srcdir)/*.3
  45554. @@ -175,14 +204,14 @@
  45555. @for dep in $?; do \
  45556. case '$(am__configure_deps)' in \
  45557. *$$dep*) \
  45558. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45559. - && exit 0; \
  45560. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45561. + && { if test -f $@; then exit 0; else break; fi; }; \
  45562. exit 1;; \
  45563. esac; \
  45564. done; \
  45565. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/man/man3/Makefile'; \
  45566. - cd $(top_srcdir) && \
  45567. - $(AUTOMAKE) --gnu doc/man/man3/Makefile
  45568. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/man/man3/Makefile'; \
  45569. + $(am__cd) $(top_srcdir) && \
  45570. + $(AUTOMAKE) --gnu doc/man/man3/Makefile
  45571. .PRECIOUS: Makefile
  45572. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45573. @case '$?' in \
  45574. @@ -200,57 +229,47 @@
  45575. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45576. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  45577. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45578. +$(am__aclocal_m4_deps):
  45579. mostlyclean-libtool:
  45580. -rm -f *.lo
  45581. clean-libtool:
  45582. -rm -rf .libs _libs
  45583. -install-man3: $(man3_MANS) $(man_MANS)
  45584. +install-man3: $(man3_MANS)
  45585. @$(NORMAL_INSTALL)
  45586. test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
  45587. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  45588. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  45589. - for i in $$l2; do \
  45590. - case "$$i" in \
  45591. - *.3*) list="$$list $$i" ;; \
  45592. - esac; \
  45593. + @list='$(man3_MANS)'; test -n "$(man3dir)" || exit 0; \
  45594. + { for i in $$list; do echo "$$i"; done; \
  45595. + } | while read p; do \
  45596. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  45597. + echo "$$d$$p"; echo "$$p"; \
  45598. + done | \
  45599. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  45600. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  45601. + sed 'N;N;s,\n, ,g' | { \
  45602. + list=; while read file base inst; do \
  45603. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  45604. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  45605. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
  45606. + fi; \
  45607. done; \
  45608. - for i in $$list; do \
  45609. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  45610. - else file=$$i; fi; \
  45611. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  45612. - case "$$ext" in \
  45613. - 3*) ;; \
  45614. - *) ext='3' ;; \
  45615. - esac; \
  45616. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  45617. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  45618. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  45619. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  45620. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
  45621. - done
  45622. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  45623. + while read files; do \
  45624. + test -z "$$files" || { \
  45625. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \
  45626. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \
  45627. + done; }
  45628. +
  45629. uninstall-man3:
  45630. @$(NORMAL_UNINSTALL)
  45631. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  45632. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  45633. - for i in $$l2; do \
  45634. - case "$$i" in \
  45635. - *.3*) list="$$list $$i" ;; \
  45636. - esac; \
  45637. - done; \
  45638. - for i in $$list; do \
  45639. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  45640. - case "$$ext" in \
  45641. - 3*) ;; \
  45642. - *) ext='3' ;; \
  45643. - esac; \
  45644. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  45645. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  45646. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  45647. - echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
  45648. - rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
  45649. - done
  45650. + @list='$(man3_MANS)'; test -n "$(man3dir)" || exit 0; \
  45651. + files=`{ for i in $$list; do echo "$$i"; done; \
  45652. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  45653. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  45654. + test -z "$$files" || { \
  45655. + echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \
  45656. + cd "$(DESTDIR)$(man3dir)" && rm -f $$files; }
  45657. tags: TAGS
  45658. TAGS:
  45659. @@ -259,6 +278,19 @@
  45660. distdir: $(DISTFILES)
  45661. + @list='$(MANS)'; if test -n "$$list"; then \
  45662. + list=`for p in $$list; do \
  45663. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  45664. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  45665. + if test -n "$$list" && \
  45666. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  45667. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  45668. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  45669. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  45670. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  45671. + exit 1; \
  45672. + else :; fi; \
  45673. + else :; fi
  45674. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  45675. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  45676. list='$(DISTFILES)'; \
  45677. @@ -274,13 +306,17 @@
  45678. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45679. if test -d $$d/$$file; then \
  45680. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45681. + if test -d "$(distdir)/$$file"; then \
  45682. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45683. + fi; \
  45684. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45685. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45686. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45687. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45688. fi; \
  45689. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45690. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45691. else \
  45692. - test -f $(distdir)/$$file \
  45693. - || cp -p $$d/$$file $(distdir)/$$file \
  45694. + test -f "$(distdir)/$$file" \
  45695. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45696. || exit 1; \
  45697. fi; \
  45698. done
  45699. @@ -311,6 +347,7 @@
  45700. distclean-generic:
  45701. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45702. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45703. maintainer-clean-generic:
  45704. @echo "This command is intended for maintainers to use"
  45705. @@ -329,6 +366,8 @@
  45706. html: html-am
  45707. +html-am:
  45708. +
  45709. info: info-am
  45710. info-am:
  45711. @@ -337,18 +376,28 @@
  45712. install-dvi: install-dvi-am
  45713. +install-dvi-am:
  45714. +
  45715. install-exec-am:
  45716. install-html: install-html-am
  45717. +install-html-am:
  45718. +
  45719. install-info: install-info-am
  45720. +install-info-am:
  45721. +
  45722. install-man: install-man3
  45723. install-pdf: install-pdf-am
  45724. +install-pdf-am:
  45725. +
  45726. install-ps: install-ps-am
  45727. +install-ps-am:
  45728. +
  45729. installcheck-am:
  45730. maintainer-clean: maintainer-clean-am
  45731. @@ -385,6 +434,7 @@
  45732. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  45733. uninstall uninstall-am uninstall-man uninstall-man3
  45734. +
  45735. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45736. # Otherwise a system limit (for SysV at least) may be exceeded.
  45737. .NOEXPORT:
  45738. diff -Nur libnet-1.1.5.orig/include/config.h.in libnet-1.1.5/include/config.h.in
  45739. --- libnet-1.1.5.orig/include/config.h.in 2010-11-09 01:48:04.000000000 +0100
  45740. +++ libnet-1.1.5/include/config.h.in 2011-02-24 19:45:52.563553054 +0100
  45741. @@ -1,5 +1,8 @@
  45742. /* include/config.h.in. Generated from configure.in by autoheader. */
  45743. +/* Define if building universal (internal helper macro) */
  45744. +#undef AC_APPLE_UNIVERSAL_BUILD
  45745. +
  45746. /* Define if /dev/dlpi is a directory. */
  45747. #undef DLPI_DEV_PREFIX
  45748. @@ -114,6 +117,10 @@
  45749. /* We are running on a little-endian machine. */
  45750. #undef LIBNET_LIL_ENDIAN
  45751. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  45752. + */
  45753. +#undef LT_OBJDIR
  45754. +
  45755. /* Define if snprintf() is unavailable on our system. */
  45756. #undef NO_SNPRINTF
  45757. @@ -132,6 +139,9 @@
  45758. /* Define to the one symbol short name of this package. */
  45759. #undef PACKAGE_TARNAME
  45760. +/* Define to the home page for this package. */
  45761. +#undef PACKAGE_URL
  45762. +
  45763. /* Define to the version of this package. */
  45764. #undef PACKAGE_VERSION
  45765. @@ -141,27 +151,45 @@
  45766. /* Define if our version of Solaris has broken checksums. */
  45767. #undef STUPID_SOLARIS_CHECKSUM_BUG
  45768. -/* Version number of package */
  45769. -#undef VERSION
  45770. -
  45771. -/* Define to 1 if your processor stores words with the most significant byte
  45772. - first (like Motorola and SPARC, unlike Intel and VAX). */
  45773. -#undef WORDS_BIGENDIAN
  45774. -
  45775. -/* Define to 1 if on AIX 3.
  45776. - System headers sometimes define this.
  45777. - We just want to avoid a redefinition error message. */
  45778. +/* Enable extensions on AIX 3, Interix. */
  45779. #ifndef _ALL_SOURCE
  45780. # undef _ALL_SOURCE
  45781. #endif
  45782. -
  45783. -/* Define as necessary to "unhide" header symbols. */
  45784. -#undef _BSD_SOURCE
  45785. -
  45786. /* Enable GNU extensions on systems that have them. */
  45787. #ifndef _GNU_SOURCE
  45788. # undef _GNU_SOURCE
  45789. #endif
  45790. +/* Enable threading extensions on Solaris. */
  45791. +#ifndef _POSIX_PTHREAD_SEMANTICS
  45792. +# undef _POSIX_PTHREAD_SEMANTICS
  45793. +#endif
  45794. +/* Enable extensions on HP NonStop. */
  45795. +#ifndef _TANDEM_SOURCE
  45796. +# undef _TANDEM_SOURCE
  45797. +#endif
  45798. +/* Enable general extensions on Solaris. */
  45799. +#ifndef __EXTENSIONS__
  45800. +# undef __EXTENSIONS__
  45801. +#endif
  45802. +
  45803. +
  45804. +/* Version number of package */
  45805. +#undef VERSION
  45806. +
  45807. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  45808. + significant byte first (like Motorola and SPARC, unlike Intel). */
  45809. +#if defined AC_APPLE_UNIVERSAL_BUILD
  45810. +# if defined __BIG_ENDIAN__
  45811. +# define WORDS_BIGENDIAN 1
  45812. +# endif
  45813. +#else
  45814. +# ifndef WORDS_BIGENDIAN
  45815. +# undef WORDS_BIGENDIAN
  45816. +# endif
  45817. +#endif
  45818. +
  45819. +/* Define as necessary to "unhide" header symbols. */
  45820. +#undef _BSD_SOURCE
  45821. /* Define to 1 if on MINIX. */
  45822. #undef _MINIX
  45823. @@ -174,29 +202,18 @@
  45824. #undef _POSIX_SOURCE
  45825. /* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
  45826. - <pthread.h>, or <semaphore.h> is not used. If the typedef was allowed, the
  45827. + <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
  45828. #define below would cause a syntax error. */
  45829. #undef _UINT32_T
  45830. /* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
  45831. - <pthread.h>, or <semaphore.h> is not used. If the typedef was allowed, the
  45832. + <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
  45833. #define below would cause a syntax error. */
  45834. #undef _UINT64_T
  45835. /* Define as necessary to "unhide" header symbols. */
  45836. #undef __BSD_SOURCE
  45837. -/* Enable extensions on Solaris. */
  45838. -#ifndef __EXTENSIONS__
  45839. -# undef __EXTENSIONS__
  45840. -#endif
  45841. -#ifndef _POSIX_PTHREAD_SEMANTICS
  45842. -# undef _POSIX_PTHREAD_SEMANTICS
  45843. -#endif
  45844. -#ifndef _TANDEM_SOURCE
  45845. -# undef _TANDEM_SOURCE
  45846. -#endif
  45847. -
  45848. /* Define if we should favor the BSD APIs when possible in Linux. */
  45849. #undef __FAVOR_BSD
  45850. diff -Nur libnet-1.1.5.orig/include/config.h.in~ libnet-1.1.5/include/config.h.in~
  45851. --- libnet-1.1.5.orig/include/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  45852. +++ libnet-1.1.5/include/config.h.in~ 2010-11-09 01:48:04.000000000 +0100
  45853. @@ -0,0 +1,213 @@
  45854. +/* include/config.h.in. Generated from configure.in by autoheader. */
  45855. +
  45856. +/* Define if /dev/dlpi is a directory. */
  45857. +#undef DLPI_DEV_PREFIX
  45858. +
  45859. +/* Define if /dev/dlpi is available. */
  45860. +#undef HAVE_DEV_DLPI
  45861. +
  45862. +/* Define to 1 if you have the <dlfcn.h> header file. */
  45863. +#undef HAVE_DLFCN_H
  45864. +
  45865. +/* Define if the <sys/dlpi.h> header exists. */
  45866. +#undef HAVE_DLPI
  45867. +
  45868. +/* Define to 1 if you have the `gethostbyname2' function. */
  45869. +#undef HAVE_GETHOSTBYNAME2
  45870. +
  45871. +/* Define if we're building on HP/UX. */
  45872. +#undef HAVE_HPUX11
  45873. +
  45874. +/* Define to 1 if you have the <inttypes.h> header file. */
  45875. +#undef HAVE_INTTYPES_H
  45876. +
  45877. +/* Define to 1 if you have the `nsl' library (-lnsl). */
  45878. +#undef HAVE_LIBNSL
  45879. +
  45880. +/* Define to 1 if you have the `packet' library (-lpacket). */
  45881. +#undef HAVE_LIBPACKET
  45882. +
  45883. +/* Define to 1 if you have the `resolv' library (-lresolv). */
  45884. +#undef HAVE_LIBRESOLV
  45885. +
  45886. +/* Define to 1 if you have the `socket' library (-lsocket). */
  45887. +#undef HAVE_LIBSOCKET
  45888. +
  45889. +/* Define to 1 if you have the `wpcap' library (-lwpcap). */
  45890. +#undef HAVE_LIBWPCAP
  45891. +
  45892. +/* Define if you have the Linux /proc filesystem. */
  45893. +#undef HAVE_LINUX_PROCFS
  45894. +
  45895. +/* Define to 1 if you have the <linux/socket.h> header file. */
  45896. +#undef HAVE_LINUX_SOCKET_H
  45897. +
  45898. +/* Define to 1 if you have the <memory.h> header file. */
  45899. +#undef HAVE_MEMORY_H
  45900. +
  45901. +/* Define to 1 if you have the <net/ethernet.h> header file. */
  45902. +#undef HAVE_NET_ETHERNET_H
  45903. +
  45904. +/* Define to 1 if you have the <net/pfilt.h> header file. */
  45905. +#undef HAVE_NET_PFILT_H
  45906. +
  45907. +/* Define to 1 if you have the <net/raw.h> header file. */
  45908. +#undef HAVE_NET_RAW_H
  45909. +
  45910. +/* Define if we're running on a Linux system with PF_PACKET sockets. */
  45911. +#undef HAVE_PACKET_SOCKET
  45912. +
  45913. +/* Define if the sockaddr structure includes a sa_len member. */
  45914. +#undef HAVE_SOCKADDR_SA_LEN
  45915. +
  45916. +/* Define if we are running on Solaris. */
  45917. +#undef HAVE_SOLARIS
  45918. +
  45919. +/* Define if our version of Solaris supports IPv6. */
  45920. +#undef HAVE_SOLARIS_IPV6
  45921. +
  45922. +/* Define to 1 if you have the <stdint.h> header file. */
  45923. +#undef HAVE_STDINT_H
  45924. +
  45925. +/* Define to 1 if you have the <stdlib.h> header file. */
  45926. +#undef HAVE_STDLIB_H
  45927. +
  45928. +/* Define to 1 if you have the <strings.h> header file. */
  45929. +#undef HAVE_STRINGS_H
  45930. +
  45931. +/* Define to 1 if you have the <string.h> header file. */
  45932. +#undef HAVE_STRING_H
  45933. +
  45934. +/* Define to 1 if you have the <sys/bufmod.h> header file. */
  45935. +#undef HAVE_SYS_BUFMOD_H
  45936. +
  45937. +/* Define to 1 if you have the <sys/dlpi_ext.h> header file. */
  45938. +#undef HAVE_SYS_DLPI_EXT_H
  45939. +
  45940. +/* Define to 1 if you have the <sys/dlpi.h> header file. */
  45941. +#undef HAVE_SYS_DLPI_H
  45942. +
  45943. +/* Define to 1 if you have the <sys/net/nit.h> header file. */
  45944. +#undef HAVE_SYS_NET_NIT_H
  45945. +
  45946. +/* Define to 1 if you have the <sys/sockio.h> header file. */
  45947. +#undef HAVE_SYS_SOCKIO_H
  45948. +
  45949. +/* Define to 1 if you have the <sys/stat.h> header file. */
  45950. +#undef HAVE_SYS_STAT_H
  45951. +
  45952. +/* Define to 1 if you have the <sys/types.h> header file. */
  45953. +#undef HAVE_SYS_TYPES_H
  45954. +
  45955. +/* Define to 1 if you have the <unistd.h> header file. */
  45956. +#undef HAVE_UNISTD_H
  45957. +
  45958. +/* We are running on a big-endian machine. */
  45959. +#undef LIBNET_BIG_ENDIAN
  45960. +
  45961. +/* Define if our build OS supports the BSD APIs */
  45962. +#undef LIBNET_BSDISH_OS
  45963. +
  45964. +/* Define if libnet should byteswap data. */
  45965. +#undef LIBNET_BSD_BYTE_SWAP
  45966. +
  45967. +/* We are running on a little-endian machine. */
  45968. +#undef LIBNET_LIL_ENDIAN
  45969. +
  45970. +/* Define if snprintf() is unavailable on our system. */
  45971. +#undef NO_SNPRINTF
  45972. +
  45973. +/* Name of package */
  45974. +#undef PACKAGE
  45975. +
  45976. +/* Define to the address where bug reports for this package should be sent. */
  45977. +#undef PACKAGE_BUGREPORT
  45978. +
  45979. +/* Define to the full name of this package. */
  45980. +#undef PACKAGE_NAME
  45981. +
  45982. +/* Define to the full name and version of this package. */
  45983. +#undef PACKAGE_STRING
  45984. +
  45985. +/* Define to the one symbol short name of this package. */
  45986. +#undef PACKAGE_TARNAME
  45987. +
  45988. +/* Define to the version of this package. */
  45989. +#undef PACKAGE_VERSION
  45990. +
  45991. +/* Define to 1 if you have the ANSI C header files. */
  45992. +#undef STDC_HEADERS
  45993. +
  45994. +/* Define if our version of Solaris has broken checksums. */
  45995. +#undef STUPID_SOLARIS_CHECKSUM_BUG
  45996. +
  45997. +/* Version number of package */
  45998. +#undef VERSION
  45999. +
  46000. +/* Define to 1 if your processor stores words with the most significant byte
  46001. + first (like Motorola and SPARC, unlike Intel and VAX). */
  46002. +#undef WORDS_BIGENDIAN
  46003. +
  46004. +/* Define to 1 if on AIX 3.
  46005. + System headers sometimes define this.
  46006. + We just want to avoid a redefinition error message. */
  46007. +#ifndef _ALL_SOURCE
  46008. +# undef _ALL_SOURCE
  46009. +#endif
  46010. +
  46011. +/* Define as necessary to "unhide" header symbols. */
  46012. +#undef _BSD_SOURCE
  46013. +
  46014. +/* Enable GNU extensions on systems that have them. */
  46015. +#ifndef _GNU_SOURCE
  46016. +# undef _GNU_SOURCE
  46017. +#endif
  46018. +
  46019. +/* Define to 1 if on MINIX. */
  46020. +#undef _MINIX
  46021. +
  46022. +/* Define to 2 if the system does not provide POSIX.1 features except with
  46023. + this defined. */
  46024. +#undef _POSIX_1_SOURCE
  46025. +
  46026. +/* Define to 1 if you need to in order for `stat' and other things to work. */
  46027. +#undef _POSIX_SOURCE
  46028. +
  46029. +/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
  46030. + <pthread.h>, or <semaphore.h> is not used. If the typedef was allowed, the
  46031. + #define below would cause a syntax error. */
  46032. +#undef _UINT32_T
  46033. +
  46034. +/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
  46035. + <pthread.h>, or <semaphore.h> is not used. If the typedef was allowed, the
  46036. + #define below would cause a syntax error. */
  46037. +#undef _UINT64_T
  46038. +
  46039. +/* Define as necessary to "unhide" header symbols. */
  46040. +#undef __BSD_SOURCE
  46041. +
  46042. +/* Enable extensions on Solaris. */
  46043. +#ifndef __EXTENSIONS__
  46044. +# undef __EXTENSIONS__
  46045. +#endif
  46046. +#ifndef _POSIX_PTHREAD_SEMANTICS
  46047. +# undef _POSIX_PTHREAD_SEMANTICS
  46048. +#endif
  46049. +#ifndef _TANDEM_SOURCE
  46050. +# undef _TANDEM_SOURCE
  46051. +#endif
  46052. +
  46053. +/* Define if we should favor the BSD APIs when possible in Linux. */
  46054. +#undef __FAVOR_BSD
  46055. +
  46056. +/* Define to the type of an unsigned integer type of width exactly 16 bits if
  46057. + such a type exists and the standard includes do not define it. */
  46058. +#undef uint16_t
  46059. +
  46060. +/* Define to the type of an unsigned integer type of width exactly 32 bits if
  46061. + such a type exists and the standard includes do not define it. */
  46062. +#undef uint32_t
  46063. +
  46064. +/* Define to the type of an unsigned integer type of width exactly 64 bits if
  46065. + such a type exists and the standard includes do not define it. */
  46066. +#undef uint64_t
  46067. diff -Nur libnet-1.1.5.orig/include/libnet/Makefile.in libnet-1.1.5/include/libnet/Makefile.in
  46068. --- libnet-1.1.5.orig/include/libnet/Makefile.in 2010-11-09 01:48:07.000000000 +0100
  46069. +++ libnet-1.1.5/include/libnet/Makefile.in 2011-02-24 19:45:54.463552068 +0100
  46070. @@ -1,8 +1,9 @@
  46071. -# Makefile.in generated by automake 1.10 from Makefile.am.
  46072. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  46073. # @configure_input@
  46074. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  46075. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  46076. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  46077. +# Inc.
  46078. # This Makefile.in is free software; the Free Software Foundation
  46079. # gives unlimited permission to copy and/or distribute it,
  46080. # with or without modifications, as long as this notice is preserved.
  46081. @@ -25,8 +26,9 @@
  46082. VPATH = @srcdir@
  46083. pkgdatadir = $(datadir)/@PACKAGE@
  46084. -pkglibdir = $(libdir)/@PACKAGE@
  46085. pkgincludedir = $(includedir)/@PACKAGE@
  46086. +pkglibdir = $(libdir)/@PACKAGE@
  46087. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  46088. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  46089. install_sh_DATA = $(install_sh) -c -m 644
  46090. install_sh_PROGRAM = $(install_sh) -c
  46091. @@ -53,6 +55,7 @@
  46092. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  46093. CONFIG_HEADER = $(top_builddir)/include/config.h
  46094. CONFIG_CLEAN_FILES =
  46095. +CONFIG_CLEAN_VPATH_FILES =
  46096. depcomp =
  46097. am__depfiles_maybe =
  46098. SOURCES =
  46099. @@ -62,9 +65,23 @@
  46100. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  46101. *) f=$$p;; \
  46102. esac;
  46103. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  46104. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  46105. +am__install_max = 40
  46106. +am__nobase_strip_setup = \
  46107. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  46108. +am__nobase_strip = \
  46109. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  46110. +am__nobase_list = $(am__nobase_strip_setup); \
  46111. + for p in $$list; do echo "$$p $$p"; done | \
  46112. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  46113. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  46114. + if (++n[$$2] == $(am__install_max)) \
  46115. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  46116. + END { for (dir in files) print dir, files[dir] }'
  46117. +am__base_list = \
  46118. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  46119. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  46120. am__installdirs = "$(DESTDIR)$(libnetincludedir)"
  46121. -libnetincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  46122. HEADERS = $(libnetinclude_HEADERS)
  46123. ETAGS = etags
  46124. CTAGS = ctags
  46125. @@ -82,22 +99,18 @@
  46126. CFLAGS = @CFLAGS@
  46127. CPP = @CPP@
  46128. CPPFLAGS = @CPPFLAGS@
  46129. -CXX = @CXX@
  46130. -CXXCPP = @CXXCPP@
  46131. -CXXDEPMODE = @CXXDEPMODE@
  46132. -CXXFLAGS = @CXXFLAGS@
  46133. CYGPATH_W = @CYGPATH_W@
  46134. DEFS = @DEFS@
  46135. DEPDIR = @DEPDIR@
  46136. -ECHO = @ECHO@
  46137. +DSYMUTIL = @DSYMUTIL@
  46138. +DUMPBIN = @DUMPBIN@
  46139. ECHO_C = @ECHO_C@
  46140. ECHO_N = @ECHO_N@
  46141. ECHO_T = @ECHO_T@
  46142. EGREP = @EGREP@
  46143. ENDIANESS = @ENDIANESS@
  46144. EXEEXT = @EXEEXT@
  46145. -F77 = @F77@
  46146. -FFLAGS = @FFLAGS@
  46147. +FGREP = @FGREP@
  46148. GREP = @GREP@
  46149. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  46150. INSTALL = @INSTALL@
  46151. @@ -105,6 +118,7 @@
  46152. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46153. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46154. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46155. +LD = @LD@
  46156. LDFLAGS = @LDFLAGS@
  46157. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  46158. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  46159. @@ -112,17 +126,24 @@
  46160. LIBOBJS = @LIBOBJS@
  46161. LIBS = @LIBS@
  46162. LIBTOOL = @LIBTOOL@
  46163. +LIPO = @LIPO@
  46164. LN_S = @LN_S@
  46165. LTLIBOBJS = @LTLIBOBJS@
  46166. MAINT = @MAINT@
  46167. MAKEINFO = @MAKEINFO@
  46168. MKDIR_P = @MKDIR_P@
  46169. +NM = @NM@
  46170. +NMEDIT = @NMEDIT@
  46171. +OBJDUMP = @OBJDUMP@
  46172. OBJEXT = @OBJEXT@
  46173. +OTOOL = @OTOOL@
  46174. +OTOOL64 = @OTOOL64@
  46175. PACKAGE = @PACKAGE@
  46176. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  46177. PACKAGE_NAME = @PACKAGE_NAME@
  46178. PACKAGE_STRING = @PACKAGE_STRING@
  46179. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  46180. +PACKAGE_URL = @PACKAGE_URL@
  46181. PACKAGE_VERSION = @PACKAGE_VERSION@
  46182. PATH_SEPARATOR = @PATH_SEPARATOR@
  46183. RANLIB = @RANLIB@
  46184. @@ -136,8 +157,7 @@
  46185. abs_top_builddir = @abs_top_builddir@
  46186. abs_top_srcdir = @abs_top_srcdir@
  46187. ac_ct_CC = @ac_ct_CC@
  46188. -ac_ct_CXX = @ac_ct_CXX@
  46189. -ac_ct_F77 = @ac_ct_F77@
  46190. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  46191. am__include = @am__include@
  46192. am__leading_dot = @am__leading_dot@
  46193. am__quote = @am__quote@
  46194. @@ -168,6 +188,7 @@
  46195. libexecdir = @libexecdir@
  46196. localedir = @localedir@
  46197. localstatedir = @localstatedir@
  46198. +lt_ECHO = @lt_ECHO@
  46199. mandir = @mandir@
  46200. mkdir_p = @mkdir_p@
  46201. oldincludedir = @oldincludedir@
  46202. @@ -184,6 +205,7 @@
  46203. target_cpu = @target_cpu@
  46204. target_os = @target_os@
  46205. target_vendor = @target_vendor@
  46206. +top_build_prefix = @top_build_prefix@
  46207. top_builddir = @top_builddir@
  46208. top_srcdir = @top_srcdir@
  46209. AUTOMAKE_OPTIONS = foreign no-dependencies
  46210. @@ -205,14 +227,14 @@
  46211. @for dep in $?; do \
  46212. case '$(am__configure_deps)' in \
  46213. *$$dep*) \
  46214. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  46215. - && exit 0; \
  46216. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  46217. + && { if test -f $@; then exit 0; else break; fi; }; \
  46218. exit 1;; \
  46219. esac; \
  46220. done; \
  46221. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/libnet/Makefile'; \
  46222. - cd $(top_srcdir) && \
  46223. - $(AUTOMAKE) --foreign include/libnet/Makefile
  46224. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/libnet/Makefile'; \
  46225. + $(am__cd) $(top_srcdir) && \
  46226. + $(AUTOMAKE) --foreign include/libnet/Makefile
  46227. .PRECIOUS: Makefile
  46228. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  46229. @case '$?' in \
  46230. @@ -230,6 +252,7 @@
  46231. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46232. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  46233. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46234. +$(am__aclocal_m4_deps):
  46235. mostlyclean-libtool:
  46236. -rm -f *.lo
  46237. @@ -239,65 +262,72 @@
  46238. install-libnetincludeHEADERS: $(libnetinclude_HEADERS)
  46239. @$(NORMAL_INSTALL)
  46240. test -z "$(libnetincludedir)" || $(MKDIR_P) "$(DESTDIR)$(libnetincludedir)"
  46241. - @list='$(libnetinclude_HEADERS)'; for p in $$list; do \
  46242. + @list='$(libnetinclude_HEADERS)'; test -n "$(libnetincludedir)" || list=; \
  46243. + for p in $$list; do \
  46244. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  46245. - f=$(am__strip_dir) \
  46246. - echo " $(libnetincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(libnetincludedir)/$$f'"; \
  46247. - $(libnetincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(libnetincludedir)/$$f"; \
  46248. + echo "$$d$$p"; \
  46249. + done | $(am__base_list) | \
  46250. + while read files; do \
  46251. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libnetincludedir)'"; \
  46252. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(libnetincludedir)" || exit $$?; \
  46253. done
  46254. uninstall-libnetincludeHEADERS:
  46255. @$(NORMAL_UNINSTALL)
  46256. - @list='$(libnetinclude_HEADERS)'; for p in $$list; do \
  46257. - f=$(am__strip_dir) \
  46258. - echo " rm -f '$(DESTDIR)$(libnetincludedir)/$$f'"; \
  46259. - rm -f "$(DESTDIR)$(libnetincludedir)/$$f"; \
  46260. - done
  46261. + @list='$(libnetinclude_HEADERS)'; test -n "$(libnetincludedir)" || list=; \
  46262. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  46263. + test -n "$$files" || exit 0; \
  46264. + echo " ( cd '$(DESTDIR)$(libnetincludedir)' && rm -f" $$files ")"; \
  46265. + cd "$(DESTDIR)$(libnetincludedir)" && rm -f $$files
  46266. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  46267. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46268. unique=`for i in $$list; do \
  46269. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46270. done | \
  46271. - $(AWK) ' { files[$$0] = 1; } \
  46272. - END { for (i in files) print i; }'`; \
  46273. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46274. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46275. mkid -fID $$unique
  46276. tags: TAGS
  46277. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46278. $(TAGS_FILES) $(LISP)
  46279. - tags=; \
  46280. + set x; \
  46281. here=`pwd`; \
  46282. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46283. unique=`for i in $$list; do \
  46284. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46285. done | \
  46286. - $(AWK) ' { files[$$0] = 1; } \
  46287. - END { for (i in files) print i; }'`; \
  46288. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  46289. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46290. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46291. + shift; \
  46292. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  46293. test -n "$$unique" || unique=$$empty_fix; \
  46294. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46295. - $$tags $$unique; \
  46296. + if test $$# -gt 0; then \
  46297. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46298. + "$$@" $$unique; \
  46299. + else \
  46300. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46301. + $$unique; \
  46302. + fi; \
  46303. fi
  46304. ctags: CTAGS
  46305. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46306. $(TAGS_FILES) $(LISP)
  46307. - tags=; \
  46308. - here=`pwd`; \
  46309. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46310. unique=`for i in $$list; do \
  46311. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46312. done | \
  46313. - $(AWK) ' { files[$$0] = 1; } \
  46314. - END { for (i in files) print i; }'`; \
  46315. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  46316. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46317. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46318. + test -z "$(CTAGS_ARGS)$$unique" \
  46319. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  46320. - $$tags $$unique
  46321. + $$unique
  46322. GTAGS:
  46323. here=`$(am__cd) $(top_builddir) && pwd` \
  46324. - && cd $(top_srcdir) \
  46325. - && gtags -i $(GTAGS_ARGS) $$here
  46326. + && $(am__cd) $(top_srcdir) \
  46327. + && gtags -i $(GTAGS_ARGS) "$$here"
  46328. distclean-tags:
  46329. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  46330. @@ -318,13 +348,17 @@
  46331. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  46332. if test -d $$d/$$file; then \
  46333. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  46334. + if test -d "$(distdir)/$$file"; then \
  46335. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46336. + fi; \
  46337. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  46338. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  46339. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  46340. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46341. fi; \
  46342. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  46343. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  46344. else \
  46345. - test -f $(distdir)/$$file \
  46346. - || cp -p $$d/$$file $(distdir)/$$file \
  46347. + test -f "$(distdir)/$$file" \
  46348. + || cp -p $$d/$$file "$(distdir)/$$file" \
  46349. || exit 1; \
  46350. fi; \
  46351. done
  46352. @@ -355,6 +389,7 @@
  46353. distclean-generic:
  46354. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  46355. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  46356. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  46357. maintainer-clean-generic:
  46358. @@ -374,6 +409,8 @@
  46359. html: html-am
  46360. +html-am:
  46361. +
  46362. info: info-am
  46363. info-am:
  46364. @@ -382,18 +419,28 @@
  46365. install-dvi: install-dvi-am
  46366. +install-dvi-am:
  46367. +
  46368. install-exec-am:
  46369. install-html: install-html-am
  46370. +install-html-am:
  46371. +
  46372. install-info: install-info-am
  46373. +install-info-am:
  46374. +
  46375. install-man:
  46376. install-pdf: install-pdf-am
  46377. +install-pdf-am:
  46378. +
  46379. install-ps: install-ps-am
  46380. +install-ps-am:
  46381. +
  46382. installcheck-am:
  46383. maintainer-clean: maintainer-clean-am
  46384. @@ -429,6 +476,7 @@
  46385. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  46386. tags uninstall uninstall-am uninstall-libnetincludeHEADERS
  46387. +
  46388. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  46389. # Otherwise a system limit (for SysV at least) may be exceeded.
  46390. .NOEXPORT:
  46391. diff -Nur libnet-1.1.5.orig/include/Makefile.in libnet-1.1.5/include/Makefile.in
  46392. --- libnet-1.1.5.orig/include/Makefile.in 2010-11-09 01:48:07.000000000 +0100
  46393. +++ libnet-1.1.5/include/Makefile.in 2011-02-24 19:45:54.413555543 +0100
  46394. @@ -1,8 +1,9 @@
  46395. -# Makefile.in generated by automake 1.10 from Makefile.am.
  46396. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  46397. # @configure_input@
  46398. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  46399. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  46400. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  46401. +# Inc.
  46402. # This Makefile.in is free software; the Free Software Foundation
  46403. # gives unlimited permission to copy and/or distribute it,
  46404. # with or without modifications, as long as this notice is preserved.
  46405. @@ -25,8 +26,9 @@
  46406. VPATH = @srcdir@
  46407. pkgdatadir = $(datadir)/@PACKAGE@
  46408. -pkglibdir = $(libdir)/@PACKAGE@
  46409. pkgincludedir = $(includedir)/@PACKAGE@
  46410. +pkglibdir = $(libdir)/@PACKAGE@
  46411. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  46412. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  46413. install_sh_DATA = $(install_sh) -c -m 644
  46414. install_sh_PROGRAM = $(install_sh) -c
  46415. @@ -54,6 +56,7 @@
  46416. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  46417. CONFIG_HEADER = config.h
  46418. CONFIG_CLEAN_FILES = libnet.h
  46419. +CONFIG_CLEAN_VPATH_FILES =
  46420. depcomp =
  46421. am__depfiles_maybe =
  46422. SOURCES =
  46423. @@ -70,16 +73,58 @@
  46424. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  46425. *) f=$$p;; \
  46426. esac;
  46427. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  46428. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  46429. +am__install_max = 40
  46430. +am__nobase_strip_setup = \
  46431. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  46432. +am__nobase_strip = \
  46433. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  46434. +am__nobase_list = $(am__nobase_strip_setup); \
  46435. + for p in $$list; do echo "$$p $$p"; done | \
  46436. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  46437. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  46438. + if (++n[$$2] == $(am__install_max)) \
  46439. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  46440. + END { for (dir in files) print dir, files[dir] }'
  46441. +am__base_list = \
  46442. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  46443. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  46444. am__installdirs = "$(DESTDIR)$(includedir)"
  46445. -nodist_includeHEADERS_INSTALL = $(INSTALL_HEADER)
  46446. HEADERS = $(nodist_include_HEADERS)
  46447. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  46448. distclean-recursive maintainer-clean-recursive
  46449. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  46450. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  46451. + distdir
  46452. ETAGS = etags
  46453. CTAGS = ctags
  46454. DIST_SUBDIRS = $(SUBDIRS)
  46455. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  46456. +am__relativize = \
  46457. + dir0=`pwd`; \
  46458. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  46459. + sed_rest='s,^[^/]*/*,,'; \
  46460. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  46461. + sed_butlast='s,/*[^/]*$$,,'; \
  46462. + while test -n "$$dir1"; do \
  46463. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  46464. + if test "$$first" != "."; then \
  46465. + if test "$$first" = ".."; then \
  46466. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  46467. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  46468. + else \
  46469. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  46470. + if test "$$first2" = "$$first"; then \
  46471. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  46472. + else \
  46473. + dir2="../$$dir2"; \
  46474. + fi; \
  46475. + dir0="$$dir0"/"$$first"; \
  46476. + fi; \
  46477. + fi; \
  46478. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  46479. + done; \
  46480. + reldir="$$dir2"
  46481. ACLOCAL = @ACLOCAL@
  46482. ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
  46483. AMTAR = @AMTAR@
  46484. @@ -93,22 +138,18 @@
  46485. CFLAGS = @CFLAGS@
  46486. CPP = @CPP@
  46487. CPPFLAGS = @CPPFLAGS@
  46488. -CXX = @CXX@
  46489. -CXXCPP = @CXXCPP@
  46490. -CXXDEPMODE = @CXXDEPMODE@
  46491. -CXXFLAGS = @CXXFLAGS@
  46492. CYGPATH_W = @CYGPATH_W@
  46493. DEFS = @DEFS@
  46494. DEPDIR = @DEPDIR@
  46495. -ECHO = @ECHO@
  46496. +DSYMUTIL = @DSYMUTIL@
  46497. +DUMPBIN = @DUMPBIN@
  46498. ECHO_C = @ECHO_C@
  46499. ECHO_N = @ECHO_N@
  46500. ECHO_T = @ECHO_T@
  46501. EGREP = @EGREP@
  46502. ENDIANESS = @ENDIANESS@
  46503. EXEEXT = @EXEEXT@
  46504. -F77 = @F77@
  46505. -FFLAGS = @FFLAGS@
  46506. +FGREP = @FGREP@
  46507. GREP = @GREP@
  46508. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  46509. INSTALL = @INSTALL@
  46510. @@ -116,6 +157,7 @@
  46511. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46512. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46513. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46514. +LD = @LD@
  46515. LDFLAGS = @LDFLAGS@
  46516. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  46517. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  46518. @@ -123,17 +165,24 @@
  46519. LIBOBJS = @LIBOBJS@
  46520. LIBS = @LIBS@
  46521. LIBTOOL = @LIBTOOL@
  46522. +LIPO = @LIPO@
  46523. LN_S = @LN_S@
  46524. LTLIBOBJS = @LTLIBOBJS@
  46525. MAINT = @MAINT@
  46526. MAKEINFO = @MAKEINFO@
  46527. MKDIR_P = @MKDIR_P@
  46528. +NM = @NM@
  46529. +NMEDIT = @NMEDIT@
  46530. +OBJDUMP = @OBJDUMP@
  46531. OBJEXT = @OBJEXT@
  46532. +OTOOL = @OTOOL@
  46533. +OTOOL64 = @OTOOL64@
  46534. PACKAGE = @PACKAGE@
  46535. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  46536. PACKAGE_NAME = @PACKAGE_NAME@
  46537. PACKAGE_STRING = @PACKAGE_STRING@
  46538. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  46539. +PACKAGE_URL = @PACKAGE_URL@
  46540. PACKAGE_VERSION = @PACKAGE_VERSION@
  46541. PATH_SEPARATOR = @PATH_SEPARATOR@
  46542. RANLIB = @RANLIB@
  46543. @@ -147,8 +196,7 @@
  46544. abs_top_builddir = @abs_top_builddir@
  46545. abs_top_srcdir = @abs_top_srcdir@
  46546. ac_ct_CC = @ac_ct_CC@
  46547. -ac_ct_CXX = @ac_ct_CXX@
  46548. -ac_ct_F77 = @ac_ct_F77@
  46549. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  46550. am__include = @am__include@
  46551. am__leading_dot = @am__leading_dot@
  46552. am__quote = @am__quote@
  46553. @@ -179,6 +227,7 @@
  46554. libexecdir = @libexecdir@
  46555. localedir = @localedir@
  46556. localstatedir = @localstatedir@
  46557. +lt_ECHO = @lt_ECHO@
  46558. mandir = @mandir@
  46559. mkdir_p = @mkdir_p@
  46560. oldincludedir = @oldincludedir@
  46561. @@ -195,6 +244,7 @@
  46562. target_cpu = @target_cpu@
  46563. target_os = @target_os@
  46564. target_vendor = @target_vendor@
  46565. +top_build_prefix = @top_build_prefix@
  46566. top_builddir = @top_builddir@
  46567. top_srcdir = @top_srcdir@
  46568. AUTOMAKE_OPTIONS = foreign no-dependencies
  46569. @@ -212,14 +262,14 @@
  46570. @for dep in $?; do \
  46571. case '$(am__configure_deps)' in \
  46572. *$$dep*) \
  46573. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  46574. - && exit 0; \
  46575. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  46576. + && { if test -f $@; then exit 0; else break; fi; }; \
  46577. exit 1;; \
  46578. esac; \
  46579. done; \
  46580. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
  46581. - cd $(top_srcdir) && \
  46582. - $(AUTOMAKE) --foreign include/Makefile
  46583. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
  46584. + $(am__cd) $(top_srcdir) && \
  46585. + $(AUTOMAKE) --foreign include/Makefile
  46586. .PRECIOUS: Makefile
  46587. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  46588. @case '$?' in \
  46589. @@ -237,6 +287,7 @@
  46590. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46591. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  46592. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46593. +$(am__aclocal_m4_deps):
  46594. config.h: stamp-h1
  46595. @if test ! -f $@; then \
  46596. @@ -248,7 +299,7 @@
  46597. @rm -f stamp-h1
  46598. cd $(top_builddir) && $(SHELL) ./config.status include/config.h
  46599. $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  46600. - cd $(top_srcdir) && $(AUTOHEADER)
  46601. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  46602. rm -f stamp-h1
  46603. touch $@
  46604. @@ -265,20 +316,23 @@
  46605. install-nodist_includeHEADERS: $(nodist_include_HEADERS)
  46606. @$(NORMAL_INSTALL)
  46607. test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  46608. - @list='$(nodist_include_HEADERS)'; for p in $$list; do \
  46609. + @list='$(nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \
  46610. + for p in $$list; do \
  46611. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  46612. - f=$(am__strip_dir) \
  46613. - echo " $(nodist_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  46614. - $(nodist_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  46615. + echo "$$d$$p"; \
  46616. + done | $(am__base_list) | \
  46617. + while read files; do \
  46618. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  46619. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  46620. done
  46621. uninstall-nodist_includeHEADERS:
  46622. @$(NORMAL_UNINSTALL)
  46623. - @list='$(nodist_include_HEADERS)'; for p in $$list; do \
  46624. - f=$(am__strip_dir) \
  46625. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  46626. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  46627. - done
  46628. + @list='$(nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \
  46629. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  46630. + test -n "$$files" || exit 0; \
  46631. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  46632. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  46633. # This directory's subdirectories are mostly independent; you can cd
  46634. # into them and run `make' without going through this Makefile.
  46635. @@ -287,7 +341,7 @@
  46636. # (which will cause the Makefiles to be regenerated when you run `make');
  46637. # (2) otherwise, pass the desired values on the `make' command line.
  46638. $(RECURSIVE_TARGETS):
  46639. - @failcom='exit 1'; \
  46640. + @fail= failcom='exit 1'; \
  46641. for f in x $$MAKEFLAGS; do \
  46642. case $$f in \
  46643. *=* | --[!k]*);; \
  46644. @@ -304,7 +358,7 @@
  46645. else \
  46646. local_target="$$target"; \
  46647. fi; \
  46648. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46649. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46650. || eval $$failcom; \
  46651. done; \
  46652. if test "$$dot_seen" = "no"; then \
  46653. @@ -312,7 +366,7 @@
  46654. fi; test -z "$$fail"
  46655. $(RECURSIVE_CLEAN_TARGETS):
  46656. - @failcom='exit 1'; \
  46657. + @fail= failcom='exit 1'; \
  46658. for f in x $$MAKEFLAGS; do \
  46659. case $$f in \
  46660. *=* | --[!k]*);; \
  46661. @@ -338,16 +392,16 @@
  46662. else \
  46663. local_target="$$target"; \
  46664. fi; \
  46665. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46666. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46667. || eval $$failcom; \
  46668. done && test -z "$$fail"
  46669. tags-recursive:
  46670. list='$(SUBDIRS)'; for subdir in $$list; do \
  46671. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  46672. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  46673. done
  46674. ctags-recursive:
  46675. list='$(SUBDIRS)'; for subdir in $$list; do \
  46676. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  46677. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  46678. done
  46679. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  46680. @@ -355,14 +409,14 @@
  46681. unique=`for i in $$list; do \
  46682. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46683. done | \
  46684. - $(AWK) ' { files[$$0] = 1; } \
  46685. - END { for (i in files) print i; }'`; \
  46686. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46687. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46688. mkid -fID $$unique
  46689. tags: TAGS
  46690. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  46691. $(TAGS_FILES) $(LISP)
  46692. - tags=; \
  46693. + set x; \
  46694. here=`pwd`; \
  46695. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  46696. include_option=--etags-include; \
  46697. @@ -374,39 +428,43 @@
  46698. list='$(SUBDIRS)'; for subdir in $$list; do \
  46699. if test "$$subdir" = .; then :; else \
  46700. test ! -f $$subdir/TAGS || \
  46701. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  46702. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  46703. fi; \
  46704. done; \
  46705. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  46706. unique=`for i in $$list; do \
  46707. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46708. done | \
  46709. - $(AWK) ' { files[$$0] = 1; } \
  46710. - END { for (i in files) print i; }'`; \
  46711. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  46712. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46713. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46714. + shift; \
  46715. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  46716. test -n "$$unique" || unique=$$empty_fix; \
  46717. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46718. - $$tags $$unique; \
  46719. + if test $$# -gt 0; then \
  46720. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46721. + "$$@" $$unique; \
  46722. + else \
  46723. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46724. + $$unique; \
  46725. + fi; \
  46726. fi
  46727. ctags: CTAGS
  46728. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  46729. $(TAGS_FILES) $(LISP)
  46730. - tags=; \
  46731. - here=`pwd`; \
  46732. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  46733. unique=`for i in $$list; do \
  46734. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46735. done | \
  46736. - $(AWK) ' { files[$$0] = 1; } \
  46737. - END { for (i in files) print i; }'`; \
  46738. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  46739. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46740. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46741. + test -z "$(CTAGS_ARGS)$$unique" \
  46742. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  46743. - $$tags $$unique
  46744. + $$unique
  46745. GTAGS:
  46746. here=`$(am__cd) $(top_builddir) && pwd` \
  46747. - && cd $(top_srcdir) \
  46748. - && gtags -i $(GTAGS_ARGS) $$here
  46749. + && $(am__cd) $(top_srcdir) \
  46750. + && gtags -i $(GTAGS_ARGS) "$$here"
  46751. distclean-tags:
  46752. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  46753. @@ -427,29 +485,44 @@
  46754. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  46755. if test -d $$d/$$file; then \
  46756. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  46757. + if test -d "$(distdir)/$$file"; then \
  46758. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46759. + fi; \
  46760. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  46761. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  46762. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  46763. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46764. fi; \
  46765. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  46766. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  46767. else \
  46768. - test -f $(distdir)/$$file \
  46769. - || cp -p $$d/$$file $(distdir)/$$file \
  46770. + test -f "$(distdir)/$$file" \
  46771. + || cp -p $$d/$$file "$(distdir)/$$file" \
  46772. || exit 1; \
  46773. fi; \
  46774. done
  46775. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46776. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46777. if test "$$subdir" = .; then :; else \
  46778. test -d "$(distdir)/$$subdir" \
  46779. || $(MKDIR_P) "$(distdir)/$$subdir" \
  46780. || exit 1; \
  46781. - distdir=`$(am__cd) $(distdir) && pwd`; \
  46782. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  46783. - (cd $$subdir && \
  46784. + fi; \
  46785. + done
  46786. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46787. + if test "$$subdir" = .; then :; else \
  46788. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  46789. + $(am__relativize); \
  46790. + new_distdir=$$reldir; \
  46791. + dir1=$$subdir; dir2="$(top_distdir)"; \
  46792. + $(am__relativize); \
  46793. + new_top_distdir=$$reldir; \
  46794. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  46795. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  46796. + ($(am__cd) $$subdir && \
  46797. $(MAKE) $(AM_MAKEFLAGS) \
  46798. - top_distdir="$$top_distdir" \
  46799. - distdir="$$distdir/$$subdir" \
  46800. + top_distdir="$$new_top_distdir" \
  46801. + distdir="$$new_distdir" \
  46802. am__remove_distdir=: \
  46803. am__skip_length_check=: \
  46804. + am__skip_mode_fix=: \
  46805. distdir) \
  46806. || exit 1; \
  46807. fi; \
  46808. @@ -482,6 +555,7 @@
  46809. distclean-generic:
  46810. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  46811. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  46812. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  46813. maintainer-clean-generic:
  46814. @@ -501,6 +575,8 @@
  46815. html: html-recursive
  46816. +html-am:
  46817. +
  46818. info: info-recursive
  46819. info-am:
  46820. @@ -509,18 +585,28 @@
  46821. install-dvi: install-dvi-recursive
  46822. +install-dvi-am:
  46823. +
  46824. install-exec-am:
  46825. install-html: install-html-recursive
  46826. +install-html-am:
  46827. +
  46828. install-info: install-info-recursive
  46829. +install-info-am:
  46830. +
  46831. install-man:
  46832. install-pdf: install-pdf-recursive
  46833. +install-pdf-am:
  46834. +
  46835. install-ps: install-ps-recursive
  46836. +install-ps-am:
  46837. +
  46838. installcheck-am:
  46839. maintainer-clean: maintainer-clean-recursive
  46840. @@ -541,8 +627,8 @@
  46841. uninstall-am: uninstall-nodist_includeHEADERS
  46842. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  46843. - install-strip
  46844. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  46845. + ctags-recursive install-am install-strip tags-recursive
  46846. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  46847. all all-am check check-am clean clean-generic clean-libtool \
  46848. @@ -559,6 +645,7 @@
  46849. mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  46850. uninstall uninstall-am uninstall-nodist_includeHEADERS
  46851. +
  46852. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  46853. # Otherwise a system limit (for SysV at least) may be exceeded.
  46854. .NOEXPORT:
  46855. diff -Nur libnet-1.1.5.orig/include/win32/Makefile.in libnet-1.1.5/include/win32/Makefile.in
  46856. --- libnet-1.1.5.orig/include/win32/Makefile.in 2010-11-09 01:48:07.000000000 +0100
  46857. +++ libnet-1.1.5/include/win32/Makefile.in 2011-02-24 19:45:54.503554771 +0100
  46858. @@ -1,8 +1,9 @@
  46859. -# Makefile.in generated by automake 1.10 from Makefile.am.
  46860. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  46861. # @configure_input@
  46862. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  46863. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  46864. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  46865. +# Inc.
  46866. # This Makefile.in is free software; the Free Software Foundation
  46867. # gives unlimited permission to copy and/or distribute it,
  46868. # with or without modifications, as long as this notice is preserved.
  46869. @@ -15,8 +16,9 @@
  46870. @SET_MAKE@
  46871. VPATH = @srcdir@
  46872. pkgdatadir = $(datadir)/@PACKAGE@
  46873. -pkglibdir = $(libdir)/@PACKAGE@
  46874. pkgincludedir = $(includedir)/@PACKAGE@
  46875. +pkglibdir = $(libdir)/@PACKAGE@
  46876. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  46877. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  46878. install_sh_DATA = $(install_sh) -c -m 644
  46879. install_sh_PROGRAM = $(install_sh) -c
  46880. @@ -42,6 +44,7 @@
  46881. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  46882. CONFIG_HEADER = $(top_builddir)/include/config.h
  46883. CONFIG_CLEAN_FILES =
  46884. +CONFIG_CLEAN_VPATH_FILES =
  46885. SOURCES =
  46886. DIST_SOURCES =
  46887. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  46888. @@ -58,22 +61,18 @@
  46889. CFLAGS = @CFLAGS@
  46890. CPP = @CPP@
  46891. CPPFLAGS = @CPPFLAGS@
  46892. -CXX = @CXX@
  46893. -CXXCPP = @CXXCPP@
  46894. -CXXDEPMODE = @CXXDEPMODE@
  46895. -CXXFLAGS = @CXXFLAGS@
  46896. CYGPATH_W = @CYGPATH_W@
  46897. DEFS = @DEFS@
  46898. DEPDIR = @DEPDIR@
  46899. -ECHO = @ECHO@
  46900. +DSYMUTIL = @DSYMUTIL@
  46901. +DUMPBIN = @DUMPBIN@
  46902. ECHO_C = @ECHO_C@
  46903. ECHO_N = @ECHO_N@
  46904. ECHO_T = @ECHO_T@
  46905. EGREP = @EGREP@
  46906. ENDIANESS = @ENDIANESS@
  46907. EXEEXT = @EXEEXT@
  46908. -F77 = @F77@
  46909. -FFLAGS = @FFLAGS@
  46910. +FGREP = @FGREP@
  46911. GREP = @GREP@
  46912. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  46913. INSTALL = @INSTALL@
  46914. @@ -81,6 +80,7 @@
  46915. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46916. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46917. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46918. +LD = @LD@
  46919. LDFLAGS = @LDFLAGS@
  46920. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  46921. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  46922. @@ -88,17 +88,24 @@
  46923. LIBOBJS = @LIBOBJS@
  46924. LIBS = @LIBS@
  46925. LIBTOOL = @LIBTOOL@
  46926. +LIPO = @LIPO@
  46927. LN_S = @LN_S@
  46928. LTLIBOBJS = @LTLIBOBJS@
  46929. MAINT = @MAINT@
  46930. MAKEINFO = @MAKEINFO@
  46931. MKDIR_P = @MKDIR_P@
  46932. +NM = @NM@
  46933. +NMEDIT = @NMEDIT@
  46934. +OBJDUMP = @OBJDUMP@
  46935. OBJEXT = @OBJEXT@
  46936. +OTOOL = @OTOOL@
  46937. +OTOOL64 = @OTOOL64@
  46938. PACKAGE = @PACKAGE@
  46939. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  46940. PACKAGE_NAME = @PACKAGE_NAME@
  46941. PACKAGE_STRING = @PACKAGE_STRING@
  46942. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  46943. +PACKAGE_URL = @PACKAGE_URL@
  46944. PACKAGE_VERSION = @PACKAGE_VERSION@
  46945. PATH_SEPARATOR = @PATH_SEPARATOR@
  46946. RANLIB = @RANLIB@
  46947. @@ -112,8 +119,7 @@
  46948. abs_top_builddir = @abs_top_builddir@
  46949. abs_top_srcdir = @abs_top_srcdir@
  46950. ac_ct_CC = @ac_ct_CC@
  46951. -ac_ct_CXX = @ac_ct_CXX@
  46952. -ac_ct_F77 = @ac_ct_F77@
  46953. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  46954. am__include = @am__include@
  46955. am__leading_dot = @am__leading_dot@
  46956. am__quote = @am__quote@
  46957. @@ -144,6 +150,7 @@
  46958. libexecdir = @libexecdir@
  46959. localedir = @localedir@
  46960. localstatedir = @localstatedir@
  46961. +lt_ECHO = @lt_ECHO@
  46962. mandir = @mandir@
  46963. mkdir_p = @mkdir_p@
  46964. oldincludedir = @oldincludedir@
  46965. @@ -160,6 +167,7 @@
  46966. target_cpu = @target_cpu@
  46967. target_os = @target_os@
  46968. target_vendor = @target_vendor@
  46969. +top_build_prefix = @top_build_prefix@
  46970. top_builddir = @top_builddir@
  46971. top_srcdir = @top_srcdir@
  46972. EXTRA_DIST = getopt.h in_systm.h libnet.h
  46973. @@ -170,14 +178,14 @@
  46974. @for dep in $?; do \
  46975. case '$(am__configure_deps)' in \
  46976. *$$dep*) \
  46977. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  46978. - && exit 0; \
  46979. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  46980. + && { if test -f $@; then exit 0; else break; fi; }; \
  46981. exit 1;; \
  46982. esac; \
  46983. done; \
  46984. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/win32/Makefile'; \
  46985. - cd $(top_srcdir) && \
  46986. - $(AUTOMAKE) --gnu include/win32/Makefile
  46987. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/win32/Makefile'; \
  46988. + $(am__cd) $(top_srcdir) && \
  46989. + $(AUTOMAKE) --gnu include/win32/Makefile
  46990. .PRECIOUS: Makefile
  46991. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  46992. @case '$?' in \
  46993. @@ -195,6 +203,7 @@
  46994. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46995. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  46996. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46997. +$(am__aclocal_m4_deps):
  46998. mostlyclean-libtool:
  46999. -rm -f *.lo
  47000. @@ -224,13 +233,17 @@
  47001. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  47002. if test -d $$d/$$file; then \
  47003. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  47004. + if test -d "$(distdir)/$$file"; then \
  47005. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  47006. + fi; \
  47007. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  47008. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  47009. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  47010. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  47011. fi; \
  47012. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  47013. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  47014. else \
  47015. - test -f $(distdir)/$$file \
  47016. - || cp -p $$d/$$file $(distdir)/$$file \
  47017. + test -f "$(distdir)/$$file" \
  47018. + || cp -p $$d/$$file "$(distdir)/$$file" \
  47019. || exit 1; \
  47020. fi; \
  47021. done
  47022. @@ -258,6 +271,7 @@
  47023. distclean-generic:
  47024. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  47025. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  47026. maintainer-clean-generic:
  47027. @echo "This command is intended for maintainers to use"
  47028. @@ -276,6 +290,8 @@
  47029. html: html-am
  47030. +html-am:
  47031. +
  47032. info: info-am
  47033. info-am:
  47034. @@ -284,18 +300,28 @@
  47035. install-dvi: install-dvi-am
  47036. +install-dvi-am:
  47037. +
  47038. install-exec-am:
  47039. install-html: install-html-am
  47040. +install-html-am:
  47041. +
  47042. install-info: install-info-am
  47043. +install-info-am:
  47044. +
  47045. install-man:
  47046. install-pdf: install-pdf-am
  47047. +install-pdf-am:
  47048. +
  47049. install-ps: install-ps-am
  47050. +install-ps-am:
  47051. +
  47052. installcheck-am:
  47053. maintainer-clean: maintainer-clean-am
  47054. @@ -329,6 +355,7 @@
  47055. maintainer-clean-generic mostlyclean mostlyclean-generic \
  47056. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  47057. +
  47058. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  47059. # Otherwise a system limit (for SysV at least) may be exceeded.
  47060. .NOEXPORT:
  47061. diff -Nur libnet-1.1.5.orig/install-sh libnet-1.1.5/install-sh
  47062. --- libnet-1.1.5.orig/install-sh 2010-11-09 01:48:06.000000000 +0100
  47063. +++ libnet-1.1.5/install-sh 2011-02-24 19:45:54.053551444 +0100
  47064. @@ -1,7 +1,7 @@
  47065. #!/bin/sh
  47066. # install - install a program, script, or datafile
  47067. -scriptversion=2006-10-14.15
  47068. +scriptversion=2009-04-28.21; # UTC
  47069. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  47070. # later released in X11R6 (xc/config/util/install.sh) with the
  47071. @@ -48,7 +48,7 @@
  47072. # set DOITPROG to echo to test this script
  47073. # Don't use :- since 4.3BSD and earlier shells don't like it.
  47074. -doit="${DOITPROG-}"
  47075. +doit=${DOITPROG-}
  47076. if test -z "$doit"; then
  47077. doit_exec=exec
  47078. else
  47079. @@ -58,34 +58,49 @@
  47080. # Put in absolute file names if you don't have them in your path;
  47081. # or use environment vars.
  47082. -mvprog="${MVPROG-mv}"
  47083. -cpprog="${CPPROG-cp}"
  47084. -chmodprog="${CHMODPROG-chmod}"
  47085. -chownprog="${CHOWNPROG-chown}"
  47086. -chgrpprog="${CHGRPPROG-chgrp}"
  47087. -stripprog="${STRIPPROG-strip}"
  47088. -rmprog="${RMPROG-rm}"
  47089. -mkdirprog="${MKDIRPROG-mkdir}"
  47090. +chgrpprog=${CHGRPPROG-chgrp}
  47091. +chmodprog=${CHMODPROG-chmod}
  47092. +chownprog=${CHOWNPROG-chown}
  47093. +cmpprog=${CMPPROG-cmp}
  47094. +cpprog=${CPPROG-cp}
  47095. +mkdirprog=${MKDIRPROG-mkdir}
  47096. +mvprog=${MVPROG-mv}
  47097. +rmprog=${RMPROG-rm}
  47098. +stripprog=${STRIPPROG-strip}
  47099. +
  47100. +posix_glob='?'
  47101. +initialize_posix_glob='
  47102. + test "$posix_glob" != "?" || {
  47103. + if (set -f) 2>/dev/null; then
  47104. + posix_glob=
  47105. + else
  47106. + posix_glob=:
  47107. + fi
  47108. + }
  47109. +'
  47110. -posix_glob=
  47111. posix_mkdir=
  47112. # Desired mode of installed file.
  47113. mode=0755
  47114. +chgrpcmd=
  47115. chmodcmd=$chmodprog
  47116. chowncmd=
  47117. -chgrpcmd=
  47118. -stripcmd=
  47119. +mvcmd=$mvprog
  47120. rmcmd="$rmprog -f"
  47121. -mvcmd="$mvprog"
  47122. +stripcmd=
  47123. +
  47124. src=
  47125. dst=
  47126. dir_arg=
  47127. -dstarg=
  47128. +dst_arg=
  47129. +
  47130. +copy_on_change=false
  47131. no_target_directory=
  47132. -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  47133. +usage="\
  47134. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  47135. or: $0 [OPTION]... SRCFILES... DIRECTORY
  47136. or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  47137. or: $0 [OPTION]... -d DIRECTORIES...
  47138. @@ -95,65 +110,55 @@
  47139. In the 4th, create DIRECTORIES.
  47140. Options:
  47141. --c (ignored)
  47142. --d create directories instead of installing files.
  47143. --g GROUP $chgrpprog installed files to GROUP.
  47144. --m MODE $chmodprog installed files to MODE.
  47145. --o USER $chownprog installed files to USER.
  47146. --s $stripprog installed files.
  47147. --t DIRECTORY install into DIRECTORY.
  47148. --T report an error if DSTFILE is a directory.
  47149. ---help display this help and exit.
  47150. ---version display version info and exit.
  47151. + --help display this help and exit.
  47152. + --version display version info and exit.
  47153. +
  47154. + -c (ignored)
  47155. + -C install only if different (preserve the last data modification time)
  47156. + -d create directories instead of installing files.
  47157. + -g GROUP $chgrpprog installed files to GROUP.
  47158. + -m MODE $chmodprog installed files to MODE.
  47159. + -o USER $chownprog installed files to USER.
  47160. + -s $stripprog installed files.
  47161. + -t DIRECTORY install into DIRECTORY.
  47162. + -T report an error if DSTFILE is a directory.
  47163. Environment variables override the default commands:
  47164. - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
  47165. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  47166. + RMPROG STRIPPROG
  47167. "
  47168. while test $# -ne 0; do
  47169. case $1 in
  47170. - -c) shift
  47171. - continue;;
  47172. + -c) ;;
  47173. +
  47174. + -C) copy_on_change=true;;
  47175. - -d) dir_arg=true
  47176. - shift
  47177. - continue;;
  47178. + -d) dir_arg=true;;
  47179. -g) chgrpcmd="$chgrpprog $2"
  47180. - shift
  47181. - shift
  47182. - continue;;
  47183. + shift;;
  47184. --help) echo "$usage"; exit $?;;
  47185. -m) mode=$2
  47186. - shift
  47187. - shift
  47188. case $mode in
  47189. *' '* | *' '* | *'
  47190. '* | *'*'* | *'?'* | *'['*)
  47191. echo "$0: invalid mode: $mode" >&2
  47192. exit 1;;
  47193. esac
  47194. - continue;;
  47195. + shift;;
  47196. -o) chowncmd="$chownprog $2"
  47197. - shift
  47198. - shift
  47199. - continue;;
  47200. -
  47201. - -s) stripcmd=$stripprog
  47202. - shift
  47203. - continue;;
  47204. -
  47205. - -t) dstarg=$2
  47206. - shift
  47207. - shift
  47208. - continue;;
  47209. -
  47210. - -T) no_target_directory=true
  47211. - shift
  47212. - continue;;
  47213. + shift;;
  47214. +
  47215. + -s) stripcmd=$stripprog;;
  47216. +
  47217. + -t) dst_arg=$2
  47218. + shift;;
  47219. +
  47220. + -T) no_target_directory=true;;
  47221. --version) echo "$0 $scriptversion"; exit $?;;
  47222. @@ -165,21 +170,22 @@
  47223. *) break;;
  47224. esac
  47225. + shift
  47226. done
  47227. -if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
  47228. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  47229. # When -d is used, all remaining arguments are directories to create.
  47230. # When -t is used, the destination is already specified.
  47231. # Otherwise, the last argument is the destination. Remove it from $@.
  47232. for arg
  47233. do
  47234. - if test -n "$dstarg"; then
  47235. + if test -n "$dst_arg"; then
  47236. # $@ is not empty: it contains at least $arg.
  47237. - set fnord "$@" "$dstarg"
  47238. + set fnord "$@" "$dst_arg"
  47239. shift # fnord
  47240. fi
  47241. shift # arg
  47242. - dstarg=$arg
  47243. + dst_arg=$arg
  47244. done
  47245. fi
  47246. @@ -224,7 +230,7 @@
  47247. do
  47248. # Protect names starting with `-'.
  47249. case $src in
  47250. - -*) src=./$src ;;
  47251. + -*) src=./$src;;
  47252. esac
  47253. if test -n "$dir_arg"; then
  47254. @@ -242,22 +248,22 @@
  47255. exit 1
  47256. fi
  47257. - if test -z "$dstarg"; then
  47258. + if test -z "$dst_arg"; then
  47259. echo "$0: no destination specified." >&2
  47260. exit 1
  47261. fi
  47262. - dst=$dstarg
  47263. + dst=$dst_arg
  47264. # Protect names starting with `-'.
  47265. case $dst in
  47266. - -*) dst=./$dst ;;
  47267. + -*) dst=./$dst;;
  47268. esac
  47269. # If destination is a directory, append the input filename; won't work
  47270. # if double slashes aren't ignored.
  47271. if test -d "$dst"; then
  47272. if test -n "$no_target_directory"; then
  47273. - echo "$0: $dstarg: Is a directory" >&2
  47274. + echo "$0: $dst_arg: Is a directory" >&2
  47275. exit 1
  47276. fi
  47277. dstdir=$dst
  47278. @@ -378,26 +384,19 @@
  47279. # directory the slow way, step by step, checking for races as we go.
  47280. case $dstdir in
  47281. - /*) prefix=/ ;;
  47282. - -*) prefix=./ ;;
  47283. - *) prefix= ;;
  47284. + /*) prefix='/';;
  47285. + -*) prefix='./';;
  47286. + *) prefix='';;
  47287. esac
  47288. - case $posix_glob in
  47289. - '')
  47290. - if (set -f) 2>/dev/null; then
  47291. - posix_glob=true
  47292. - else
  47293. - posix_glob=false
  47294. - fi ;;
  47295. - esac
  47296. + eval "$initialize_posix_glob"
  47297. oIFS=$IFS
  47298. IFS=/
  47299. - $posix_glob && set -f
  47300. + $posix_glob set -f
  47301. set fnord $dstdir
  47302. shift
  47303. - $posix_glob && set +f
  47304. + $posix_glob set +f
  47305. IFS=$oIFS
  47306. prefixes=
  47307. @@ -459,41 +458,54 @@
  47308. # ignore errors from any of these, just make sure not to ignore
  47309. # errors from the above "$doit $cpprog $src $dsttmp" command.
  47310. #
  47311. - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  47312. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  47313. - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  47314. - && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  47315. -
  47316. - # Now rename the file to the real destination.
  47317. - { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
  47318. - || {
  47319. - # The rename failed, perhaps because mv can't rename something else
  47320. - # to itself, or perhaps because mv is so ancient that it does not
  47321. - # support -f.
  47322. -
  47323. - # Now remove or move aside any old file at destination location.
  47324. - # We try this two ways since rm can't unlink itself on some
  47325. - # systems and the destination file might be busy for other
  47326. - # reasons. In this case, the final cleanup might fail but the new
  47327. - # file should still install successfully.
  47328. - {
  47329. - if test -f "$dst"; then
  47330. - $doit $rmcmd -f "$dst" 2>/dev/null \
  47331. - || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
  47332. - && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
  47333. - || {
  47334. - echo "$0: cannot unlink or rename $dst" >&2
  47335. - (exit 1); exit 1
  47336. - }
  47337. - else
  47338. - :
  47339. - fi
  47340. - } &&
  47341. -
  47342. - # Now rename the file to the real destination.
  47343. - $doit $mvcmd "$dsttmp" "$dst"
  47344. - }
  47345. - } || exit 1
  47346. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  47347. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  47348. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  47349. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  47350. +
  47351. + # If -C, don't bother to copy if it wouldn't change the file.
  47352. + if $copy_on_change &&
  47353. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  47354. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  47355. +
  47356. + eval "$initialize_posix_glob" &&
  47357. + $posix_glob set -f &&
  47358. + set X $old && old=:$2:$4:$5:$6 &&
  47359. + set X $new && new=:$2:$4:$5:$6 &&
  47360. + $posix_glob set +f &&
  47361. +
  47362. + test "$old" = "$new" &&
  47363. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  47364. + then
  47365. + rm -f "$dsttmp"
  47366. + else
  47367. + # Rename the file to the real destination.
  47368. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  47369. +
  47370. + # The rename failed, perhaps because mv can't rename something else
  47371. + # to itself, or perhaps because mv is so ancient that it does not
  47372. + # support -f.
  47373. + {
  47374. + # Now remove or move aside any old file at destination location.
  47375. + # We try this two ways since rm can't unlink itself on some
  47376. + # systems and the destination file might be busy for other
  47377. + # reasons. In this case, the final cleanup might fail but the new
  47378. + # file should still install successfully.
  47379. + {
  47380. + test ! -f "$dst" ||
  47381. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  47382. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  47383. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  47384. + } ||
  47385. + { echo "$0: cannot unlink or rename $dst" >&2
  47386. + (exit 1); exit 1
  47387. + }
  47388. + } &&
  47389. +
  47390. + # Now rename the file to the real destination.
  47391. + $doit $mvcmd "$dsttmp" "$dst"
  47392. + }
  47393. + fi || exit 1
  47394. trap '' 0
  47395. fi
  47396. @@ -503,5 +515,6 @@
  47397. # eval: (add-hook 'write-file-hooks 'time-stamp)
  47398. # time-stamp-start: "scriptversion="
  47399. # time-stamp-format: "%:y-%02m-%02d.%02H"
  47400. -# time-stamp-end: "$"
  47401. +# time-stamp-time-zone: "UTC"
  47402. +# time-stamp-end: "; # UTC"
  47403. # End:
  47404. diff -Nur libnet-1.1.5.orig/ltmain.sh libnet-1.1.5/ltmain.sh
  47405. --- libnet-1.1.5.orig/ltmain.sh 2007-08-14 20:05:31.000000000 +0200
  47406. +++ libnet-1.1.5/ltmain.sh 2011-02-24 19:45:49.033552985 +0100
  47407. @@ -1,52 +1,83 @@
  47408. -# ltmain.sh - Provide generalized library-building support services.
  47409. -# NOTE: Changing this file will not affect anything until you rerun configure.
  47410. -#
  47411. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  47412. -# 2007 Free Software Foundation, Inc.
  47413. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  47414. -#
  47415. -# This program is free software; you can redistribute it and/or modify
  47416. +# Generated from ltmain.m4sh.
  47417. +
  47418. +# ltmain.sh (GNU libtool) 2.2.6b
  47419. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  47420. +
  47421. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  47422. +# This is free software; see the source for copying conditions. There is NO
  47423. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  47424. +
  47425. +# GNU Libtool is free software; you can redistribute it and/or modify
  47426. # it under the terms of the GNU General Public License as published by
  47427. # the Free Software Foundation; either version 2 of the License, or
  47428. # (at your option) any later version.
  47429. #
  47430. -# This program is distributed in the hope that it will be useful, but
  47431. +# As a special exception to the GNU General Public License,
  47432. +# if you distribute this file as part of a program or library that
  47433. +# is built using GNU Libtool, you may include this file under the
  47434. +# same distribution terms that you use for the rest of that program.
  47435. +#
  47436. +# GNU Libtool is distributed in the hope that it will be useful, but
  47437. # WITHOUT ANY WARRANTY; without even the implied warranty of
  47438. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  47439. # General Public License for more details.
  47440. #
  47441. # You should have received a copy of the GNU General Public License
  47442. -# along with this program; if not, write to the Free Software
  47443. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  47444. -#
  47445. -# As a special exception to the GNU General Public License, if you
  47446. -# distribute this file as part of a program that contains a
  47447. -# configuration script generated by Autoconf, you may include it under
  47448. -# the same distribution terms that you use for the rest of that program.
  47449. -
  47450. -basename="s,^.*/,,g"
  47451. -
  47452. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  47453. -# is ksh but when the shell is invoked as "sh" and the current value of
  47454. -# the _XPG environment variable is not equal to 1 (one), the special
  47455. -# positional parameter $0, within a function call, is the name of the
  47456. -# function.
  47457. -progpath="$0"
  47458. -
  47459. -# The name of this program:
  47460. -progname=`echo "$progpath" | $SED $basename`
  47461. -modename="$progname"
  47462. +# along with GNU Libtool; see the file COPYING. If not, a copy
  47463. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  47464. +# or obtained by writing to the Free Software Foundation, Inc.,
  47465. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  47466. -# Global variables:
  47467. -EXIT_SUCCESS=0
  47468. -EXIT_FAILURE=1
  47469. +# Usage: $progname [OPTION]... [MODE-ARG]...
  47470. +#
  47471. +# Provide generalized library-building support services.
  47472. +#
  47473. +# --config show all configuration variables
  47474. +# --debug enable verbose shell tracing
  47475. +# -n, --dry-run display commands without modifying any files
  47476. +# --features display basic configuration information and exit
  47477. +# --mode=MODE use operation mode MODE
  47478. +# --preserve-dup-deps don't remove duplicate dependency libraries
  47479. +# --quiet, --silent don't print informational messages
  47480. +# --tag=TAG use configuration variables from tag TAG
  47481. +# -v, --verbose print informational messages (default)
  47482. +# --version print version information
  47483. +# -h, --help print short or long help message
  47484. +#
  47485. +# MODE must be one of the following:
  47486. +#
  47487. +# clean remove files from the build directory
  47488. +# compile compile a source file into a libtool object
  47489. +# execute automatically set library path, then run a program
  47490. +# finish complete the installation of libtool libraries
  47491. +# install install libraries or executables
  47492. +# link create a library or an executable
  47493. +# uninstall remove libraries from an installed directory
  47494. +#
  47495. +# MODE-ARGS vary depending on the MODE.
  47496. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  47497. +#
  47498. +# When reporting a bug, please describe a test case to reproduce it and
  47499. +# include the following information:
  47500. +#
  47501. +# host-triplet: $host
  47502. +# shell: $SHELL
  47503. +# compiler: $LTCC
  47504. +# compiler flags: $LTCFLAGS
  47505. +# linker: $LD (gnu? $with_gnu_ld)
  47506. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  47507. +# automake: $automake_version
  47508. +# autoconf: $autoconf_version
  47509. +#
  47510. +# Report bugs to <bug-libtool@gnu.org>.
  47511. PROGRAM=ltmain.sh
  47512. PACKAGE=libtool
  47513. -VERSION="1.5.24 Debian 1.5.24-1ubuntu1"
  47514. -TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
  47515. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  47516. +TIMESTAMP=""
  47517. +package_revision=1.3017
  47518. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  47519. +# Be Bourne compatible
  47520. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  47521. emulate sh
  47522. NULLCMD=:
  47523. @@ -60,98 +91,261 @@
  47524. BIN_SH=xpg4; export BIN_SH # for Tru64
  47525. DUALCASE=1; export DUALCASE # for MKS sh
  47526. -# Check that we have a working $echo.
  47527. -if test "X$1" = X--no-reexec; then
  47528. - # Discard the --no-reexec flag, and continue.
  47529. - shift
  47530. -elif test "X$1" = X--fallback-echo; then
  47531. - # Avoid inline document here, it may be left over
  47532. - :
  47533. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  47534. - # Yippee, $echo works!
  47535. - :
  47536. -else
  47537. - # Restart under the correct shell, and then maybe $echo will work.
  47538. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  47539. -fi
  47540. -
  47541. -if test "X$1" = X--fallback-echo; then
  47542. - # used as fallback echo
  47543. - shift
  47544. - cat <<EOF
  47545. -$*
  47546. -EOF
  47547. - exit $EXIT_SUCCESS
  47548. -fi
  47549. -
  47550. -default_mode=
  47551. -help="Try \`$progname --help' for more information."
  47552. -magic="%%%MAGIC variable%%%"
  47553. -mkdir="mkdir"
  47554. -mv="mv -f"
  47555. -rm="rm -f"
  47556. -
  47557. -# Sed substitution that helps us do robust quoting. It backslashifies
  47558. -# metacharacters that are still active within double-quoted strings.
  47559. -Xsed="${SED}"' -e 1s/^X//'
  47560. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  47561. -# test EBCDIC or ASCII
  47562. -case `echo X|tr X '\101'` in
  47563. - A) # ASCII based system
  47564. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  47565. - SP2NL='tr \040 \012'
  47566. - NL2SP='tr \015\012 \040\040'
  47567. - ;;
  47568. - *) # EBCDIC based system
  47569. - SP2NL='tr \100 \n'
  47570. - NL2SP='tr \r\n \100\100'
  47571. - ;;
  47572. -esac
  47573. -
  47574. -# NLS nuisances.
  47575. +# NLS nuisances: We save the old values to restore during execute mode.
  47576. # Only set LANG and LC_ALL to C if already set.
  47577. # These must not be set unconditionally because not all systems understand
  47578. # e.g. LANG=C (notably SCO).
  47579. -# We save the old values to restore during execute mode.
  47580. -for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  47581. +lt_user_locale=
  47582. +lt_safe_locale=
  47583. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  47584. do
  47585. eval "if test \"\${$lt_var+set}\" = set; then
  47586. - save_$lt_var=\$$lt_var
  47587. - $lt_var=C
  47588. + save_$lt_var=\$$lt_var
  47589. + $lt_var=C
  47590. export $lt_var
  47591. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  47592. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  47593. fi"
  47594. done
  47595. +$lt_unset CDPATH
  47596. +
  47597. +
  47598. +
  47599. +
  47600. +
  47601. +: ${CP="cp -f"}
  47602. +: ${ECHO="echo"}
  47603. +: ${EGREP="/bin/grep -E"}
  47604. +: ${FGREP="/bin/grep -F"}
  47605. +: ${GREP="/bin/grep"}
  47606. +: ${LN_S="ln -s"}
  47607. +: ${MAKE="make"}
  47608. +: ${MKDIR="mkdir"}
  47609. +: ${MV="mv -f"}
  47610. +: ${RM="rm -f"}
  47611. +: ${SED="/bin/sed"}
  47612. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  47613. +: ${Xsed="$SED -e 1s/^X//"}
  47614. +
  47615. +# Global variables:
  47616. +EXIT_SUCCESS=0
  47617. +EXIT_FAILURE=1
  47618. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  47619. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  47620. +
  47621. +exit_status=$EXIT_SUCCESS
  47622. +
  47623. # Make sure IFS has a sensible default
  47624. lt_nl='
  47625. '
  47626. IFS=" $lt_nl"
  47627. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  47628. - $echo "$modename: not configured to build any kind of library" 1>&2
  47629. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  47630. - exit $EXIT_FAILURE
  47631. -fi
  47632. +dirname="s,/[^/]*$,,"
  47633. +basename="s,^.*/,,"
  47634. -# Global variables.
  47635. -mode=$default_mode
  47636. -nonopt=
  47637. -prev=
  47638. -prevopt=
  47639. -run=
  47640. -show="$echo"
  47641. -show_help=
  47642. -execute_dlfiles=
  47643. -duplicate_deps=no
  47644. -preserve_args=
  47645. -lo2o="s/\\.lo\$/.${objext}/"
  47646. -o2lo="s/\\.${objext}\$/.lo/"
  47647. -extracted_archives=
  47648. -extracted_serial=0
  47649. +# func_dirname_and_basename file append nondir_replacement
  47650. +# perform func_basename and func_dirname in a single function
  47651. +# call:
  47652. +# dirname: Compute the dirname of FILE. If nonempty,
  47653. +# add APPEND to the result, otherwise set result
  47654. +# to NONDIR_REPLACEMENT.
  47655. +# value returned in "$func_dirname_result"
  47656. +# basename: Compute filename of FILE.
  47657. +# value retuned in "$func_basename_result"
  47658. +# Implementation must be kept synchronized with func_dirname
  47659. +# and func_basename. For efficiency, we do not delegate to
  47660. +# those functions but instead duplicate the functionality here.
  47661. +func_dirname_and_basename ()
  47662. +{
  47663. + # Extract subdirectory from the argument.
  47664. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  47665. + if test "X$func_dirname_result" = "X${1}"; then
  47666. + func_dirname_result="${3}"
  47667. + else
  47668. + func_dirname_result="$func_dirname_result${2}"
  47669. + fi
  47670. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  47671. +}
  47672. +
  47673. +# Generated shell functions inserted here.
  47674. +
  47675. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  47676. +# is ksh but when the shell is invoked as "sh" and the current value of
  47677. +# the _XPG environment variable is not equal to 1 (one), the special
  47678. +# positional parameter $0, within a function call, is the name of the
  47679. +# function.
  47680. +progpath="$0"
  47681. +
  47682. +# The name of this program:
  47683. +# In the unlikely event $progname began with a '-', it would play havoc with
  47684. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  47685. +func_dirname_and_basename "$progpath"
  47686. +progname=$func_basename_result
  47687. +case $progname in
  47688. + -*) progname=./$progname ;;
  47689. +esac
  47690. +
  47691. +# Make sure we have an absolute path for reexecution:
  47692. +case $progpath in
  47693. + [\\/]*|[A-Za-z]:\\*) ;;
  47694. + *[\\/]*)
  47695. + progdir=$func_dirname_result
  47696. + progdir=`cd "$progdir" && pwd`
  47697. + progpath="$progdir/$progname"
  47698. + ;;
  47699. + *)
  47700. + save_IFS="$IFS"
  47701. + IFS=:
  47702. + for progdir in $PATH; do
  47703. + IFS="$save_IFS"
  47704. + test -x "$progdir/$progname" && break
  47705. + done
  47706. + IFS="$save_IFS"
  47707. + test -n "$progdir" || progdir=`pwd`
  47708. + progpath="$progdir/$progname"
  47709. + ;;
  47710. +esac
  47711. +
  47712. +# Sed substitution that helps us do robust quoting. It backslashifies
  47713. +# metacharacters that are still active within double-quoted strings.
  47714. +Xsed="${SED}"' -e 1s/^X//'
  47715. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  47716. +
  47717. +# Same as above, but do not quote variable references.
  47718. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  47719. +
  47720. +# Re-`\' parameter expansions in output of double_quote_subst that were
  47721. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  47722. +# in input to double_quote_subst, that '$' was protected from expansion.
  47723. +# Since each input `\' is now two `\'s, look for any number of runs of
  47724. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  47725. +bs='\\'
  47726. +bs2='\\\\'
  47727. +bs4='\\\\\\\\'
  47728. +dollar='\$'
  47729. +sed_double_backslash="\
  47730. + s/$bs4/&\\
  47731. +/g
  47732. + s/^$bs2$dollar/$bs&/
  47733. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  47734. + s/\n//g"
  47735. +
  47736. +# Standard options:
  47737. +opt_dry_run=false
  47738. +opt_help=false
  47739. +opt_quiet=false
  47740. +opt_verbose=false
  47741. +opt_warning=:
  47742. +
  47743. +# func_echo arg...
  47744. +# Echo program name prefixed message, along with the current mode
  47745. +# name if it has been set yet.
  47746. +func_echo ()
  47747. +{
  47748. + $ECHO "$progname${mode+: }$mode: $*"
  47749. +}
  47750. +
  47751. +# func_verbose arg...
  47752. +# Echo program name prefixed message in verbose mode only.
  47753. +func_verbose ()
  47754. +{
  47755. + $opt_verbose && func_echo ${1+"$@"}
  47756. +
  47757. + # A bug in bash halts the script if the last line of a function
  47758. + # fails when set -e is in force, so we need another command to
  47759. + # work around that:
  47760. + :
  47761. +}
  47762. +
  47763. +# func_error arg...
  47764. +# Echo program name prefixed message to standard error.
  47765. +func_error ()
  47766. +{
  47767. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  47768. +}
  47769. +
  47770. +# func_warning arg...
  47771. +# Echo program name prefixed warning message to standard error.
  47772. +func_warning ()
  47773. +{
  47774. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  47775. +
  47776. + # bash bug again:
  47777. + :
  47778. +}
  47779. +
  47780. +# func_fatal_error arg...
  47781. +# Echo program name prefixed message to standard error, and exit.
  47782. +func_fatal_error ()
  47783. +{
  47784. + func_error ${1+"$@"}
  47785. + exit $EXIT_FAILURE
  47786. +}
  47787. +
  47788. +# func_fatal_help arg...
  47789. +# Echo program name prefixed message to standard error, followed by
  47790. +# a help hint, and exit.
  47791. +func_fatal_help ()
  47792. +{
  47793. + func_error ${1+"$@"}
  47794. + func_fatal_error "$help"
  47795. +}
  47796. +help="Try \`$progname --help' for more information." ## default
  47797. +
  47798. +
  47799. +# func_grep expression filename
  47800. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  47801. +func_grep ()
  47802. +{
  47803. + $GREP "$1" "$2" >/dev/null 2>&1
  47804. +}
  47805. +
  47806. +
  47807. +# func_mkdir_p directory-path
  47808. +# Make sure the entire path to DIRECTORY-PATH is available.
  47809. +func_mkdir_p ()
  47810. +{
  47811. + my_directory_path="$1"
  47812. + my_dir_list=
  47813. +
  47814. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  47815. +
  47816. + # Protect directory names starting with `-'
  47817. + case $my_directory_path in
  47818. + -*) my_directory_path="./$my_directory_path" ;;
  47819. + esac
  47820. +
  47821. + # While some portion of DIR does not yet exist...
  47822. + while test ! -d "$my_directory_path"; do
  47823. + # ...make a list in topmost first order. Use a colon delimited
  47824. + # list incase some portion of path contains whitespace.
  47825. + my_dir_list="$my_directory_path:$my_dir_list"
  47826. +
  47827. + # If the last portion added has no slash in it, the list is done
  47828. + case $my_directory_path in */*) ;; *) break ;; esac
  47829. +
  47830. + # ...otherwise throw away the child directory and loop
  47831. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  47832. + done
  47833. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  47834. +
  47835. + save_mkdir_p_IFS="$IFS"; IFS=':'
  47836. + for my_dir in $my_dir_list; do
  47837. + IFS="$save_mkdir_p_IFS"
  47838. + # mkdir can fail with a `File exist' error if two processes
  47839. + # try to create one of the directories concurrently. Don't
  47840. + # stop in that case!
  47841. + $MKDIR "$my_dir" 2>/dev/null || :
  47842. + done
  47843. + IFS="$save_mkdir_p_IFS"
  47844. +
  47845. + # Bail out if we (or some other process) failed to create a directory.
  47846. + test -d "$my_directory_path" || \
  47847. + func_fatal_error "Failed to create \`$1'"
  47848. + fi
  47849. +}
  47850. -#####################################
  47851. -# Shell function definitions:
  47852. -# This seems to be the best place for them
  47853. # func_mktempdir [string]
  47854. # Make a temporary directory that won't clash with other running
  47855. @@ -161,7 +355,7 @@
  47856. {
  47857. my_template="${TMPDIR-/tmp}/${1-$progname}"
  47858. - if test "$run" = ":"; then
  47859. + if test "$opt_dry_run" = ":"; then
  47860. # Return a directory name, but don't create it in dry-run mode
  47861. my_tmpdir="${my_template}-$$"
  47862. else
  47863. @@ -170,526 +364,787 @@
  47864. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  47865. if test ! -d "$my_tmpdir"; then
  47866. - # Failing that, at least try and use $RANDOM to avoid a race
  47867. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  47868. + # Failing that, at least try and use $RANDOM to avoid a race
  47869. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  47870. - save_mktempdir_umask=`umask`
  47871. - umask 0077
  47872. - $mkdir "$my_tmpdir"
  47873. - umask $save_mktempdir_umask
  47874. + save_mktempdir_umask=`umask`
  47875. + umask 0077
  47876. + $MKDIR "$my_tmpdir"
  47877. + umask $save_mktempdir_umask
  47878. fi
  47879. # If we're not in dry-run mode, bomb out on failure
  47880. - test -d "$my_tmpdir" || {
  47881. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  47882. - exit $EXIT_FAILURE
  47883. - }
  47884. + test -d "$my_tmpdir" || \
  47885. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  47886. fi
  47887. - $echo "X$my_tmpdir" | $Xsed
  47888. + $ECHO "X$my_tmpdir" | $Xsed
  47889. }
  47890. -# func_win32_libid arg
  47891. -# return the library type of file 'arg'
  47892. -#
  47893. -# Need a lot of goo to handle *both* DLLs and import libs
  47894. -# Has to be a shell function in order to 'eat' the argument
  47895. -# that is supplied when $file_magic_command is called.
  47896. -func_win32_libid ()
  47897. +# func_quote_for_eval arg
  47898. +# Aesthetically quote ARG to be evaled later.
  47899. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  47900. +# is double-quoted, suitable for a subsequent eval, whereas
  47901. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  47902. +# which are still active within double quotes backslashified.
  47903. +func_quote_for_eval ()
  47904. {
  47905. - win32_libid_type="unknown"
  47906. - win32_fileres=`file -L $1 2>/dev/null`
  47907. - case $win32_fileres in
  47908. - *ar\ archive\ import\ library*) # definitely import
  47909. - win32_libid_type="x86 archive import"
  47910. - ;;
  47911. - *ar\ archive*) # could be an import, or static
  47912. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  47913. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  47914. - win32_nmres=`eval $NM -f posix -A $1 | \
  47915. - $SED -n -e '1,100{
  47916. - / I /{
  47917. - s,.*,import,
  47918. - p
  47919. - q
  47920. - }
  47921. - }'`
  47922. - case $win32_nmres in
  47923. - import*) win32_libid_type="x86 archive import";;
  47924. - *) win32_libid_type="x86 archive static";;
  47925. - esac
  47926. - fi
  47927. - ;;
  47928. - *DLL*)
  47929. - win32_libid_type="x86 DLL"
  47930. - ;;
  47931. - *executable*) # but shell scripts are "executable" too...
  47932. - case $win32_fileres in
  47933. - *MS\ Windows\ PE\ Intel*)
  47934. - win32_libid_type="x86 DLL"
  47935. - ;;
  47936. + case $1 in
  47937. + *[\\\`\"\$]*)
  47938. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  47939. + *)
  47940. + func_quote_for_eval_unquoted_result="$1" ;;
  47941. + esac
  47942. +
  47943. + case $func_quote_for_eval_unquoted_result in
  47944. + # Double-quote args containing shell metacharacters to delay
  47945. + # word splitting, command substitution and and variable
  47946. + # expansion for a subsequent eval.
  47947. + # Many Bourne shells cannot handle close brackets correctly
  47948. + # in scan sets, so we specify it separately.
  47949. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47950. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  47951. + ;;
  47952. + *)
  47953. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  47954. esac
  47955. - ;;
  47956. - esac
  47957. - $echo $win32_libid_type
  47958. }
  47959. -# func_infer_tag arg
  47960. -# Infer tagged configuration to use if any are available and
  47961. -# if one wasn't chosen via the "--tag" command line option.
  47962. -# Only attempt this if the compiler in the base compile
  47963. -# command doesn't match the default compiler.
  47964. -# arg is usually of the form 'gcc ...'
  47965. -func_infer_tag ()
  47966. +# func_quote_for_expand arg
  47967. +# Aesthetically quote ARG to be evaled later; same as above,
  47968. +# but do not quote variable references.
  47969. +func_quote_for_expand ()
  47970. {
  47971. - if test -n "$available_tags" && test -z "$tagname"; then
  47972. - CC_quoted=
  47973. - for arg in $CC; do
  47974. - case $arg in
  47975. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47976. - arg="\"$arg\""
  47977. - ;;
  47978. - esac
  47979. - CC_quoted="$CC_quoted $arg"
  47980. - done
  47981. - case $@ in
  47982. - # Blanks in the command may have been stripped by the calling shell,
  47983. - # but not from the CC environment variable when configure was run.
  47984. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  47985. - # Blanks at the start of $base_compile will cause this to fail
  47986. - # if we don't check for them as well.
  47987. + case $1 in
  47988. + *[\\\`\"]*)
  47989. + my_arg=`$ECHO "X$1" | $Xsed \
  47990. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  47991. *)
  47992. - for z in $available_tags; do
  47993. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  47994. - # Evaluate the configuration.
  47995. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  47996. - CC_quoted=
  47997. - for arg in $CC; do
  47998. - # Double-quote args containing other shell metacharacters.
  47999. - case $arg in
  48000. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48001. - arg="\"$arg\""
  48002. - ;;
  48003. - esac
  48004. - CC_quoted="$CC_quoted $arg"
  48005. - done
  48006. - case "$@ " in
  48007. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  48008. - # The compiler in the base compile command matches
  48009. - # the one in the tagged configuration.
  48010. - # Assume this is the tagged configuration we want.
  48011. - tagname=$z
  48012. - break
  48013. - ;;
  48014. - esac
  48015. - fi
  48016. - done
  48017. - # If $tagname still isn't set, then no tagged configuration
  48018. - # was found and let the user know that the "--tag" command
  48019. - # line option must be used.
  48020. - if test -z "$tagname"; then
  48021. - $echo "$modename: unable to infer tagged configuration"
  48022. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  48023. - exit $EXIT_FAILURE
  48024. -# else
  48025. -# $echo "$modename: using $tagname tagged configuration"
  48026. - fi
  48027. - ;;
  48028. - esac
  48029. - fi
  48030. + my_arg="$1" ;;
  48031. + esac
  48032. +
  48033. + case $my_arg in
  48034. + # Double-quote args containing shell metacharacters to delay
  48035. + # word splitting and command substitution for a subsequent eval.
  48036. + # Many Bourne shells cannot handle close brackets correctly
  48037. + # in scan sets, so we specify it separately.
  48038. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48039. + my_arg="\"$my_arg\""
  48040. + ;;
  48041. + esac
  48042. +
  48043. + func_quote_for_expand_result="$my_arg"
  48044. }
  48045. -# func_extract_an_archive dir oldlib
  48046. -func_extract_an_archive ()
  48047. +# func_show_eval cmd [fail_exp]
  48048. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  48049. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  48050. +# is given, then evaluate it.
  48051. +func_show_eval ()
  48052. {
  48053. - f_ex_an_ar_dir="$1"; shift
  48054. - f_ex_an_ar_oldlib="$1"
  48055. + my_cmd="$1"
  48056. + my_fail_exp="${2-:}"
  48057. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  48058. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  48059. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  48060. - :
  48061. - else
  48062. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  48063. - exit $EXIT_FAILURE
  48064. + ${opt_silent-false} || {
  48065. + func_quote_for_expand "$my_cmd"
  48066. + eval "func_echo $func_quote_for_expand_result"
  48067. + }
  48068. +
  48069. + if ${opt_dry_run-false}; then :; else
  48070. + eval "$my_cmd"
  48071. + my_status=$?
  48072. + if test "$my_status" -eq 0; then :; else
  48073. + eval "(exit $my_status); $my_fail_exp"
  48074. + fi
  48075. fi
  48076. }
  48077. -# func_extract_archives gentop oldlib ...
  48078. -func_extract_archives ()
  48079. +
  48080. +# func_show_eval_locale cmd [fail_exp]
  48081. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  48082. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  48083. +# is given, then evaluate it. Use the saved locale for evaluation.
  48084. +func_show_eval_locale ()
  48085. {
  48086. - my_gentop="$1"; shift
  48087. - my_oldlibs=${1+"$@"}
  48088. - my_oldobjs=""
  48089. - my_xlib=""
  48090. - my_xabs=""
  48091. - my_xdir=""
  48092. - my_status=""
  48093. + my_cmd="$1"
  48094. + my_fail_exp="${2-:}"
  48095. +
  48096. + ${opt_silent-false} || {
  48097. + func_quote_for_expand "$my_cmd"
  48098. + eval "func_echo $func_quote_for_expand_result"
  48099. + }
  48100. - $show "${rm}r $my_gentop"
  48101. - $run ${rm}r "$my_gentop"
  48102. - $show "$mkdir $my_gentop"
  48103. - $run $mkdir "$my_gentop"
  48104. - my_status=$?
  48105. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  48106. - exit $my_status
  48107. + if ${opt_dry_run-false}; then :; else
  48108. + eval "$lt_user_locale
  48109. + $my_cmd"
  48110. + my_status=$?
  48111. + eval "$lt_safe_locale"
  48112. + if test "$my_status" -eq 0; then :; else
  48113. + eval "(exit $my_status); $my_fail_exp"
  48114. + fi
  48115. fi
  48116. +}
  48117. - for my_xlib in $my_oldlibs; do
  48118. - # Extract the objects.
  48119. - case $my_xlib in
  48120. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  48121. - *) my_xabs=`pwd`"/$my_xlib" ;;
  48122. - esac
  48123. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  48124. - my_xlib_u=$my_xlib
  48125. - while :; do
  48126. - case " $extracted_archives " in
  48127. - *" $my_xlib_u "*)
  48128. - extracted_serial=`expr $extracted_serial + 1`
  48129. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  48130. - *) break ;;
  48131. - esac
  48132. - done
  48133. - extracted_archives="$extracted_archives $my_xlib_u"
  48134. - my_xdir="$my_gentop/$my_xlib_u"
  48135. - $show "${rm}r $my_xdir"
  48136. - $run ${rm}r "$my_xdir"
  48137. - $show "$mkdir $my_xdir"
  48138. - $run $mkdir "$my_xdir"
  48139. - exit_status=$?
  48140. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  48141. - exit $exit_status
  48142. - fi
  48143. - case $host in
  48144. - *-darwin*)
  48145. - $show "Extracting $my_xabs"
  48146. - # Do not bother doing anything if just a dry run
  48147. - if test -z "$run"; then
  48148. - darwin_orig_dir=`pwd`
  48149. - cd $my_xdir || exit $?
  48150. - darwin_archive=$my_xabs
  48151. - darwin_curdir=`pwd`
  48152. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  48153. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  48154. - if test -n "$darwin_arches"; then
  48155. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  48156. - darwin_arch=
  48157. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  48158. - for darwin_arch in $darwin_arches ; do
  48159. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  48160. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  48161. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  48162. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  48163. - cd "$darwin_curdir"
  48164. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  48165. - done # $darwin_arches
  48166. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  48167. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  48168. - darwin_file=
  48169. - darwin_files=
  48170. - for darwin_file in $darwin_filelist; do
  48171. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  48172. - lipo -create -output "$darwin_file" $darwin_files
  48173. - done # $darwin_filelist
  48174. - ${rm}r unfat-$$
  48175. - cd "$darwin_orig_dir"
  48176. - else
  48177. - cd "$darwin_orig_dir"
  48178. - func_extract_an_archive "$my_xdir" "$my_xabs"
  48179. - fi # $darwin_arches
  48180. - fi # $run
  48181. - ;;
  48182. - *)
  48183. - func_extract_an_archive "$my_xdir" "$my_xabs"
  48184. - ;;
  48185. - esac
  48186. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  48187. - done
  48188. - func_extract_archives_result="$my_oldobjs"
  48189. +
  48190. +
  48191. +
  48192. +# func_version
  48193. +# Echo version message to standard output and exit.
  48194. +func_version ()
  48195. +{
  48196. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  48197. + s/^# //
  48198. + s/^# *$//
  48199. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  48200. + p
  48201. + }' < "$progpath"
  48202. + exit $?
  48203. +}
  48204. +
  48205. +# func_usage
  48206. +# Echo short help message to standard output and exit.
  48207. +func_usage ()
  48208. +{
  48209. + $SED -n '/^# Usage:/,/# -h/ {
  48210. + s/^# //
  48211. + s/^# *$//
  48212. + s/\$progname/'$progname'/
  48213. + p
  48214. + }' < "$progpath"
  48215. + $ECHO
  48216. + $ECHO "run \`$progname --help | more' for full usage"
  48217. + exit $?
  48218. +}
  48219. +
  48220. +# func_help
  48221. +# Echo long help message to standard output and exit.
  48222. +func_help ()
  48223. +{
  48224. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  48225. + s/^# //
  48226. + s/^# *$//
  48227. + s*\$progname*'$progname'*
  48228. + s*\$host*'"$host"'*
  48229. + s*\$SHELL*'"$SHELL"'*
  48230. + s*\$LTCC*'"$LTCC"'*
  48231. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  48232. + s*\$LD*'"$LD"'*
  48233. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  48234. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  48235. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  48236. + p
  48237. + }' < "$progpath"
  48238. + exit $?
  48239. +}
  48240. +
  48241. +# func_missing_arg argname
  48242. +# Echo program name prefixed message to standard error and set global
  48243. +# exit_cmd.
  48244. +func_missing_arg ()
  48245. +{
  48246. + func_error "missing argument for $1"
  48247. + exit_cmd=exit
  48248. }
  48249. -# End of Shell function definitions
  48250. -#####################################
  48251. -# Darwin sucks
  48252. -eval std_shrext=\"$shrext_cmds\"
  48253. +exit_cmd=:
  48254. -disable_libs=no
  48255. -# Parse our command line options once, thoroughly.
  48256. -while test "$#" -gt 0
  48257. -do
  48258. - arg="$1"
  48259. +
  48260. +
  48261. +
  48262. +# Check that we have a working $ECHO.
  48263. +if test "X$1" = X--no-reexec; then
  48264. + # Discard the --no-reexec flag, and continue.
  48265. shift
  48266. +elif test "X$1" = X--fallback-echo; then
  48267. + # Avoid inline document here, it may be left over
  48268. + :
  48269. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  48270. + # Yippee, $ECHO works!
  48271. + :
  48272. +else
  48273. + # Restart under the correct shell, and then maybe $ECHO will work.
  48274. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  48275. +fi
  48276. - case $arg in
  48277. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  48278. - *) optarg= ;;
  48279. - esac
  48280. +if test "X$1" = X--fallback-echo; then
  48281. + # used as fallback echo
  48282. + shift
  48283. + cat <<EOF
  48284. +$*
  48285. +EOF
  48286. + exit $EXIT_SUCCESS
  48287. +fi
  48288. - # If the previous option needs an argument, assign it.
  48289. - if test -n "$prev"; then
  48290. - case $prev in
  48291. - execute_dlfiles)
  48292. - execute_dlfiles="$execute_dlfiles $arg"
  48293. - ;;
  48294. - tag)
  48295. - tagname="$arg"
  48296. - preserve_args="${preserve_args}=$arg"
  48297. -
  48298. - # Check whether tagname contains only valid characters
  48299. - case $tagname in
  48300. - *[!-_A-Za-z0-9,/]*)
  48301. - $echo "$progname: invalid tag name: $tagname" 1>&2
  48302. - exit $EXIT_FAILURE
  48303. - ;;
  48304. - esac
  48305. +magic="%%%MAGIC variable%%%"
  48306. +magic_exe="%%%MAGIC EXE variable%%%"
  48307. - case $tagname in
  48308. - CC)
  48309. - # Don't test for the "default" C tag, as we know, it's there, but
  48310. - # not specially marked.
  48311. - ;;
  48312. - *)
  48313. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  48314. - taglist="$taglist $tagname"
  48315. - # Evaluate the configuration.
  48316. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  48317. - else
  48318. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  48319. - fi
  48320. - ;;
  48321. - esac
  48322. - ;;
  48323. - *)
  48324. - eval "$prev=\$arg"
  48325. - ;;
  48326. - esac
  48327. +# Global variables.
  48328. +# $mode is unset
  48329. +nonopt=
  48330. +execute_dlfiles=
  48331. +preserve_args=
  48332. +lo2o="s/\\.lo\$/.${objext}/"
  48333. +o2lo="s/\\.${objext}\$/.lo/"
  48334. +extracted_archives=
  48335. +extracted_serial=0
  48336. - prev=
  48337. - prevopt=
  48338. - continue
  48339. - fi
  48340. +opt_dry_run=false
  48341. +opt_duplicate_deps=false
  48342. +opt_silent=false
  48343. +opt_debug=:
  48344. - # Have we seen a non-optional argument yet?
  48345. - case $arg in
  48346. - --help)
  48347. - show_help=yes
  48348. - ;;
  48349. +# If this variable is set in any of the actions, the command in it
  48350. +# will be execed at the end. This prevents here-documents from being
  48351. +# left over by shells.
  48352. +exec_cmd=
  48353. - --version)
  48354. - echo "\
  48355. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  48356. -
  48357. -Copyright (C) 2007 Free Software Foundation, Inc.
  48358. -This is free software; see the source for copying conditions. There is NO
  48359. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  48360. - exit $?
  48361. - ;;
  48362. +# func_fatal_configuration arg...
  48363. +# Echo program name prefixed message to standard error, followed by
  48364. +# a configuration failure hint, and exit.
  48365. +func_fatal_configuration ()
  48366. +{
  48367. + func_error ${1+"$@"}
  48368. + func_error "See the $PACKAGE documentation for more information."
  48369. + func_fatal_error "Fatal configuration error."
  48370. +}
  48371. +
  48372. +
  48373. +# func_config
  48374. +# Display the configuration for all the tags in this script.
  48375. +func_config ()
  48376. +{
  48377. + re_begincf='^# ### BEGIN LIBTOOL'
  48378. + re_endcf='^# ### END LIBTOOL'
  48379. +
  48380. + # Default configuration.
  48381. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  48382. - --config)
  48383. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  48384. # Now print the configurations for the tags.
  48385. for tagname in $taglist; do
  48386. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  48387. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  48388. done
  48389. - exit $?
  48390. - ;;
  48391. -
  48392. - --debug)
  48393. - $echo "$progname: enabling shell trace mode"
  48394. - set -x
  48395. - preserve_args="$preserve_args $arg"
  48396. - ;;
  48397. - --dry-run | -n)
  48398. - run=:
  48399. - ;;
  48400. + exit $?
  48401. +}
  48402. - --features)
  48403. - $echo "host: $host"
  48404. +# func_features
  48405. +# Display the features supported by this script.
  48406. +func_features ()
  48407. +{
  48408. + $ECHO "host: $host"
  48409. if test "$build_libtool_libs" = yes; then
  48410. - $echo "enable shared libraries"
  48411. + $ECHO "enable shared libraries"
  48412. else
  48413. - $echo "disable shared libraries"
  48414. + $ECHO "disable shared libraries"
  48415. fi
  48416. if test "$build_old_libs" = yes; then
  48417. - $echo "enable static libraries"
  48418. + $ECHO "enable static libraries"
  48419. else
  48420. - $echo "disable static libraries"
  48421. + $ECHO "disable static libraries"
  48422. fi
  48423. +
  48424. exit $?
  48425. - ;;
  48426. +}
  48427. - --finish) mode="finish" ;;
  48428. +# func_enable_tag tagname
  48429. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  48430. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  48431. +# variable here.
  48432. +func_enable_tag ()
  48433. +{
  48434. + # Global variable:
  48435. + tagname="$1"
  48436. +
  48437. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  48438. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  48439. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  48440. +
  48441. + # Validate tagname.
  48442. + case $tagname in
  48443. + *[!-_A-Za-z0-9,/]*)
  48444. + func_fatal_error "invalid tag name: $tagname"
  48445. + ;;
  48446. + esac
  48447. - --mode) prevopt="--mode" prev=mode ;;
  48448. - --mode=*) mode="$optarg" ;;
  48449. + # Don't test for the "default" C tag, as we know it's
  48450. + # there but not specially marked.
  48451. + case $tagname in
  48452. + CC) ;;
  48453. + *)
  48454. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  48455. + taglist="$taglist $tagname"
  48456. - --preserve-dup-deps) duplicate_deps="yes" ;;
  48457. + # Evaluate the configuration. Be careful to quote the path
  48458. + # and the sed script, to avoid splitting on whitespace, but
  48459. + # also don't use non-portable quotes within backquotes within
  48460. + # quotes we have to do it in 2 steps:
  48461. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  48462. + eval "$extractedcf"
  48463. + else
  48464. + func_error "ignoring unknown tag $tagname"
  48465. + fi
  48466. + ;;
  48467. + esac
  48468. +}
  48469. - --quiet | --silent)
  48470. - show=:
  48471. - preserve_args="$preserve_args $arg"
  48472. - ;;
  48473. +# Parse options once, thoroughly. This comes as soon as possible in
  48474. +# the script to make things like `libtool --version' happen quickly.
  48475. +{
  48476. - --tag)
  48477. - prevopt="--tag"
  48478. - prev=tag
  48479. - preserve_args="$preserve_args --tag"
  48480. + # Shorthand for --mode=foo, only valid as the first argument
  48481. + case $1 in
  48482. + clean|clea|cle|cl)
  48483. + shift; set dummy --mode clean ${1+"$@"}; shift
  48484. ;;
  48485. - --tag=*)
  48486. - set tag "$optarg" ${1+"$@"}
  48487. - shift
  48488. - prev=tag
  48489. - preserve_args="$preserve_args --tag"
  48490. + compile|compil|compi|comp|com|co|c)
  48491. + shift; set dummy --mode compile ${1+"$@"}; shift
  48492. ;;
  48493. -
  48494. - -dlopen)
  48495. - prevopt="-dlopen"
  48496. - prev=execute_dlfiles
  48497. + execute|execut|execu|exec|exe|ex|e)
  48498. + shift; set dummy --mode execute ${1+"$@"}; shift
  48499. ;;
  48500. -
  48501. - -*)
  48502. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  48503. - $echo "$help" 1>&2
  48504. - exit $EXIT_FAILURE
  48505. + finish|finis|fini|fin|fi|f)
  48506. + shift; set dummy --mode finish ${1+"$@"}; shift
  48507. ;;
  48508. -
  48509. - *)
  48510. - nonopt="$arg"
  48511. - break
  48512. + install|instal|insta|inst|ins|in|i)
  48513. + shift; set dummy --mode install ${1+"$@"}; shift
  48514. + ;;
  48515. + link|lin|li|l)
  48516. + shift; set dummy --mode link ${1+"$@"}; shift
  48517. + ;;
  48518. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  48519. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  48520. ;;
  48521. esac
  48522. -done
  48523. -if test -n "$prevopt"; then
  48524. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  48525. - $echo "$help" 1>&2
  48526. - exit $EXIT_FAILURE
  48527. -fi
  48528. + # Parse non-mode specific arguments:
  48529. + while test "$#" -gt 0; do
  48530. + opt="$1"
  48531. + shift
  48532. -case $disable_libs in
  48533. -no)
  48534. - ;;
  48535. -shared)
  48536. - build_libtool_libs=no
  48537. - build_old_libs=yes
  48538. - ;;
  48539. -static)
  48540. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  48541. - ;;
  48542. -esac
  48543. + case $opt in
  48544. + --config) func_config ;;
  48545. -# If this variable is set in any of the actions, the command in it
  48546. -# will be execed at the end. This prevents here-documents from being
  48547. -# left over by shells.
  48548. -exec_cmd=
  48549. + --debug) preserve_args="$preserve_args $opt"
  48550. + func_echo "enabling shell trace mode"
  48551. + opt_debug='set -x'
  48552. + $opt_debug
  48553. + ;;
  48554. -if test -z "$show_help"; then
  48555. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48556. + execute_dlfiles="$execute_dlfiles $1"
  48557. + shift
  48558. + ;;
  48559. - # Infer the operation mode.
  48560. - if test -z "$mode"; then
  48561. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  48562. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  48563. - case $nonopt in
  48564. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  48565. - mode=link
  48566. - for arg
  48567. - do
  48568. - case $arg in
  48569. - -c)
  48570. - mode=compile
  48571. - break
  48572. - ;;
  48573. - esac
  48574. - done
  48575. - ;;
  48576. - *db | *dbx | *strace | *truss)
  48577. - mode=execute
  48578. - ;;
  48579. - *install*|cp|mv)
  48580. - mode=install
  48581. - ;;
  48582. - *rm)
  48583. - mode=uninstall
  48584. + --dry-run | -n) opt_dry_run=: ;;
  48585. + --features) func_features ;;
  48586. + --finish) mode="finish" ;;
  48587. +
  48588. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48589. + case $1 in
  48590. + # Valid mode arguments:
  48591. + clean) ;;
  48592. + compile) ;;
  48593. + execute) ;;
  48594. + finish) ;;
  48595. + install) ;;
  48596. + link) ;;
  48597. + relink) ;;
  48598. + uninstall) ;;
  48599. +
  48600. + # Catch anything else as an error
  48601. + *) func_error "invalid argument for $opt"
  48602. + exit_cmd=exit
  48603. + break
  48604. + ;;
  48605. + esac
  48606. +
  48607. + mode="$1"
  48608. + shift
  48609. + ;;
  48610. +
  48611. + --preserve-dup-deps)
  48612. + opt_duplicate_deps=: ;;
  48613. +
  48614. + --quiet|--silent) preserve_args="$preserve_args $opt"
  48615. + opt_silent=:
  48616. + ;;
  48617. +
  48618. + --verbose| -v) preserve_args="$preserve_args $opt"
  48619. + opt_silent=false
  48620. + ;;
  48621. +
  48622. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48623. + preserve_args="$preserve_args $opt $1"
  48624. + func_enable_tag "$1" # tagname is set here
  48625. + shift
  48626. + ;;
  48627. +
  48628. + # Separate optargs to long options:
  48629. + -dlopen=*|--mode=*|--tag=*)
  48630. + func_opt_split "$opt"
  48631. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  48632. + shift
  48633. + ;;
  48634. +
  48635. + -\?|-h) func_usage ;;
  48636. + --help) opt_help=: ;;
  48637. + --version) func_version ;;
  48638. +
  48639. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  48640. +
  48641. + *) nonopt="$opt"
  48642. + break
  48643. + ;;
  48644. + esac
  48645. + done
  48646. +
  48647. +
  48648. + case $host in
  48649. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  48650. + # don't eliminate duplications in $postdeps and $predeps
  48651. + opt_duplicate_compiler_generated_deps=:
  48652. ;;
  48653. *)
  48654. - # If we have no mode, but dlfiles were specified, then do execute mode.
  48655. - test -n "$execute_dlfiles" && mode=execute
  48656. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  48657. + ;;
  48658. + esac
  48659. - # Just use the default operation mode.
  48660. - if test -z "$mode"; then
  48661. - if test -n "$nonopt"; then
  48662. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  48663. - else
  48664. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  48665. - fi
  48666. + # Having warned about all mis-specified options, bail out if
  48667. + # anything was wrong.
  48668. + $exit_cmd $EXIT_FAILURE
  48669. +}
  48670. +
  48671. +# func_check_version_match
  48672. +# Ensure that we are using m4 macros, and libtool script from the same
  48673. +# release of libtool.
  48674. +func_check_version_match ()
  48675. +{
  48676. + if test "$package_revision" != "$macro_revision"; then
  48677. + if test "$VERSION" != "$macro_version"; then
  48678. + if test -z "$macro_version"; then
  48679. + cat >&2 <<_LT_EOF
  48680. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  48681. +$progname: definition of this LT_INIT comes from an older release.
  48682. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  48683. +$progname: and run autoconf again.
  48684. +_LT_EOF
  48685. + else
  48686. + cat >&2 <<_LT_EOF
  48687. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  48688. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  48689. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  48690. +$progname: and run autoconf again.
  48691. +_LT_EOF
  48692. fi
  48693. - ;;
  48694. - esac
  48695. + else
  48696. + cat >&2 <<_LT_EOF
  48697. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  48698. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  48699. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  48700. +$progname: of $PACKAGE $VERSION and run autoconf again.
  48701. +_LT_EOF
  48702. + fi
  48703. +
  48704. + exit $EXIT_MISMATCH
  48705. + fi
  48706. +}
  48707. +
  48708. +
  48709. +## ----------- ##
  48710. +## Main. ##
  48711. +## ----------- ##
  48712. +
  48713. +$opt_help || {
  48714. + # Sanity checks first:
  48715. + func_check_version_match
  48716. +
  48717. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  48718. + func_fatal_configuration "not configured to build any kind of library"
  48719. fi
  48720. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  48721. +
  48722. +
  48723. + # Darwin sucks
  48724. + eval std_shrext=\"$shrext_cmds\"
  48725. +
  48726. +
  48727. # Only execute mode is allowed to have -dlopen flags.
  48728. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  48729. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  48730. - $echo "$help" 1>&2
  48731. + func_error "unrecognized option \`-dlopen'"
  48732. + $ECHO "$help" 1>&2
  48733. exit $EXIT_FAILURE
  48734. fi
  48735. # Change the help message to a mode-specific one.
  48736. generic_help="$help"
  48737. - help="Try \`$modename --help --mode=$mode' for more information."
  48738. + help="Try \`$progname --help --mode=$mode' for more information."
  48739. +}
  48740. - # These modes are in order of execution frequency so that they run quickly.
  48741. - case $mode in
  48742. - # libtool compile mode
  48743. - compile)
  48744. - modename="$modename: compile"
  48745. - # Get the compilation command and the source file.
  48746. - base_compile=
  48747. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  48748. - suppress_opt=yes
  48749. - suppress_output=
  48750. - arg_mode=normal
  48751. - libobj=
  48752. - later=
  48753. - for arg
  48754. - do
  48755. - case $arg_mode in
  48756. - arg )
  48757. - # do not "continue". Instead, add this to base_compile
  48758. - lastarg="$arg"
  48759. - arg_mode=normal
  48760. - ;;
  48761. +# func_lalib_p file
  48762. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  48763. +# This function is only a basic sanity check; it will hardly flush out
  48764. +# determined imposters.
  48765. +func_lalib_p ()
  48766. +{
  48767. + test -f "$1" &&
  48768. + $SED -e 4q "$1" 2>/dev/null \
  48769. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  48770. +}
  48771. - target )
  48772. - libobj="$arg"
  48773. - arg_mode=normal
  48774. - continue
  48775. - ;;
  48776. +# func_lalib_unsafe_p file
  48777. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  48778. +# This function implements the same check as func_lalib_p without
  48779. +# resorting to external programs. To this end, it redirects stdin and
  48780. +# closes it afterwards, without saving the original file descriptor.
  48781. +# As a safety measure, use it only where a negative result would be
  48782. +# fatal anyway. Works if `file' does not exist.
  48783. +func_lalib_unsafe_p ()
  48784. +{
  48785. + lalib_p=no
  48786. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  48787. + for lalib_p_l in 1 2 3 4
  48788. + do
  48789. + read lalib_p_line
  48790. + case "$lalib_p_line" in
  48791. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  48792. + esac
  48793. + done
  48794. + exec 0<&5 5<&-
  48795. + fi
  48796. + test "$lalib_p" = yes
  48797. +}
  48798. - normal )
  48799. - # Accept any command-line options.
  48800. - case $arg in
  48801. - -o)
  48802. - if test -n "$libobj" ; then
  48803. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  48804. - exit $EXIT_FAILURE
  48805. - fi
  48806. - arg_mode=target
  48807. - continue
  48808. - ;;
  48809. +# func_ltwrapper_script_p file
  48810. +# True iff FILE is a libtool wrapper script
  48811. +# This function is only a basic sanity check; it will hardly flush out
  48812. +# determined imposters.
  48813. +func_ltwrapper_script_p ()
  48814. +{
  48815. + func_lalib_p "$1"
  48816. +}
  48817. - -static | -prefer-pic | -prefer-non-pic)
  48818. - later="$later $arg"
  48819. - continue
  48820. - ;;
  48821. +# func_ltwrapper_executable_p file
  48822. +# True iff FILE is a libtool wrapper executable
  48823. +# This function is only a basic sanity check; it will hardly flush out
  48824. +# determined imposters.
  48825. +func_ltwrapper_executable_p ()
  48826. +{
  48827. + func_ltwrapper_exec_suffix=
  48828. + case $1 in
  48829. + *.exe) ;;
  48830. + *) func_ltwrapper_exec_suffix=.exe ;;
  48831. + esac
  48832. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  48833. +}
  48834. +
  48835. +# func_ltwrapper_scriptname file
  48836. +# Assumes file is an ltwrapper_executable
  48837. +# uses $file to determine the appropriate filename for a
  48838. +# temporary ltwrapper_script.
  48839. +func_ltwrapper_scriptname ()
  48840. +{
  48841. + func_ltwrapper_scriptname_result=""
  48842. + if func_ltwrapper_executable_p "$1"; then
  48843. + func_dirname_and_basename "$1" "" "."
  48844. + func_stripname '' '.exe' "$func_basename_result"
  48845. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  48846. + fi
  48847. +}
  48848. +
  48849. +# func_ltwrapper_p file
  48850. +# True iff FILE is a libtool wrapper script or wrapper executable
  48851. +# This function is only a basic sanity check; it will hardly flush out
  48852. +# determined imposters.
  48853. +func_ltwrapper_p ()
  48854. +{
  48855. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  48856. +}
  48857. +
  48858. +
  48859. +# func_execute_cmds commands fail_cmd
  48860. +# Execute tilde-delimited COMMANDS.
  48861. +# If FAIL_CMD is given, eval that upon failure.
  48862. +# FAIL_CMD may read-access the current command in variable CMD!
  48863. +func_execute_cmds ()
  48864. +{
  48865. + $opt_debug
  48866. + save_ifs=$IFS; IFS='~'
  48867. + for cmd in $1; do
  48868. + IFS=$save_ifs
  48869. + eval cmd=\"$cmd\"
  48870. + func_show_eval "$cmd" "${2-:}"
  48871. + done
  48872. + IFS=$save_ifs
  48873. +}
  48874. +
  48875. +
  48876. +# func_source file
  48877. +# Source FILE, adding directory component if necessary.
  48878. +# Note that it is not necessary on cygwin/mingw to append a dot to
  48879. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  48880. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  48881. +# `FILE.' does not work on cygwin managed mounts.
  48882. +func_source ()
  48883. +{
  48884. + $opt_debug
  48885. + case $1 in
  48886. + */* | *\\*) . "$1" ;;
  48887. + *) . "./$1" ;;
  48888. + esac
  48889. +}
  48890. +
  48891. +
  48892. +# func_infer_tag arg
  48893. +# Infer tagged configuration to use if any are available and
  48894. +# if one wasn't chosen via the "--tag" command line option.
  48895. +# Only attempt this if the compiler in the base compile
  48896. +# command doesn't match the default compiler.
  48897. +# arg is usually of the form 'gcc ...'
  48898. +func_infer_tag ()
  48899. +{
  48900. + $opt_debug
  48901. + if test -n "$available_tags" && test -z "$tagname"; then
  48902. + CC_quoted=
  48903. + for arg in $CC; do
  48904. + func_quote_for_eval "$arg"
  48905. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  48906. + done
  48907. + case $@ in
  48908. + # Blanks in the command may have been stripped by the calling shell,
  48909. + # but not from the CC environment variable when configure was run.
  48910. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  48911. + # Blanks at the start of $base_compile will cause this to fail
  48912. + # if we don't check for them as well.
  48913. + *)
  48914. + for z in $available_tags; do
  48915. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  48916. + # Evaluate the configuration.
  48917. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  48918. + CC_quoted=
  48919. + for arg in $CC; do
  48920. + # Double-quote args containing other shell metacharacters.
  48921. + func_quote_for_eval "$arg"
  48922. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  48923. + done
  48924. + case "$@ " in
  48925. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  48926. + # The compiler in the base compile command matches
  48927. + # the one in the tagged configuration.
  48928. + # Assume this is the tagged configuration we want.
  48929. + tagname=$z
  48930. + break
  48931. + ;;
  48932. + esac
  48933. + fi
  48934. + done
  48935. + # If $tagname still isn't set, then no tagged configuration
  48936. + # was found and let the user know that the "--tag" command
  48937. + # line option must be used.
  48938. + if test -z "$tagname"; then
  48939. + func_echo "unable to infer tagged configuration"
  48940. + func_fatal_error "specify a tag with \`--tag'"
  48941. +# else
  48942. +# func_verbose "using $tagname tagged configuration"
  48943. + fi
  48944. + ;;
  48945. + esac
  48946. + fi
  48947. +}
  48948. +
  48949. +
  48950. +
  48951. +# func_write_libtool_object output_name pic_name nonpic_name
  48952. +# Create a libtool object file (analogous to a ".la" file),
  48953. +# but don't create it if we're doing a dry run.
  48954. +func_write_libtool_object ()
  48955. +{
  48956. + write_libobj=${1}
  48957. + if test "$build_libtool_libs" = yes; then
  48958. + write_lobj=\'${2}\'
  48959. + else
  48960. + write_lobj=none
  48961. + fi
  48962. +
  48963. + if test "$build_old_libs" = yes; then
  48964. + write_oldobj=\'${3}\'
  48965. + else
  48966. + write_oldobj=none
  48967. + fi
  48968. +
  48969. + $opt_dry_run || {
  48970. + cat >${write_libobj}T <<EOF
  48971. +# $write_libobj - a libtool object file
  48972. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  48973. +#
  48974. +# Please DO NOT delete this file!
  48975. +# It is necessary for linking the library.
  48976. +
  48977. +# Name of the PIC object.
  48978. +pic_object=$write_lobj
  48979. +
  48980. +# Name of the non-PIC object
  48981. +non_pic_object=$write_oldobj
  48982. +
  48983. +EOF
  48984. + $MV "${write_libobj}T" "${write_libobj}"
  48985. + }
  48986. +}
  48987. +
  48988. +# func_mode_compile arg...
  48989. +func_mode_compile ()
  48990. +{
  48991. + $opt_debug
  48992. + # Get the compilation command and the source file.
  48993. + base_compile=
  48994. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  48995. + suppress_opt=yes
  48996. + suppress_output=
  48997. + arg_mode=normal
  48998. + libobj=
  48999. + later=
  49000. + pie_flag=
  49001. +
  49002. + for arg
  49003. + do
  49004. + case $arg_mode in
  49005. + arg )
  49006. + # do not "continue". Instead, add this to base_compile
  49007. + lastarg="$arg"
  49008. + arg_mode=normal
  49009. + ;;
  49010. +
  49011. + target )
  49012. + libobj="$arg"
  49013. + arg_mode=normal
  49014. + continue
  49015. + ;;
  49016. +
  49017. + normal )
  49018. + # Accept any command-line options.
  49019. + case $arg in
  49020. + -o)
  49021. + test -n "$libobj" && \
  49022. + func_fatal_error "you cannot specify \`-o' more than once"
  49023. + arg_mode=target
  49024. + continue
  49025. + ;;
  49026. +
  49027. + -pie | -fpie | -fPIE)
  49028. + pie_flag="$pie_flag $arg"
  49029. + continue
  49030. + ;;
  49031. +
  49032. + -shared | -static | -prefer-pic | -prefer-non-pic)
  49033. + later="$later $arg"
  49034. + continue
  49035. + ;;
  49036. -no-suppress)
  49037. suppress_opt=no
  49038. @@ -702,31 +1157,25 @@
  49039. ;; # replaced later. I would guess that would be a bug.
  49040. -Wc,*)
  49041. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  49042. + func_stripname '-Wc,' '' "$arg"
  49043. + args=$func_stripname_result
  49044. lastarg=
  49045. save_ifs="$IFS"; IFS=','
  49046. - for arg in $args; do
  49047. + for arg in $args; do
  49048. IFS="$save_ifs"
  49049. -
  49050. - # Double-quote args containing other shell metacharacters.
  49051. - # Many Bourne shells cannot handle close brackets correctly
  49052. - # in scan sets, so we specify it separately.
  49053. - case $arg in
  49054. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49055. - arg="\"$arg\""
  49056. - ;;
  49057. - esac
  49058. - lastarg="$lastarg $arg"
  49059. + func_quote_for_eval "$arg"
  49060. + lastarg="$lastarg $func_quote_for_eval_result"
  49061. done
  49062. IFS="$save_ifs"
  49063. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  49064. + func_stripname ' ' '' "$lastarg"
  49065. + lastarg=$func_stripname_result
  49066. # Add the arguments to base_compile.
  49067. base_compile="$base_compile $lastarg"
  49068. continue
  49069. ;;
  49070. - * )
  49071. + *)
  49072. # Accept the current argument as the source file.
  49073. # The previous "srcfile" becomes the current argument.
  49074. #
  49075. @@ -738,65 +1187,42 @@
  49076. esac # case $arg_mode
  49077. # Aesthetically quote the previous argument.
  49078. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  49079. -
  49080. - case $lastarg in
  49081. - # Double-quote args containing other shell metacharacters.
  49082. - # Many Bourne shells cannot handle close brackets correctly
  49083. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  49084. - # in scan sets (worked around with variable expansion),
  49085. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  49086. - # at all, so we specify them separately.
  49087. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49088. - lastarg="\"$lastarg\""
  49089. - ;;
  49090. - esac
  49091. -
  49092. - base_compile="$base_compile $lastarg"
  49093. + func_quote_for_eval "$lastarg"
  49094. + base_compile="$base_compile $func_quote_for_eval_result"
  49095. done # for arg
  49096. case $arg_mode in
  49097. arg)
  49098. - $echo "$modename: you must specify an argument for -Xcompile"
  49099. - exit $EXIT_FAILURE
  49100. + func_fatal_error "you must specify an argument for -Xcompile"
  49101. ;;
  49102. target)
  49103. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  49104. - exit $EXIT_FAILURE
  49105. + func_fatal_error "you must specify a target with \`-o'"
  49106. ;;
  49107. *)
  49108. # Get the name of the library object.
  49109. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  49110. + test -z "$libobj" && {
  49111. + func_basename "$srcfile"
  49112. + libobj="$func_basename_result"
  49113. + }
  49114. ;;
  49115. esac
  49116. # Recognize several different file suffixes.
  49117. # If the user specifies -o file.o, it is replaced with file.lo
  49118. - xform='[cCFSifmso]'
  49119. case $libobj in
  49120. - *.ada) xform=ada ;;
  49121. - *.adb) xform=adb ;;
  49122. - *.ads) xform=ads ;;
  49123. - *.asm) xform=asm ;;
  49124. - *.c++) xform=c++ ;;
  49125. - *.cc) xform=cc ;;
  49126. - *.ii) xform=ii ;;
  49127. - *.class) xform=class ;;
  49128. - *.cpp) xform=cpp ;;
  49129. - *.cxx) xform=cxx ;;
  49130. - *.[fF][09]?) xform=[fF][09]. ;;
  49131. - *.for) xform=for ;;
  49132. - *.java) xform=java ;;
  49133. - *.obj) xform=obj ;;
  49134. + *.[cCFSifmso] | \
  49135. + *.ada | *.adb | *.ads | *.asm | \
  49136. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  49137. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  49138. + func_xform "$libobj"
  49139. + libobj=$func_xform_result
  49140. + ;;
  49141. esac
  49142. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  49143. -
  49144. case $libobj in
  49145. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  49146. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  49147. *)
  49148. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  49149. - exit $EXIT_FAILURE
  49150. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  49151. ;;
  49152. esac
  49153. @@ -804,7 +1230,15 @@
  49154. for arg in $later; do
  49155. case $arg in
  49156. + -shared)
  49157. + test "$build_libtool_libs" != yes && \
  49158. + func_fatal_configuration "can not build a shared library"
  49159. + build_old_libs=no
  49160. + continue
  49161. + ;;
  49162. +
  49163. -static)
  49164. + build_libtool_libs=no
  49165. build_old_libs=yes
  49166. continue
  49167. ;;
  49168. @@ -821,28 +1255,17 @@
  49169. esac
  49170. done
  49171. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  49172. - case $qlibobj in
  49173. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49174. - qlibobj="\"$qlibobj\"" ;;
  49175. - esac
  49176. - test "X$libobj" != "X$qlibobj" \
  49177. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  49178. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  49179. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  49180. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  49181. - if test "X$xdir" = "X$obj"; then
  49182. - xdir=
  49183. - else
  49184. - xdir=$xdir/
  49185. - fi
  49186. + func_quote_for_eval "$libobj"
  49187. + test "X$libobj" != "X$func_quote_for_eval_result" \
  49188. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  49189. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  49190. + func_dirname_and_basename "$obj" "/" ""
  49191. + objname="$func_basename_result"
  49192. + xdir="$func_dirname_result"
  49193. lobj=${xdir}$objdir/$objname
  49194. - if test -z "$base_compile"; then
  49195. - $echo "$modename: you must specify a compilation command" 1>&2
  49196. - $echo "$help" 1>&2
  49197. - exit $EXIT_FAILURE
  49198. - fi
  49199. + test -z "$base_compile" && \
  49200. + func_fatal_help "you must specify a compilation command"
  49201. # Delete any leftover library objects.
  49202. if test "$build_old_libs" = yes; then
  49203. @@ -851,12 +1274,9 @@
  49204. removelist="$lobj $libobj ${libobj}T"
  49205. fi
  49206. - $run $rm $removelist
  49207. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  49208. -
  49209. # On Cygwin there's no "real" PIC flag so we must build both object types
  49210. case $host_os in
  49211. - cygwin* | mingw* | pw32* | os2*)
  49212. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  49213. pic_mode=default
  49214. ;;
  49215. esac
  49216. @@ -868,10 +1288,8 @@
  49217. # Calculate the filename of the output object if compiler does
  49218. # not support -o with -c
  49219. if test "$compiler_c_o" = no; then
  49220. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  49221. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  49222. lockfile="$output_obj.lock"
  49223. - removelist="$removelist $output_obj $lockfile"
  49224. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  49225. else
  49226. output_obj=
  49227. need_locks=no
  49228. @@ -881,13 +1299,13 @@
  49229. # Lock this critical section if it is needed
  49230. # We use this script file to make the link, it avoids creating a new file
  49231. if test "$need_locks" = yes; then
  49232. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  49233. - $show "Waiting for $lockfile to be removed"
  49234. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  49235. + func_echo "Waiting for $lockfile to be removed"
  49236. sleep 2
  49237. done
  49238. elif test "$need_locks" = warn; then
  49239. if test -f "$lockfile"; then
  49240. - $echo "\
  49241. + $ECHO "\
  49242. *** ERROR, $lockfile exists and contains:
  49243. `cat $lockfile 2>/dev/null`
  49244. @@ -898,34 +1316,22 @@
  49245. avoid parallel builds (make -j) in this platform, or get a better
  49246. compiler."
  49247. - $run $rm $removelist
  49248. + $opt_dry_run || $RM $removelist
  49249. exit $EXIT_FAILURE
  49250. fi
  49251. - $echo "$srcfile" > "$lockfile"
  49252. + removelist="$removelist $output_obj"
  49253. + $ECHO "$srcfile" > "$lockfile"
  49254. fi
  49255. + $opt_dry_run || $RM $removelist
  49256. + removelist="$removelist $lockfile"
  49257. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  49258. +
  49259. if test -n "$fix_srcfile_path"; then
  49260. eval srcfile=\"$fix_srcfile_path\"
  49261. fi
  49262. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  49263. - case $qsrcfile in
  49264. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49265. - qsrcfile="\"$qsrcfile\"" ;;
  49266. - esac
  49267. -
  49268. - $run $rm "$libobj" "${libobj}T"
  49269. -
  49270. - # Create a libtool object file (analogous to a ".la" file),
  49271. - # but don't create it if we're doing a dry run.
  49272. - test -z "$run" && cat > ${libobj}T <<EOF
  49273. -# $libobj - a libtool object file
  49274. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  49275. -#
  49276. -# Please DO NOT delete this file!
  49277. -# It is necessary for linking the library.
  49278. -
  49279. -# Name of the PIC object.
  49280. -EOF
  49281. + func_quote_for_eval "$srcfile"
  49282. + qsrcfile=$func_quote_for_eval_result
  49283. # Only build a PIC object if we are building libtool libraries.
  49284. if test "$build_libtool_libs" = yes; then
  49285. @@ -939,32 +1345,19 @@
  49286. command="$base_compile $qsrcfile"
  49287. fi
  49288. - if test ! -d "${xdir}$objdir"; then
  49289. - $show "$mkdir ${xdir}$objdir"
  49290. - $run $mkdir ${xdir}$objdir
  49291. - exit_status=$?
  49292. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  49293. - exit $exit_status
  49294. - fi
  49295. - fi
  49296. + func_mkdir_p "$xdir$objdir"
  49297. if test -z "$output_obj"; then
  49298. # Place PIC objects in $objdir
  49299. command="$command -o $lobj"
  49300. fi
  49301. - $run $rm "$lobj" "$output_obj"
  49302. -
  49303. - $show "$command"
  49304. - if $run eval "$command"; then :
  49305. - else
  49306. - test -n "$output_obj" && $run $rm $removelist
  49307. - exit $EXIT_FAILURE
  49308. - fi
  49309. + func_show_eval_locale "$command" \
  49310. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  49311. if test "$need_locks" = warn &&
  49312. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  49313. - $echo "\
  49314. + $ECHO "\
  49315. *** ERROR, $lockfile contains:
  49316. `cat $lockfile 2>/dev/null`
  49317. @@ -978,45 +1371,27 @@
  49318. avoid parallel builds (make -j) in this platform, or get a better
  49319. compiler."
  49320. - $run $rm $removelist
  49321. + $opt_dry_run || $RM $removelist
  49322. exit $EXIT_FAILURE
  49323. fi
  49324. # Just move the object if needed, then go on to compile the next one
  49325. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  49326. - $show "$mv $output_obj $lobj"
  49327. - if $run $mv $output_obj $lobj; then :
  49328. - else
  49329. - error=$?
  49330. - $run $rm $removelist
  49331. - exit $error
  49332. - fi
  49333. + func_show_eval '$MV "$output_obj" "$lobj"' \
  49334. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  49335. fi
  49336. - # Append the name of the PIC object to the libtool object file.
  49337. - test -z "$run" && cat >> ${libobj}T <<EOF
  49338. -pic_object='$objdir/$objname'
  49339. -
  49340. -EOF
  49341. -
  49342. # Allow error messages only from the first compilation.
  49343. if test "$suppress_opt" = yes; then
  49344. - suppress_output=' >/dev/null 2>&1'
  49345. + suppress_output=' >/dev/null 2>&1'
  49346. fi
  49347. - else
  49348. - # No PIC object so indicate it doesn't exist in the libtool
  49349. - # object file.
  49350. - test -z "$run" && cat >> ${libobj}T <<EOF
  49351. -pic_object=none
  49352. -
  49353. -EOF
  49354. fi
  49355. # Only build a position-dependent object if we build old libraries.
  49356. if test "$build_old_libs" = yes; then
  49357. if test "$pic_mode" != yes; then
  49358. # Don't build PIC code
  49359. - command="$base_compile $qsrcfile"
  49360. + command="$base_compile $qsrcfile$pie_flag"
  49361. else
  49362. command="$base_compile $qsrcfile $pic_flag"
  49363. fi
  49364. @@ -1026,17 +1401,12 @@
  49365. # Suppress compiler output if we already did a PIC compilation.
  49366. command="$command$suppress_output"
  49367. - $run $rm "$obj" "$output_obj"
  49368. - $show "$command"
  49369. - if $run eval "$command"; then :
  49370. - else
  49371. - $run $rm $removelist
  49372. - exit $EXIT_FAILURE
  49373. - fi
  49374. + func_show_eval_locale "$command" \
  49375. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  49376. if test "$need_locks" = warn &&
  49377. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  49378. - $echo "\
  49379. + $ECHO "\
  49380. *** ERROR, $lockfile contains:
  49381. `cat $lockfile 2>/dev/null`
  49382. @@ -1050,5466 +1420,6784 @@
  49383. avoid parallel builds (make -j) in this platform, or get a better
  49384. compiler."
  49385. - $run $rm $removelist
  49386. + $opt_dry_run || $RM $removelist
  49387. exit $EXIT_FAILURE
  49388. fi
  49389. # Just move the object if needed
  49390. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  49391. - $show "$mv $output_obj $obj"
  49392. - if $run $mv $output_obj $obj; then :
  49393. - else
  49394. - error=$?
  49395. - $run $rm $removelist
  49396. - exit $error
  49397. - fi
  49398. + func_show_eval '$MV "$output_obj" "$obj"' \
  49399. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  49400. fi
  49401. -
  49402. - # Append the name of the non-PIC object the libtool object file.
  49403. - # Only append if the libtool object file exists.
  49404. - test -z "$run" && cat >> ${libobj}T <<EOF
  49405. -# Name of the non-PIC object.
  49406. -non_pic_object='$objname'
  49407. -
  49408. -EOF
  49409. - else
  49410. - # Append the name of the non-PIC object the libtool object file.
  49411. - # Only append if the libtool object file exists.
  49412. - test -z "$run" && cat >> ${libobj}T <<EOF
  49413. -# Name of the non-PIC object.
  49414. -non_pic_object=none
  49415. -
  49416. -EOF
  49417. fi
  49418. - $run $mv "${libobj}T" "${libobj}"
  49419. + $opt_dry_run || {
  49420. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  49421. - # Unlock the critical section if it was locked
  49422. - if test "$need_locks" != no; then
  49423. - $run $rm "$lockfile"
  49424. - fi
  49425. + # Unlock the critical section if it was locked
  49426. + if test "$need_locks" != no; then
  49427. + removelist=$lockfile
  49428. + $RM "$lockfile"
  49429. + fi
  49430. + }
  49431. exit $EXIT_SUCCESS
  49432. - ;;
  49433. +}
  49434. - # libtool link mode
  49435. - link | relink)
  49436. - modename="$modename: link"
  49437. - case $host in
  49438. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49439. - # It is impossible to link a dll without this setting, and
  49440. - # we shouldn't force the makefile maintainer to figure out
  49441. - # which system we are compiling for in order to pass an extra
  49442. - # flag for every libtool invocation.
  49443. - # allow_undefined=no
  49444. +$opt_help || {
  49445. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  49446. +}
  49447. - # FIXME: Unfortunately, there are problems with the above when trying
  49448. - # to make a dll which has undefined symbols, in which case not
  49449. - # even a static library is built. For now, we need to specify
  49450. - # -no-undefined on the libtool link line when we can be certain
  49451. - # that all symbols are satisfied, otherwise we get a static library.
  49452. - allow_undefined=yes
  49453. - ;;
  49454. - *)
  49455. - allow_undefined=yes
  49456. - ;;
  49457. - esac
  49458. - libtool_args="$nonopt"
  49459. - base_compile="$nonopt $@"
  49460. - compile_command="$nonopt"
  49461. - finalize_command="$nonopt"
  49462. +func_mode_help ()
  49463. +{
  49464. + # We need to display help for each of the modes.
  49465. + case $mode in
  49466. + "")
  49467. + # Generic help is extracted from the usage comments
  49468. + # at the start of this file.
  49469. + func_help
  49470. + ;;
  49471. - compile_rpath=
  49472. - finalize_rpath=
  49473. - compile_shlibpath=
  49474. - finalize_shlibpath=
  49475. - convenience=
  49476. - old_convenience=
  49477. - deplibs=
  49478. - old_deplibs=
  49479. - compiler_flags=
  49480. - linker_flags=
  49481. - dllsearchpath=
  49482. - lib_search_path=`pwd`
  49483. - inst_prefix_dir=
  49484. + clean)
  49485. + $ECHO \
  49486. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  49487. - avoid_version=no
  49488. - dlfiles=
  49489. - dlprefiles=
  49490. - dlself=no
  49491. - export_dynamic=no
  49492. - export_symbols=
  49493. - export_symbols_regex=
  49494. - generated=
  49495. - libobjs=
  49496. - ltlibs=
  49497. - module=no
  49498. - no_install=no
  49499. - objs=
  49500. - non_pic_objects=
  49501. - notinst_path= # paths that contain not-installed libtool libraries
  49502. - precious_files_regex=
  49503. - prefer_static_libs=no
  49504. - preload=no
  49505. - prev=
  49506. - prevarg=
  49507. - release=
  49508. - rpath=
  49509. - xrpath=
  49510. - perm_rpath=
  49511. - temp_rpath=
  49512. - thread_safe=no
  49513. - vinfo=
  49514. - vinfo_number=no
  49515. +Remove files from the build directory.
  49516. - func_infer_tag $base_compile
  49517. +RM is the name of the program to use to delete files associated with each FILE
  49518. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  49519. +to RM.
  49520. - # We need to know -static, to get the right output filenames.
  49521. - for arg
  49522. - do
  49523. - case $arg in
  49524. - -all-static | -static | -static-libtool-libs)
  49525. - case $arg in
  49526. - -all-static)
  49527. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  49528. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  49529. - fi
  49530. - if test -n "$link_static_flag"; then
  49531. - dlopen_self=$dlopen_self_static
  49532. - fi
  49533. - prefer_static_libs=yes
  49534. - ;;
  49535. - -static)
  49536. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  49537. - dlopen_self=$dlopen_self_static
  49538. - fi
  49539. - prefer_static_libs=built
  49540. - ;;
  49541. - -static-libtool-libs)
  49542. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  49543. - dlopen_self=$dlopen_self_static
  49544. - fi
  49545. - prefer_static_libs=yes
  49546. - ;;
  49547. - esac
  49548. - build_libtool_libs=no
  49549. - build_old_libs=yes
  49550. - break
  49551. - ;;
  49552. - esac
  49553. - done
  49554. +If FILE is a libtool library, object or program, all the files associated
  49555. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  49556. + ;;
  49557. - # See if our shared archives depend on static archives.
  49558. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  49559. + compile)
  49560. + $ECHO \
  49561. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  49562. - # Go through the arguments, transforming them on the way.
  49563. - while test "$#" -gt 0; do
  49564. - arg="$1"
  49565. - shift
  49566. - case $arg in
  49567. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49568. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  49569. - ;;
  49570. - *) qarg=$arg ;;
  49571. - esac
  49572. - libtool_args="$libtool_args $qarg"
  49573. +Compile a source file into a libtool library object.
  49574. - # If the previous option needs an argument, assign it.
  49575. - if test -n "$prev"; then
  49576. - case $prev in
  49577. - output)
  49578. - compile_command="$compile_command @OUTPUT@"
  49579. - finalize_command="$finalize_command @OUTPUT@"
  49580. - ;;
  49581. - esac
  49582. +This mode accepts the following additional options:
  49583. - case $prev in
  49584. - dlfiles|dlprefiles)
  49585. - if test "$preload" = no; then
  49586. - # Add the symbol object into the linking commands.
  49587. - compile_command="$compile_command @SYMFILE@"
  49588. - finalize_command="$finalize_command @SYMFILE@"
  49589. - preload=yes
  49590. - fi
  49591. - case $arg in
  49592. - *.la | *.lo) ;; # We handle these cases below.
  49593. - force)
  49594. - if test "$dlself" = no; then
  49595. - dlself=needless
  49596. - export_dynamic=yes
  49597. - fi
  49598. - prev=
  49599. - continue
  49600. - ;;
  49601. - self)
  49602. - if test "$prev" = dlprefiles; then
  49603. - dlself=yes
  49604. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  49605. - dlself=yes
  49606. - else
  49607. - dlself=needless
  49608. - export_dynamic=yes
  49609. - fi
  49610. - prev=
  49611. - continue
  49612. - ;;
  49613. - *)
  49614. - if test "$prev" = dlfiles; then
  49615. - dlfiles="$dlfiles $arg"
  49616. - else
  49617. - dlprefiles="$dlprefiles $arg"
  49618. - fi
  49619. - prev=
  49620. - continue
  49621. - ;;
  49622. - esac
  49623. - ;;
  49624. - expsyms)
  49625. - export_symbols="$arg"
  49626. - if test ! -f "$arg"; then
  49627. - $echo "$modename: symbol file \`$arg' does not exist"
  49628. - exit $EXIT_FAILURE
  49629. - fi
  49630. - prev=
  49631. - continue
  49632. - ;;
  49633. - expsyms_regex)
  49634. - export_symbols_regex="$arg"
  49635. - prev=
  49636. - continue
  49637. - ;;
  49638. - inst_prefix)
  49639. - inst_prefix_dir="$arg"
  49640. - prev=
  49641. - continue
  49642. - ;;
  49643. - precious_regex)
  49644. - precious_files_regex="$arg"
  49645. - prev=
  49646. - continue
  49647. - ;;
  49648. - release)
  49649. - release="-$arg"
  49650. - prev=
  49651. - continue
  49652. - ;;
  49653. - objectlist)
  49654. - if test -f "$arg"; then
  49655. - save_arg=$arg
  49656. - moreargs=
  49657. - for fil in `cat $save_arg`
  49658. - do
  49659. -# moreargs="$moreargs $fil"
  49660. - arg=$fil
  49661. - # A libtool-controlled object.
  49662. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  49663. + -no-suppress do not suppress compiler output for multiple passes
  49664. + -prefer-pic try to building PIC objects only
  49665. + -prefer-non-pic try to building non-PIC objects only
  49666. + -shared do not build a \`.o' file suitable for static linking
  49667. + -static only build a \`.o' file suitable for static linking
  49668. - # Check to see that this really is a libtool object.
  49669. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49670. - pic_object=
  49671. - non_pic_object=
  49672. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  49673. +from the given SOURCEFILE.
  49674. - # Read the .lo file
  49675. - # If there is no directory component, then add one.
  49676. - case $arg in
  49677. - */* | *\\*) . $arg ;;
  49678. - *) . ./$arg ;;
  49679. - esac
  49680. +The output file name is determined by removing the directory component from
  49681. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  49682. +library object suffix, \`.lo'."
  49683. + ;;
  49684. - if test -z "$pic_object" || \
  49685. - test -z "$non_pic_object" ||
  49686. - test "$pic_object" = none && \
  49687. - test "$non_pic_object" = none; then
  49688. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  49689. - exit $EXIT_FAILURE
  49690. - fi
  49691. + execute)
  49692. + $ECHO \
  49693. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  49694. - # Extract subdirectory from the argument.
  49695. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49696. - if test "X$xdir" = "X$arg"; then
  49697. - xdir=
  49698. - else
  49699. - xdir="$xdir/"
  49700. - fi
  49701. +Automatically set library path, then run a program.
  49702. - if test "$pic_object" != none; then
  49703. - # Prepend the subdirectory the object is found in.
  49704. - pic_object="$xdir$pic_object"
  49705. +This mode accepts the following additional options:
  49706. - if test "$prev" = dlfiles; then
  49707. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  49708. - dlfiles="$dlfiles $pic_object"
  49709. - prev=
  49710. - continue
  49711. - else
  49712. - # If libtool objects are unsupported, then we need to preload.
  49713. - prev=dlprefiles
  49714. - fi
  49715. - fi
  49716. + -dlopen FILE add the directory containing FILE to the library path
  49717. - # CHECK ME: I think I busted this. -Ossama
  49718. - if test "$prev" = dlprefiles; then
  49719. - # Preload the old-style object.
  49720. - dlprefiles="$dlprefiles $pic_object"
  49721. - prev=
  49722. - fi
  49723. +This mode sets the library path environment variable according to \`-dlopen'
  49724. +flags.
  49725. - # A PIC object.
  49726. - libobjs="$libobjs $pic_object"
  49727. - arg="$pic_object"
  49728. - fi
  49729. +If any of the ARGS are libtool executable wrappers, then they are translated
  49730. +into their corresponding uninstalled binary, and any of their required library
  49731. +directories are added to the library path.
  49732. - # Non-PIC object.
  49733. - if test "$non_pic_object" != none; then
  49734. - # Prepend the subdirectory the object is found in.
  49735. - non_pic_object="$xdir$non_pic_object"
  49736. +Then, COMMAND is executed, with ARGS as arguments."
  49737. + ;;
  49738. - # A standard non-PIC object
  49739. - non_pic_objects="$non_pic_objects $non_pic_object"
  49740. - if test -z "$pic_object" || test "$pic_object" = none ; then
  49741. - arg="$non_pic_object"
  49742. - fi
  49743. - else
  49744. - # If the PIC object exists, use it instead.
  49745. - # $xdir was prepended to $pic_object above.
  49746. - non_pic_object="$pic_object"
  49747. - non_pic_objects="$non_pic_objects $non_pic_object"
  49748. - fi
  49749. - else
  49750. - # Only an error if not doing a dry-run.
  49751. - if test -z "$run"; then
  49752. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  49753. - exit $EXIT_FAILURE
  49754. - else
  49755. - # Dry-run case.
  49756. + finish)
  49757. + $ECHO \
  49758. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  49759. - # Extract subdirectory from the argument.
  49760. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49761. - if test "X$xdir" = "X$arg"; then
  49762. - xdir=
  49763. - else
  49764. - xdir="$xdir/"
  49765. - fi
  49766. +Complete the installation of libtool libraries.
  49767. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  49768. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  49769. - libobjs="$libobjs $pic_object"
  49770. - non_pic_objects="$non_pic_objects $non_pic_object"
  49771. - fi
  49772. - fi
  49773. - done
  49774. - else
  49775. - $echo "$modename: link input file \`$save_arg' does not exist"
  49776. - exit $EXIT_FAILURE
  49777. - fi
  49778. - arg=$save_arg
  49779. - prev=
  49780. - continue
  49781. - ;;
  49782. - rpath | xrpath)
  49783. - # We need an absolute path.
  49784. - case $arg in
  49785. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  49786. - *)
  49787. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  49788. - exit $EXIT_FAILURE
  49789. - ;;
  49790. - esac
  49791. - if test "$prev" = rpath; then
  49792. - case "$rpath " in
  49793. - *" $arg "*) ;;
  49794. - *) rpath="$rpath $arg" ;;
  49795. - esac
  49796. - else
  49797. - case "$xrpath " in
  49798. - *" $arg "*) ;;
  49799. - *) xrpath="$xrpath $arg" ;;
  49800. - esac
  49801. - fi
  49802. - prev=
  49803. - continue
  49804. - ;;
  49805. - xcompiler)
  49806. - compiler_flags="$compiler_flags $qarg"
  49807. - prev=
  49808. - compile_command="$compile_command $qarg"
  49809. - finalize_command="$finalize_command $qarg"
  49810. - continue
  49811. - ;;
  49812. - xlinker)
  49813. - linker_flags="$linker_flags $qarg"
  49814. - compiler_flags="$compiler_flags $wl$qarg"
  49815. - prev=
  49816. - compile_command="$compile_command $wl$qarg"
  49817. - finalize_command="$finalize_command $wl$qarg"
  49818. - continue
  49819. - ;;
  49820. - xcclinker)
  49821. - linker_flags="$linker_flags $qarg"
  49822. - compiler_flags="$compiler_flags $qarg"
  49823. - prev=
  49824. - compile_command="$compile_command $qarg"
  49825. - finalize_command="$finalize_command $qarg"
  49826. - continue
  49827. - ;;
  49828. - shrext)
  49829. - shrext_cmds="$arg"
  49830. - prev=
  49831. - continue
  49832. - ;;
  49833. - darwin_framework|darwin_framework_skip)
  49834. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  49835. - compile_command="$compile_command $arg"
  49836. - finalize_command="$finalize_command $arg"
  49837. - prev=
  49838. - continue
  49839. - ;;
  49840. - *)
  49841. - eval "$prev=\"\$arg\""
  49842. - prev=
  49843. - continue
  49844. - ;;
  49845. - esac
  49846. - fi # test -n "$prev"
  49847. -
  49848. - prevarg="$arg"
  49849. +Each LIBDIR is a directory that contains libtool libraries.
  49850. - case $arg in
  49851. - -all-static)
  49852. - if test -n "$link_static_flag"; then
  49853. - compile_command="$compile_command $link_static_flag"
  49854. - finalize_command="$finalize_command $link_static_flag"
  49855. - fi
  49856. - continue
  49857. - ;;
  49858. +The commands that this mode executes may require superuser privileges. Use
  49859. +the \`--dry-run' option if you just want to see what would be executed."
  49860. + ;;
  49861. - -allow-undefined)
  49862. - # FIXME: remove this flag sometime in the future.
  49863. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  49864. - continue
  49865. - ;;
  49866. + install)
  49867. + $ECHO \
  49868. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  49869. - -avoid-version)
  49870. - avoid_version=yes
  49871. - continue
  49872. - ;;
  49873. +Install executables or libraries.
  49874. - -dlopen)
  49875. - prev=dlfiles
  49876. - continue
  49877. - ;;
  49878. +INSTALL-COMMAND is the installation command. The first component should be
  49879. +either the \`install' or \`cp' program.
  49880. - -dlpreopen)
  49881. - prev=dlprefiles
  49882. - continue
  49883. - ;;
  49884. +The following components of INSTALL-COMMAND are treated specially:
  49885. - -export-dynamic)
  49886. - export_dynamic=yes
  49887. - continue
  49888. - ;;
  49889. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  49890. - -export-symbols | -export-symbols-regex)
  49891. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  49892. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  49893. - exit $EXIT_FAILURE
  49894. - fi
  49895. - if test "X$arg" = "X-export-symbols"; then
  49896. - prev=expsyms
  49897. - else
  49898. - prev=expsyms_regex
  49899. - fi
  49900. - continue
  49901. - ;;
  49902. +The rest of the components are interpreted as arguments to that command (only
  49903. +BSD-compatible install options are recognized)."
  49904. + ;;
  49905. - -framework|-arch|-isysroot)
  49906. - case " $CC " in
  49907. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  49908. - prev=darwin_framework_skip ;;
  49909. - *) compiler_flags="$compiler_flags $arg"
  49910. - prev=darwin_framework ;;
  49911. - esac
  49912. - compile_command="$compile_command $arg"
  49913. - finalize_command="$finalize_command $arg"
  49914. - continue
  49915. - ;;
  49916. + link)
  49917. + $ECHO \
  49918. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  49919. - -inst-prefix-dir)
  49920. - prev=inst_prefix
  49921. - continue
  49922. - ;;
  49923. +Link object files or libraries together to form another library, or to
  49924. +create an executable program.
  49925. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  49926. - # so, if we see these flags be careful not to treat them like -L
  49927. - -L[A-Z][A-Z]*:*)
  49928. - case $with_gcc/$host in
  49929. - no/*-*-irix* | /*-*-irix*)
  49930. - compile_command="$compile_command $arg"
  49931. - finalize_command="$finalize_command $arg"
  49932. - ;;
  49933. - esac
  49934. - continue
  49935. - ;;
  49936. +LINK-COMMAND is a command using the C compiler that you would use to create
  49937. +a program from several object files.
  49938. - -L*)
  49939. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  49940. - # We need an absolute path.
  49941. - case $dir in
  49942. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  49943. - *)
  49944. - absdir=`cd "$dir" && pwd`
  49945. - if test -z "$absdir"; then
  49946. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  49947. - absdir="$dir"
  49948. - notinst_path="$notinst_path $dir"
  49949. - fi
  49950. - dir="$absdir"
  49951. - ;;
  49952. - esac
  49953. - case "$deplibs " in
  49954. - *" -L$dir "*) ;;
  49955. - *)
  49956. - deplibs="$deplibs -L$dir"
  49957. - lib_search_path="$lib_search_path $dir"
  49958. - ;;
  49959. - esac
  49960. - case $host in
  49961. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49962. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  49963. - case :$dllsearchpath: in
  49964. - *":$dir:"*) ;;
  49965. - *) dllsearchpath="$dllsearchpath:$dir";;
  49966. - esac
  49967. - case :$dllsearchpath: in
  49968. - *":$testbindir:"*) ;;
  49969. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  49970. - esac
  49971. - ;;
  49972. - esac
  49973. - continue
  49974. - ;;
  49975. +The following components of LINK-COMMAND are treated specially:
  49976. - -l*)
  49977. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  49978. - case $host in
  49979. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  49980. - # These systems don't actually have a C or math library (as such)
  49981. - continue
  49982. - ;;
  49983. - *-*-os2*)
  49984. - # These systems don't actually have a C library (as such)
  49985. - test "X$arg" = "X-lc" && continue
  49986. - ;;
  49987. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  49988. - # Do not include libc due to us having libc/libc_r.
  49989. - test "X$arg" = "X-lc" && continue
  49990. - ;;
  49991. - *-*-rhapsody* | *-*-darwin1.[012])
  49992. - # Rhapsody C and math libraries are in the System framework
  49993. - deplibs="$deplibs -framework System"
  49994. - continue
  49995. - ;;
  49996. - *-*-sco3.2v5* | *-*-sco5v6*)
  49997. - # Causes problems with __ctype
  49998. - test "X$arg" = "X-lc" && continue
  49999. - ;;
  50000. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  50001. - # Compiler inserts libc in the correct place for threads to work
  50002. - test "X$arg" = "X-lc" && continue
  50003. - ;;
  50004. - esac
  50005. - elif test "X$arg" = "X-lc_r"; then
  50006. - case $host in
  50007. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  50008. - # Do not include libc_r directly, use -pthread flag.
  50009. - continue
  50010. - ;;
  50011. - esac
  50012. - fi
  50013. - deplibs="$deplibs $arg"
  50014. - continue
  50015. - ;;
  50016. + -all-static do not do any dynamic linking at all
  50017. + -avoid-version do not add a version suffix if possible
  50018. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  50019. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  50020. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  50021. + -export-symbols SYMFILE
  50022. + try to export only the symbols listed in SYMFILE
  50023. + -export-symbols-regex REGEX
  50024. + try to export only the symbols matching REGEX
  50025. + -LLIBDIR search LIBDIR for required installed libraries
  50026. + -lNAME OUTPUT-FILE requires the installed library libNAME
  50027. + -module build a library that can dlopened
  50028. + -no-fast-install disable the fast-install mode
  50029. + -no-install link a not-installable executable
  50030. + -no-undefined declare that a library does not refer to external symbols
  50031. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  50032. + -objectlist FILE Use a list of object files found in FILE to specify objects
  50033. + -precious-files-regex REGEX
  50034. + don't remove output files matching REGEX
  50035. + -release RELEASE specify package release information
  50036. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  50037. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  50038. + -shared only do dynamic linking of libtool libraries
  50039. + -shrext SUFFIX override the standard shared library file extension
  50040. + -static do not do any dynamic linking of uninstalled libtool libraries
  50041. + -static-libtool-libs
  50042. + do not do any dynamic linking of libtool libraries
  50043. + -version-info CURRENT[:REVISION[:AGE]]
  50044. + specify library version info [each variable defaults to 0]
  50045. + -weak LIBNAME declare that the target provides the LIBNAME interface
  50046. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  50047. - # classes, name mangling, and exception handling.
  50048. - -model)
  50049. - compile_command="$compile_command $arg"
  50050. - compiler_flags="$compiler_flags $arg"
  50051. - finalize_command="$finalize_command $arg"
  50052. - prev=xcompiler
  50053. - continue
  50054. - ;;
  50055. +All other options (arguments beginning with \`-') are ignored.
  50056. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  50057. - compiler_flags="$compiler_flags $arg"
  50058. - compile_command="$compile_command $arg"
  50059. - finalize_command="$finalize_command $arg"
  50060. - continue
  50061. - ;;
  50062. +Every other argument is treated as a filename. Files ending in \`.la' are
  50063. +treated as uninstalled libtool libraries, other files are standard or library
  50064. +object files.
  50065. - -module)
  50066. - module=yes
  50067. - continue
  50068. - ;;
  50069. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  50070. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  50071. +required, except when creating a convenience library.
  50072. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  50073. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  50074. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  50075. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  50076. - # -q* pass through compiler args for the IBM compiler
  50077. - # -m* pass through architecture-specific compiler args for GCC
  50078. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  50079. - # compiler args for GCC
  50080. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  50081. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  50082. - # @file GCC response files
  50083. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  50084. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  50085. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  50086. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  50087. - # Unknown arguments in both finalize_command and compile_command need
  50088. - # to be aesthetically quoted because they are evaled later.
  50089. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50090. - case $arg in
  50091. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50092. - arg="\"$arg\""
  50093. - ;;
  50094. - esac
  50095. - compile_command="$compile_command $arg"
  50096. - finalize_command="$finalize_command $arg"
  50097. - compiler_flags="$compiler_flags $arg"
  50098. - continue
  50099. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  50100. +is created, otherwise an executable program is created."
  50101. ;;
  50102. - -shrext)
  50103. - prev=shrext
  50104. - continue
  50105. - ;;
  50106. -
  50107. - -no-fast-install)
  50108. - fast_install=no
  50109. - continue
  50110. - ;;
  50111. + uninstall)
  50112. + $ECHO \
  50113. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  50114. - -no-install)
  50115. - case $host in
  50116. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  50117. - # The PATH hackery in wrapper scripts is required on Windows
  50118. - # and Darwin in order for the loader to find any dlls it needs.
  50119. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  50120. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  50121. - fast_install=no
  50122. - ;;
  50123. - *) no_install=yes ;;
  50124. - esac
  50125. - continue
  50126. - ;;
  50127. +Remove libraries from an installation directory.
  50128. - -no-undefined)
  50129. - allow_undefined=no
  50130. - continue
  50131. - ;;
  50132. +RM is the name of the program to use to delete files associated with each FILE
  50133. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  50134. +to RM.
  50135. - -objectlist)
  50136. - prev=objectlist
  50137. - continue
  50138. - ;;
  50139. +If FILE is a libtool library, all the files associated with it are deleted.
  50140. +Otherwise, only FILE itself is deleted using RM."
  50141. + ;;
  50142. - -o) prev=output ;;
  50143. + *)
  50144. + func_fatal_help "invalid operation mode \`$mode'"
  50145. + ;;
  50146. + esac
  50147. - -precious-files-regex)
  50148. - prev=precious_regex
  50149. - continue
  50150. - ;;
  50151. + $ECHO
  50152. + $ECHO "Try \`$progname --help' for more information about other modes."
  50153. - -release)
  50154. - prev=release
  50155. - continue
  50156. - ;;
  50157. + exit $?
  50158. +}
  50159. - -rpath)
  50160. - prev=rpath
  50161. - continue
  50162. - ;;
  50163. + # Now that we've collected a possible --mode arg, show help if necessary
  50164. + $opt_help && func_mode_help
  50165. - -R)
  50166. - prev=xrpath
  50167. - continue
  50168. - ;;
  50169. - -R*)
  50170. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  50171. - # We need an absolute path.
  50172. - case $dir in
  50173. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  50174. - *)
  50175. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  50176. - exit $EXIT_FAILURE
  50177. - ;;
  50178. - esac
  50179. - case "$xrpath " in
  50180. - *" $dir "*) ;;
  50181. - *) xrpath="$xrpath $dir" ;;
  50182. - esac
  50183. - continue
  50184. - ;;
  50185. +# func_mode_execute arg...
  50186. +func_mode_execute ()
  50187. +{
  50188. + $opt_debug
  50189. + # The first argument is the command name.
  50190. + cmd="$nonopt"
  50191. + test -z "$cmd" && \
  50192. + func_fatal_help "you must specify a COMMAND"
  50193. - -static | -static-libtool-libs)
  50194. - # The effects of -static are defined in a previous loop.
  50195. - # We used to do the same as -all-static on platforms that
  50196. - # didn't have a PIC flag, but the assumption that the effects
  50197. - # would be equivalent was wrong. It would break on at least
  50198. - # Digital Unix and AIX.
  50199. - continue
  50200. - ;;
  50201. + # Handle -dlopen flags immediately.
  50202. + for file in $execute_dlfiles; do
  50203. + test -f "$file" \
  50204. + || func_fatal_help "\`$file' is not a file"
  50205. - -thread-safe)
  50206. - thread_safe=yes
  50207. - continue
  50208. - ;;
  50209. + dir=
  50210. + case $file in
  50211. + *.la)
  50212. + # Check to see that this really is a libtool archive.
  50213. + func_lalib_unsafe_p "$file" \
  50214. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  50215. - -version-info)
  50216. - prev=vinfo
  50217. - continue
  50218. - ;;
  50219. - -version-number)
  50220. - prev=vinfo
  50221. - vinfo_number=yes
  50222. - continue
  50223. - ;;
  50224. + # Read the libtool library.
  50225. + dlname=
  50226. + library_names=
  50227. + func_source "$file"
  50228. - -Wc,*)
  50229. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  50230. - arg=
  50231. - save_ifs="$IFS"; IFS=','
  50232. - for flag in $args; do
  50233. - IFS="$save_ifs"
  50234. - case $flag in
  50235. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50236. - flag="\"$flag\""
  50237. - ;;
  50238. - esac
  50239. - arg="$arg $wl$flag"
  50240. - compiler_flags="$compiler_flags $flag"
  50241. - done
  50242. - IFS="$save_ifs"
  50243. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  50244. - ;;
  50245. + # Skip this library if it cannot be dlopened.
  50246. + if test -z "$dlname"; then
  50247. + # Warn if it was a shared library.
  50248. + test -n "$library_names" && \
  50249. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  50250. + continue
  50251. + fi
  50252. - -Wl,*)
  50253. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  50254. - arg=
  50255. - save_ifs="$IFS"; IFS=','
  50256. - for flag in $args; do
  50257. - IFS="$save_ifs"
  50258. - case $flag in
  50259. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50260. - flag="\"$flag\""
  50261. - ;;
  50262. - esac
  50263. - arg="$arg $wl$flag"
  50264. - compiler_flags="$compiler_flags $wl$flag"
  50265. - linker_flags="$linker_flags $flag"
  50266. - done
  50267. - IFS="$save_ifs"
  50268. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  50269. - ;;
  50270. + func_dirname "$file" "" "."
  50271. + dir="$func_dirname_result"
  50272. - -Xcompiler)
  50273. - prev=xcompiler
  50274. - continue
  50275. + if test -f "$dir/$objdir/$dlname"; then
  50276. + dir="$dir/$objdir"
  50277. + else
  50278. + if test ! -f "$dir/$dlname"; then
  50279. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  50280. + fi
  50281. + fi
  50282. ;;
  50283. - -Xlinker)
  50284. - prev=xlinker
  50285. - continue
  50286. + *.lo)
  50287. + # Just add the directory containing the .lo file.
  50288. + func_dirname "$file" "" "."
  50289. + dir="$func_dirname_result"
  50290. ;;
  50291. - -XCClinker)
  50292. - prev=xcclinker
  50293. + *)
  50294. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  50295. continue
  50296. ;;
  50297. + esac
  50298. - # Some other compiler flag.
  50299. - -* | +*)
  50300. - # Unknown arguments in both finalize_command and compile_command need
  50301. - # to be aesthetically quoted because they are evaled later.
  50302. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50303. - case $arg in
  50304. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50305. - arg="\"$arg\""
  50306. - ;;
  50307. - esac
  50308. - ;;
  50309. -
  50310. - *.$objext)
  50311. - # A standard object.
  50312. - objs="$objs $arg"
  50313. - ;;
  50314. -
  50315. - *.lo)
  50316. - # A libtool-controlled object.
  50317. -
  50318. - # Check to see that this really is a libtool object.
  50319. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50320. - pic_object=
  50321. - non_pic_object=
  50322. + # Get the absolute pathname.
  50323. + absdir=`cd "$dir" && pwd`
  50324. + test -n "$absdir" && dir="$absdir"
  50325. - # Read the .lo file
  50326. - # If there is no directory component, then add one.
  50327. - case $arg in
  50328. - */* | *\\*) . $arg ;;
  50329. - *) . ./$arg ;;
  50330. - esac
  50331. + # Now add the directory to shlibpath_var.
  50332. + if eval "test -z \"\$$shlibpath_var\""; then
  50333. + eval "$shlibpath_var=\"\$dir\""
  50334. + else
  50335. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  50336. + fi
  50337. + done
  50338. - if test -z "$pic_object" || \
  50339. - test -z "$non_pic_object" ||
  50340. - test "$pic_object" = none && \
  50341. - test "$non_pic_object" = none; then
  50342. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  50343. - exit $EXIT_FAILURE
  50344. - fi
  50345. + # This variable tells wrapper scripts just to set shlibpath_var
  50346. + # rather than running their programs.
  50347. + libtool_execute_magic="$magic"
  50348. - # Extract subdirectory from the argument.
  50349. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50350. - if test "X$xdir" = "X$arg"; then
  50351. - xdir=
  50352. - else
  50353. - xdir="$xdir/"
  50354. - fi
  50355. + # Check if any of the arguments is a wrapper script.
  50356. + args=
  50357. + for file
  50358. + do
  50359. + case $file in
  50360. + -*) ;;
  50361. + *)
  50362. + # Do a test to see if this is really a libtool program.
  50363. + if func_ltwrapper_script_p "$file"; then
  50364. + func_source "$file"
  50365. + # Transform arg to wrapped name.
  50366. + file="$progdir/$program"
  50367. + elif func_ltwrapper_executable_p "$file"; then
  50368. + func_ltwrapper_scriptname "$file"
  50369. + func_source "$func_ltwrapper_scriptname_result"
  50370. + # Transform arg to wrapped name.
  50371. + file="$progdir/$program"
  50372. + fi
  50373. + ;;
  50374. + esac
  50375. + # Quote arguments (to preserve shell metacharacters).
  50376. + func_quote_for_eval "$file"
  50377. + args="$args $func_quote_for_eval_result"
  50378. + done
  50379. - if test "$pic_object" != none; then
  50380. - # Prepend the subdirectory the object is found in.
  50381. - pic_object="$xdir$pic_object"
  50382. + if test "X$opt_dry_run" = Xfalse; then
  50383. + if test -n "$shlibpath_var"; then
  50384. + # Export the shlibpath_var.
  50385. + eval "export $shlibpath_var"
  50386. + fi
  50387. - if test "$prev" = dlfiles; then
  50388. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  50389. - dlfiles="$dlfiles $pic_object"
  50390. - prev=
  50391. - continue
  50392. + # Restore saved environment variables
  50393. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  50394. + do
  50395. + eval "if test \"\${save_$lt_var+set}\" = set; then
  50396. + $lt_var=\$save_$lt_var; export $lt_var
  50397. else
  50398. - # If libtool objects are unsupported, then we need to preload.
  50399. - prev=dlprefiles
  50400. - fi
  50401. - fi
  50402. + $lt_unset $lt_var
  50403. + fi"
  50404. + done
  50405. - # CHECK ME: I think I busted this. -Ossama
  50406. - if test "$prev" = dlprefiles; then
  50407. - # Preload the old-style object.
  50408. - dlprefiles="$dlprefiles $pic_object"
  50409. - prev=
  50410. - fi
  50411. + # Now prepare to actually exec the command.
  50412. + exec_cmd="\$cmd$args"
  50413. + else
  50414. + # Display what would be done.
  50415. + if test -n "$shlibpath_var"; then
  50416. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  50417. + $ECHO "export $shlibpath_var"
  50418. + fi
  50419. + $ECHO "$cmd$args"
  50420. + exit $EXIT_SUCCESS
  50421. + fi
  50422. +}
  50423. - # A PIC object.
  50424. - libobjs="$libobjs $pic_object"
  50425. - arg="$pic_object"
  50426. - fi
  50427. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  50428. - # Non-PIC object.
  50429. - if test "$non_pic_object" != none; then
  50430. - # Prepend the subdirectory the object is found in.
  50431. - non_pic_object="$xdir$non_pic_object"
  50432. - # A standard non-PIC object
  50433. - non_pic_objects="$non_pic_objects $non_pic_object"
  50434. - if test -z "$pic_object" || test "$pic_object" = none ; then
  50435. - arg="$non_pic_object"
  50436. - fi
  50437. - else
  50438. - # If the PIC object exists, use it instead.
  50439. - # $xdir was prepended to $pic_object above.
  50440. - non_pic_object="$pic_object"
  50441. - non_pic_objects="$non_pic_objects $non_pic_object"
  50442. - fi
  50443. - else
  50444. - # Only an error if not doing a dry-run.
  50445. - if test -z "$run"; then
  50446. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  50447. - exit $EXIT_FAILURE
  50448. - else
  50449. - # Dry-run case.
  50450. +# func_mode_finish arg...
  50451. +func_mode_finish ()
  50452. +{
  50453. + $opt_debug
  50454. + libdirs="$nonopt"
  50455. + admincmds=
  50456. - # Extract subdirectory from the argument.
  50457. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50458. - if test "X$xdir" = "X$arg"; then
  50459. - xdir=
  50460. - else
  50461. - xdir="$xdir/"
  50462. - fi
  50463. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  50464. + for dir
  50465. + do
  50466. + libdirs="$libdirs $dir"
  50467. + done
  50468. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  50469. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  50470. - libobjs="$libobjs $pic_object"
  50471. - non_pic_objects="$non_pic_objects $non_pic_object"
  50472. - fi
  50473. + for libdir in $libdirs; do
  50474. + if test -n "$finish_cmds"; then
  50475. + # Do each command in the finish commands.
  50476. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  50477. +'"$cmd"'"'
  50478. fi
  50479. - ;;
  50480. -
  50481. - *.$libext)
  50482. - # An archive.
  50483. - deplibs="$deplibs $arg"
  50484. - old_deplibs="$old_deplibs $arg"
  50485. - continue
  50486. - ;;
  50487. + if test -n "$finish_eval"; then
  50488. + # Do the single finish_eval.
  50489. + eval cmds=\"$finish_eval\"
  50490. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  50491. + $cmds"
  50492. + fi
  50493. + done
  50494. + fi
  50495. - *.la)
  50496. - # A libtool-controlled library.
  50497. + # Exit here if they wanted silent mode.
  50498. + $opt_silent && exit $EXIT_SUCCESS
  50499. - if test "$prev" = dlfiles; then
  50500. - # This library was specified with -dlopen.
  50501. - dlfiles="$dlfiles $arg"
  50502. - prev=
  50503. - elif test "$prev" = dlprefiles; then
  50504. - # The library was specified with -dlpreopen.
  50505. - dlprefiles="$dlprefiles $arg"
  50506. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  50507. + $ECHO "Libraries have been installed in:"
  50508. + for libdir in $libdirs; do
  50509. + $ECHO " $libdir"
  50510. + done
  50511. + $ECHO
  50512. + $ECHO "If you ever happen to want to link against installed libraries"
  50513. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  50514. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  50515. + $ECHO "flag during linking and do at least one of the following:"
  50516. + if test -n "$shlibpath_var"; then
  50517. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  50518. + $ECHO " during execution"
  50519. + fi
  50520. + if test -n "$runpath_var"; then
  50521. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  50522. + $ECHO " during linking"
  50523. + fi
  50524. + if test -n "$hardcode_libdir_flag_spec"; then
  50525. + libdir=LIBDIR
  50526. + eval flag=\"$hardcode_libdir_flag_spec\"
  50527. +
  50528. + $ECHO " - use the \`$flag' linker flag"
  50529. + fi
  50530. + if test -n "$admincmds"; then
  50531. + $ECHO " - have your system administrator run these commands:$admincmds"
  50532. + fi
  50533. + if test -f /etc/ld.so.conf; then
  50534. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  50535. + fi
  50536. + $ECHO
  50537. +
  50538. + $ECHO "See any operating system documentation about shared libraries for"
  50539. + case $host in
  50540. + solaris2.[6789]|solaris2.1[0-9])
  50541. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  50542. + $ECHO "pages."
  50543. + ;;
  50544. + *)
  50545. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  50546. + ;;
  50547. + esac
  50548. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  50549. + exit $EXIT_SUCCESS
  50550. +}
  50551. +
  50552. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  50553. +
  50554. +
  50555. +# func_mode_install arg...
  50556. +func_mode_install ()
  50557. +{
  50558. + $opt_debug
  50559. + # There may be an optional sh(1) argument at the beginning of
  50560. + # install_prog (especially on Windows NT).
  50561. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  50562. + # Allow the use of GNU shtool's install command.
  50563. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  50564. + # Aesthetically quote it.
  50565. + func_quote_for_eval "$nonopt"
  50566. + install_prog="$func_quote_for_eval_result "
  50567. + arg=$1
  50568. + shift
  50569. + else
  50570. + install_prog=
  50571. + arg=$nonopt
  50572. + fi
  50573. +
  50574. + # The real first argument should be the name of the installation program.
  50575. + # Aesthetically quote it.
  50576. + func_quote_for_eval "$arg"
  50577. + install_prog="$install_prog$func_quote_for_eval_result"
  50578. +
  50579. + # We need to accept at least all the BSD install flags.
  50580. + dest=
  50581. + files=
  50582. + opts=
  50583. + prev=
  50584. + install_type=
  50585. + isdir=no
  50586. + stripme=
  50587. + for arg
  50588. + do
  50589. + if test -n "$dest"; then
  50590. + files="$files $dest"
  50591. + dest=$arg
  50592. + continue
  50593. + fi
  50594. +
  50595. + case $arg in
  50596. + -d) isdir=yes ;;
  50597. + -f)
  50598. + case " $install_prog " in
  50599. + *[\\\ /]cp\ *) ;;
  50600. + *) prev=$arg ;;
  50601. + esac
  50602. + ;;
  50603. + -g | -m | -o)
  50604. + prev=$arg
  50605. + ;;
  50606. + -s)
  50607. + stripme=" -s"
  50608. + continue
  50609. + ;;
  50610. + -*)
  50611. + ;;
  50612. + *)
  50613. + # If the previous option needed an argument, then skip it.
  50614. + if test -n "$prev"; then
  50615. prev=
  50616. else
  50617. - deplibs="$deplibs $arg"
  50618. + dest=$arg
  50619. + continue
  50620. fi
  50621. - continue
  50622. ;;
  50623. + esac
  50624. - # Some other compiler argument.
  50625. - *)
  50626. - # Unknown arguments in both finalize_command and compile_command need
  50627. - # to be aesthetically quoted because they are evaled later.
  50628. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50629. - case $arg in
  50630. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50631. - arg="\"$arg\""
  50632. - ;;
  50633. - esac
  50634. - ;;
  50635. - esac # arg
  50636. + # Aesthetically quote the argument.
  50637. + func_quote_for_eval "$arg"
  50638. + install_prog="$install_prog $func_quote_for_eval_result"
  50639. + done
  50640. - # Now actually substitute the argument into the commands.
  50641. - if test -n "$arg"; then
  50642. - compile_command="$compile_command $arg"
  50643. - finalize_command="$finalize_command $arg"
  50644. - fi
  50645. - done # argument parsing loop
  50646. + test -z "$install_prog" && \
  50647. + func_fatal_help "you must specify an install program"
  50648. - if test -n "$prev"; then
  50649. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  50650. - $echo "$help" 1>&2
  50651. - exit $EXIT_FAILURE
  50652. - fi
  50653. + test -n "$prev" && \
  50654. + func_fatal_help "the \`$prev' option requires an argument"
  50655. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  50656. - eval arg=\"$export_dynamic_flag_spec\"
  50657. - compile_command="$compile_command $arg"
  50658. - finalize_command="$finalize_command $arg"
  50659. + if test -z "$files"; then
  50660. + if test -z "$dest"; then
  50661. + func_fatal_help "no file or destination specified"
  50662. + else
  50663. + func_fatal_help "you must specify a destination"
  50664. + fi
  50665. fi
  50666. - oldlibs=
  50667. - # calculate the name of the file, without its directory
  50668. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  50669. - libobjs_save="$libobjs"
  50670. + # Strip any trailing slash from the destination.
  50671. + func_stripname '' '/' "$dest"
  50672. + dest=$func_stripname_result
  50673. - if test -n "$shlibpath_var"; then
  50674. - # get the directories listed in $shlibpath_var
  50675. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  50676. + # Check to see that the destination is a directory.
  50677. + test -d "$dest" && isdir=yes
  50678. + if test "$isdir" = yes; then
  50679. + destdir="$dest"
  50680. + destname=
  50681. else
  50682. - shlib_search_path=
  50683. - fi
  50684. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  50685. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  50686. + func_dirname_and_basename "$dest" "" "."
  50687. + destdir="$func_dirname_result"
  50688. + destname="$func_basename_result"
  50689. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  50690. - if test "X$output_objdir" = "X$output"; then
  50691. - output_objdir="$objdir"
  50692. - else
  50693. - output_objdir="$output_objdir/$objdir"
  50694. - fi
  50695. - # Create the object directory.
  50696. - if test ! -d "$output_objdir"; then
  50697. - $show "$mkdir $output_objdir"
  50698. - $run $mkdir $output_objdir
  50699. - exit_status=$?
  50700. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  50701. - exit $exit_status
  50702. - fi
  50703. + # Not a directory, so check to see that there is only one file specified.
  50704. + set dummy $files; shift
  50705. + test "$#" -gt 1 && \
  50706. + func_fatal_help "\`$dest' is not a directory"
  50707. fi
  50708. -
  50709. - # Determine the type of output
  50710. - case $output in
  50711. - "")
  50712. - $echo "$modename: you must specify an output file" 1>&2
  50713. - $echo "$help" 1>&2
  50714. - exit $EXIT_FAILURE
  50715. - ;;
  50716. - *.$libext) linkmode=oldlib ;;
  50717. - *.lo | *.$objext) linkmode=obj ;;
  50718. - *.la) linkmode=lib ;;
  50719. - *) linkmode=prog ;; # Anything else should be a program.
  50720. - esac
  50721. -
  50722. - case $host in
  50723. - *cygwin* | *mingw* | *pw32*)
  50724. - # don't eliminate duplications in $postdeps and $predeps
  50725. - duplicate_compiler_generated_deps=yes
  50726. - ;;
  50727. + case $destdir in
  50728. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  50729. *)
  50730. - duplicate_compiler_generated_deps=$duplicate_deps
  50731. + for file in $files; do
  50732. + case $file in
  50733. + *.lo) ;;
  50734. + *)
  50735. + func_fatal_help "\`$destdir' must be an absolute directory name"
  50736. + ;;
  50737. + esac
  50738. + done
  50739. ;;
  50740. esac
  50741. - specialdeplibs=
  50742. - libs=
  50743. - # Find all interdependent deplibs by searching for libraries
  50744. - # that are linked more than once (e.g. -la -lb -la)
  50745. - for deplib in $deplibs; do
  50746. - if test "X$duplicate_deps" = "Xyes" ; then
  50747. - case "$libs " in
  50748. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50749. - esac
  50750. - fi
  50751. - libs="$libs $deplib"
  50752. - done
  50753. + # This variable tells wrapper scripts just to set variables rather
  50754. + # than running their programs.
  50755. + libtool_install_magic="$magic"
  50756. - if test "$linkmode" = lib; then
  50757. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  50758. + staticlibs=
  50759. + future_libdirs=
  50760. + current_libdirs=
  50761. + for file in $files; do
  50762. - # Compute libraries that are listed more than once in $predeps
  50763. - # $postdeps and mark them as special (i.e., whose duplicates are
  50764. - # not to be eliminated).
  50765. - pre_post_deps=
  50766. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  50767. - for pre_post_dep in $predeps $postdeps; do
  50768. - case "$pre_post_deps " in
  50769. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  50770. + # Do each installation.
  50771. + case $file in
  50772. + *.$libext)
  50773. + # Do the static libraries later.
  50774. + staticlibs="$staticlibs $file"
  50775. + ;;
  50776. +
  50777. + *.la)
  50778. + # Check to see that this really is a libtool archive.
  50779. + func_lalib_unsafe_p "$file" \
  50780. + || func_fatal_help "\`$file' is not a valid libtool archive"
  50781. +
  50782. + library_names=
  50783. + old_library=
  50784. + relink_command=
  50785. + func_source "$file"
  50786. +
  50787. + # Add the libdir to current_libdirs if it is the destination.
  50788. + if test "X$destdir" = "X$libdir"; then
  50789. + case "$current_libdirs " in
  50790. + *" $libdir "*) ;;
  50791. + *) current_libdirs="$current_libdirs $libdir" ;;
  50792. esac
  50793. - pre_post_deps="$pre_post_deps $pre_post_dep"
  50794. - done
  50795. - fi
  50796. - pre_post_deps=
  50797. - fi
  50798. + else
  50799. + # Note the libdir as a future libdir.
  50800. + case "$future_libdirs " in
  50801. + *" $libdir "*) ;;
  50802. + *) future_libdirs="$future_libdirs $libdir" ;;
  50803. + esac
  50804. + fi
  50805. - deplibs=
  50806. - newdependency_libs=
  50807. - newlib_search_path=
  50808. - need_relink=no # whether we're linking any uninstalled libtool libraries
  50809. - notinst_deplibs= # not-installed libtool libraries
  50810. - case $linkmode in
  50811. - lib)
  50812. - passes="conv link"
  50813. - for file in $dlfiles $dlprefiles; do
  50814. - case $file in
  50815. - *.la) ;;
  50816. - *)
  50817. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  50818. - exit $EXIT_FAILURE
  50819. + func_dirname "$file" "/" ""
  50820. + dir="$func_dirname_result"
  50821. + dir="$dir$objdir"
  50822. +
  50823. + if test -n "$relink_command"; then
  50824. + # Determine the prefix the user has applied to our future dir.
  50825. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  50826. +
  50827. + # Don't allow the user to place us outside of our expected
  50828. + # location b/c this prevents finding dependent libraries that
  50829. + # are installed to the same prefix.
  50830. + # At present, this check doesn't affect windows .dll's that
  50831. + # are installed into $libdir/../bin (currently, that works fine)
  50832. + # but it's something to keep an eye on.
  50833. + test "$inst_prefix_dir" = "$destdir" && \
  50834. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  50835. +
  50836. + if test -n "$inst_prefix_dir"; then
  50837. + # Stick the inst_prefix_dir data into the link command.
  50838. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  50839. + else
  50840. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  50841. + fi
  50842. +
  50843. + func_warning "relinking \`$file'"
  50844. + func_show_eval "$relink_command" \
  50845. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  50846. + fi
  50847. +
  50848. + # See the names of the shared library.
  50849. + set dummy $library_names; shift
  50850. + if test -n "$1"; then
  50851. + realname="$1"
  50852. + shift
  50853. +
  50854. + srcname="$realname"
  50855. + test -n "$relink_command" && srcname="$realname"T
  50856. +
  50857. + # Install the shared library and build the symlinks.
  50858. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  50859. + 'exit $?'
  50860. + tstripme="$stripme"
  50861. + case $host_os in
  50862. + cygwin* | mingw* | pw32* | cegcc*)
  50863. + case $realname in
  50864. + *.dll.a)
  50865. + tstripme=""
  50866. + ;;
  50867. + esac
  50868. ;;
  50869. esac
  50870. - done
  50871. - ;;
  50872. - prog)
  50873. - compile_deplibs=
  50874. - finalize_deplibs=
  50875. - alldeplibs=no
  50876. - newdlfiles=
  50877. - newdlprefiles=
  50878. - passes="conv scan dlopen dlpreopen link"
  50879. - ;;
  50880. - *) passes="conv"
  50881. - ;;
  50882. - esac
  50883. - for pass in $passes; do
  50884. - if test "$linkmode,$pass" = "lib,link" ||
  50885. - test "$linkmode,$pass" = "prog,scan"; then
  50886. - libs="$deplibs"
  50887. - deplibs=
  50888. - fi
  50889. - if test "$linkmode" = prog; then
  50890. - case $pass in
  50891. - dlopen) libs="$dlfiles" ;;
  50892. - dlpreopen) libs="$dlprefiles" ;;
  50893. - link)
  50894. - libs="$deplibs %DEPLIBS%"
  50895. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  50896. - ;;
  50897. - esac
  50898. - fi
  50899. - if test "$pass" = dlopen; then
  50900. - # Collect dlpreopened libraries
  50901. - save_deplibs="$deplibs"
  50902. - deplibs=
  50903. - fi
  50904. - for deplib in $libs; do
  50905. - lib=
  50906. - found=no
  50907. - case $deplib in
  50908. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  50909. - if test "$linkmode,$pass" = "prog,link"; then
  50910. - compile_deplibs="$deplib $compile_deplibs"
  50911. - finalize_deplibs="$deplib $finalize_deplibs"
  50912. - else
  50913. - compiler_flags="$compiler_flags $deplib"
  50914. - fi
  50915. - continue
  50916. - ;;
  50917. - -l*)
  50918. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  50919. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  50920. - continue
  50921. + if test -n "$tstripme" && test -n "$striplib"; then
  50922. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  50923. fi
  50924. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  50925. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  50926. - for search_ext in .la $std_shrext .so .a; do
  50927. - # Search the libtool library
  50928. - lib="$searchdir/lib${name}${search_ext}"
  50929. - if test -f "$lib"; then
  50930. - if test "$search_ext" = ".la"; then
  50931. - found=yes
  50932. - else
  50933. - found=no
  50934. - fi
  50935. - break 2
  50936. - fi
  50937. +
  50938. + if test "$#" -gt 0; then
  50939. + # Delete the old symlinks, and create new ones.
  50940. + # Try `ln -sf' first, because the `ln' binary might depend on
  50941. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  50942. + # so we also need to try rm && ln -s.
  50943. + for linkname
  50944. + do
  50945. + test "$linkname" != "$realname" \
  50946. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  50947. done
  50948. - done
  50949. - if test "$found" != yes; then
  50950. - # deplib doesn't seem to be a libtool library
  50951. - if test "$linkmode,$pass" = "prog,link"; then
  50952. - compile_deplibs="$deplib $compile_deplibs"
  50953. - finalize_deplibs="$deplib $finalize_deplibs"
  50954. - else
  50955. - deplibs="$deplib $deplibs"
  50956. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  50957. - fi
  50958. - continue
  50959. - else # deplib is a libtool library
  50960. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  50961. - # We need to do some special things here, and not later.
  50962. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50963. - case " $predeps $postdeps " in
  50964. - *" $deplib "*)
  50965. - if (${SED} -e '2q' $lib |
  50966. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50967. - library_names=
  50968. - old_library=
  50969. - case $lib in
  50970. - */* | *\\*) . $lib ;;
  50971. - *) . ./$lib ;;
  50972. - esac
  50973. - for l in $old_library $library_names; do
  50974. - ll="$l"
  50975. - done
  50976. - if test "X$ll" = "X$old_library" ; then # only static version available
  50977. - found=no
  50978. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  50979. - test "X$ladir" = "X$lib" && ladir="."
  50980. - lib=$ladir/$old_library
  50981. - if test "$linkmode,$pass" = "prog,link"; then
  50982. - compile_deplibs="$deplib $compile_deplibs"
  50983. - finalize_deplibs="$deplib $finalize_deplibs"
  50984. - else
  50985. - deplibs="$deplib $deplibs"
  50986. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  50987. - fi
  50988. - continue
  50989. - fi
  50990. - fi
  50991. - ;;
  50992. - *) ;;
  50993. - esac
  50994. - fi
  50995. - fi
  50996. - ;; # -l
  50997. - -L*)
  50998. - case $linkmode in
  50999. - lib)
  51000. - deplibs="$deplib $deplibs"
  51001. - test "$pass" = conv && continue
  51002. - newdependency_libs="$deplib $newdependency_libs"
  51003. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  51004. - ;;
  51005. - prog)
  51006. - if test "$pass" = conv; then
  51007. - deplibs="$deplib $deplibs"
  51008. - continue
  51009. - fi
  51010. - if test "$pass" = scan; then
  51011. - deplibs="$deplib $deplibs"
  51012. - else
  51013. - compile_deplibs="$deplib $compile_deplibs"
  51014. - finalize_deplibs="$deplib $finalize_deplibs"
  51015. - fi
  51016. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  51017. - ;;
  51018. - *)
  51019. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  51020. - ;;
  51021. - esac # linkmode
  51022. - continue
  51023. - ;; # -L
  51024. - -R*)
  51025. - if test "$pass" = link; then
  51026. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  51027. - # Make sure the xrpath contains only unique directories.
  51028. - case "$xrpath " in
  51029. - *" $dir "*) ;;
  51030. - *) xrpath="$xrpath $dir" ;;
  51031. - esac
  51032. fi
  51033. - deplibs="$deplib $deplibs"
  51034. - continue
  51035. - ;;
  51036. - *.la) lib="$deplib" ;;
  51037. - *.$libext)
  51038. - if test "$pass" = conv; then
  51039. - deplibs="$deplib $deplibs"
  51040. - continue
  51041. - fi
  51042. - case $linkmode in
  51043. - lib)
  51044. - valid_a_lib=no
  51045. - case $deplibs_check_method in
  51046. - match_pattern*)
  51047. - set dummy $deplibs_check_method
  51048. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  51049. - if eval $echo \"$deplib\" 2>/dev/null \
  51050. - | $SED 10q \
  51051. - | $EGREP "$match_pattern_regex" > /dev/null; then
  51052. - valid_a_lib=yes
  51053. - fi
  51054. - ;;
  51055. - pass_all)
  51056. - valid_a_lib=yes
  51057. - ;;
  51058. - esac
  51059. - if test "$valid_a_lib" != yes; then
  51060. - $echo
  51061. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  51062. - $echo "*** I have the capability to make that library automatically link in when"
  51063. - $echo "*** you link to this library. But I can only do this if you have a"
  51064. - $echo "*** shared version of the library, which you do not appear to have"
  51065. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  51066. - $echo "*** that it is just a static archive that I should not used here."
  51067. - else
  51068. - $echo
  51069. - $echo "*** Warning: Linking the shared library $output against the"
  51070. - $echo "*** static library $deplib is not portable!"
  51071. - deplibs="$deplib $deplibs"
  51072. - fi
  51073. - continue
  51074. - ;;
  51075. - prog)
  51076. - if test "$pass" != link; then
  51077. - deplibs="$deplib $deplibs"
  51078. - else
  51079. - compile_deplibs="$deplib $compile_deplibs"
  51080. - finalize_deplibs="$deplib $finalize_deplibs"
  51081. - fi
  51082. - continue
  51083. - ;;
  51084. - esac # linkmode
  51085. - ;; # *.$libext
  51086. - *.lo | *.$objext)
  51087. - if test "$pass" = conv; then
  51088. - deplibs="$deplib $deplibs"
  51089. - elif test "$linkmode" = prog; then
  51090. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  51091. - # If there is no dlopen support or we're linking statically,
  51092. - # we need to preload.
  51093. - newdlprefiles="$newdlprefiles $deplib"
  51094. - compile_deplibs="$deplib $compile_deplibs"
  51095. - finalize_deplibs="$deplib $finalize_deplibs"
  51096. - else
  51097. - newdlfiles="$newdlfiles $deplib"
  51098. - fi
  51099. - fi
  51100. - continue
  51101. - ;;
  51102. - %DEPLIBS%)
  51103. - alldeplibs=yes
  51104. - continue
  51105. - ;;
  51106. - esac # case $deplib
  51107. - if test "$found" = yes || test -f "$lib"; then :
  51108. - else
  51109. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  51110. - exit $EXIT_FAILURE
  51111. - fi
  51112. - # Check to see that this really is a libtool archive.
  51113. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  51114. - else
  51115. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  51116. - exit $EXIT_FAILURE
  51117. + # Do each command in the postinstall commands.
  51118. + lib="$destdir/$realname"
  51119. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  51120. fi
  51121. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  51122. - test "X$ladir" = "X$lib" && ladir="."
  51123. -
  51124. - dlname=
  51125. - dlopen=
  51126. - dlpreopen=
  51127. - libdir=
  51128. - library_names=
  51129. - old_library=
  51130. - # If the library was installed with an old release of libtool,
  51131. - # it will not redefine variables installed, or shouldnotlink
  51132. - installed=yes
  51133. - shouldnotlink=no
  51134. - avoidtemprpath=
  51135. + # Install the pseudo-library for information purposes.
  51136. + func_basename "$file"
  51137. + name="$func_basename_result"
  51138. + instname="$dir/$name"i
  51139. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  51140. + # Maybe install the static library, too.
  51141. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  51142. + ;;
  51143. - # Read the .la file
  51144. - case $lib in
  51145. - */* | *\\*) . $lib ;;
  51146. - *) . ./$lib ;;
  51147. - esac
  51148. + *.lo)
  51149. + # Install (i.e. copy) a libtool object.
  51150. - if test "$linkmode,$pass" = "lib,link" ||
  51151. - test "$linkmode,$pass" = "prog,scan" ||
  51152. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  51153. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  51154. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  51155. + # Figure out destination file name, if it wasn't already specified.
  51156. + if test -n "$destname"; then
  51157. + destfile="$destdir/$destname"
  51158. + else
  51159. + func_basename "$file"
  51160. + destfile="$func_basename_result"
  51161. + destfile="$destdir/$destfile"
  51162. fi
  51163. - if test "$pass" = conv; then
  51164. - # Only check for convenience libraries
  51165. - deplibs="$lib $deplibs"
  51166. - if test -z "$libdir"; then
  51167. - if test -z "$old_library"; then
  51168. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  51169. - exit $EXIT_FAILURE
  51170. - fi
  51171. - # It is a libtool convenience library, so add in its objects.
  51172. - convenience="$convenience $ladir/$objdir/$old_library"
  51173. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  51174. - tmp_libs=
  51175. - for deplib in $dependency_libs; do
  51176. - deplibs="$deplib $deplibs"
  51177. - if test "X$duplicate_deps" = "Xyes" ; then
  51178. - case "$tmp_libs " in
  51179. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51180. - esac
  51181. - fi
  51182. - tmp_libs="$tmp_libs $deplib"
  51183. - done
  51184. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  51185. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  51186. - exit $EXIT_FAILURE
  51187. - fi
  51188. - continue
  51189. - fi # $pass = conv
  51190. + # Deduce the name of the destination old-style object file.
  51191. + case $destfile in
  51192. + *.lo)
  51193. + func_lo2o "$destfile"
  51194. + staticdest=$func_lo2o_result
  51195. + ;;
  51196. + *.$objext)
  51197. + staticdest="$destfile"
  51198. + destfile=
  51199. + ;;
  51200. + *)
  51201. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  51202. + ;;
  51203. + esac
  51204. + # Install the libtool object if requested.
  51205. + test -n "$destfile" && \
  51206. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  51207. - # Get the name of the library we link against.
  51208. - linklib=
  51209. - for l in $old_library $library_names; do
  51210. - linklib="$l"
  51211. - done
  51212. - if test -z "$linklib"; then
  51213. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  51214. - exit $EXIT_FAILURE
  51215. + # Install the old object if enabled.
  51216. + if test "$build_old_libs" = yes; then
  51217. + # Deduce the name of the old-style object file.
  51218. + func_lo2o "$file"
  51219. + staticobj=$func_lo2o_result
  51220. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  51221. fi
  51222. + exit $EXIT_SUCCESS
  51223. + ;;
  51224. - # This library was specified with -dlopen.
  51225. - if test "$pass" = dlopen; then
  51226. - if test -z "$libdir"; then
  51227. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  51228. - exit $EXIT_FAILURE
  51229. - fi
  51230. - if test -z "$dlname" ||
  51231. - test "$dlopen_support" != yes ||
  51232. - test "$build_libtool_libs" = no; then
  51233. - # If there is no dlname, no dlopen support or we're linking
  51234. - # statically, we need to preload. We also need to preload any
  51235. - # dependent libraries so libltdl's deplib preloader doesn't
  51236. - # bomb out in the load deplibs phase.
  51237. - dlprefiles="$dlprefiles $lib $dependency_libs"
  51238. - else
  51239. - newdlfiles="$newdlfiles $lib"
  51240. - fi
  51241. - continue
  51242. - fi # $pass = dlopen
  51243. + *)
  51244. + # Figure out destination file name, if it wasn't already specified.
  51245. + if test -n "$destname"; then
  51246. + destfile="$destdir/$destname"
  51247. + else
  51248. + func_basename "$file"
  51249. + destfile="$func_basename_result"
  51250. + destfile="$destdir/$destfile"
  51251. + fi
  51252. - # We need an absolute path.
  51253. - case $ladir in
  51254. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  51255. + # If the file is missing, and there is a .exe on the end, strip it
  51256. + # because it is most likely a libtool script we actually want to
  51257. + # install
  51258. + stripped_ext=""
  51259. + case $file in
  51260. + *.exe)
  51261. + if test ! -f "$file"; then
  51262. + func_stripname '' '.exe' "$file"
  51263. + file=$func_stripname_result
  51264. + stripped_ext=".exe"
  51265. + fi
  51266. + ;;
  51267. + esac
  51268. +
  51269. + # Do a test to see if this is really a libtool program.
  51270. + case $host in
  51271. + *cygwin* | *mingw*)
  51272. + if func_ltwrapper_executable_p "$file"; then
  51273. + func_ltwrapper_scriptname "$file"
  51274. + wrapper=$func_ltwrapper_scriptname_result
  51275. + else
  51276. + func_stripname '' '.exe' "$file"
  51277. + wrapper=$func_stripname_result
  51278. + fi
  51279. + ;;
  51280. *)
  51281. - abs_ladir=`cd "$ladir" && pwd`
  51282. - if test -z "$abs_ladir"; then
  51283. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  51284. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  51285. - abs_ladir="$ladir"
  51286. + wrapper=$file
  51287. + ;;
  51288. + esac
  51289. + if func_ltwrapper_script_p "$wrapper"; then
  51290. + notinst_deplibs=
  51291. + relink_command=
  51292. +
  51293. + func_source "$wrapper"
  51294. +
  51295. + # Check the variables that should have been set.
  51296. + test -z "$generated_by_libtool_version" && \
  51297. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  51298. +
  51299. + finalize=yes
  51300. + for lib in $notinst_deplibs; do
  51301. + # Check to see that each library is installed.
  51302. + libdir=
  51303. + if test -f "$lib"; then
  51304. + func_source "$lib"
  51305. + fi
  51306. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  51307. + if test -n "$libdir" && test ! -f "$libfile"; then
  51308. + func_warning "\`$lib' has not been installed in \`$libdir'"
  51309. + finalize=no
  51310. + fi
  51311. + done
  51312. +
  51313. + relink_command=
  51314. + func_source "$wrapper"
  51315. +
  51316. + outputname=
  51317. + if test "$fast_install" = no && test -n "$relink_command"; then
  51318. + $opt_dry_run || {
  51319. + if test "$finalize" = yes; then
  51320. + tmpdir=`func_mktempdir`
  51321. + func_basename "$file$stripped_ext"
  51322. + file="$func_basename_result"
  51323. + outputname="$tmpdir/$file"
  51324. + # Replace the output file specification.
  51325. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  51326. +
  51327. + $opt_silent || {
  51328. + func_quote_for_expand "$relink_command"
  51329. + eval "func_echo $func_quote_for_expand_result"
  51330. + }
  51331. + if eval "$relink_command"; then :
  51332. + else
  51333. + func_error "error: relink \`$file' with the above command before installing it"
  51334. + $opt_dry_run || ${RM}r "$tmpdir"
  51335. + continue
  51336. + fi
  51337. + file="$outputname"
  51338. + else
  51339. + func_warning "cannot relink \`$file'"
  51340. + fi
  51341. + }
  51342. + else
  51343. + # Install the binary that we compiled earlier.
  51344. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  51345. fi
  51346. + fi
  51347. +
  51348. + # remove .exe since cygwin /usr/bin/install will append another
  51349. + # one anyway
  51350. + case $install_prog,$host in
  51351. + */usr/bin/install*,*cygwin*)
  51352. + case $file:$destfile in
  51353. + *.exe:*.exe)
  51354. + # this is ok
  51355. + ;;
  51356. + *.exe:*)
  51357. + destfile=$destfile.exe
  51358. + ;;
  51359. + *:*.exe)
  51360. + func_stripname '' '.exe' "$destfile"
  51361. + destfile=$func_stripname_result
  51362. + ;;
  51363. + esac
  51364. ;;
  51365. esac
  51366. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  51367. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  51368. + $opt_dry_run || if test -n "$outputname"; then
  51369. + ${RM}r "$tmpdir"
  51370. + fi
  51371. + ;;
  51372. + esac
  51373. + done
  51374. - # Find the relevant object directory and library name.
  51375. - if test "X$installed" = Xyes; then
  51376. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  51377. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  51378. - dir="$ladir"
  51379. - absdir="$abs_ladir"
  51380. - libdir="$abs_ladir"
  51381. - else
  51382. - dir="$libdir"
  51383. - absdir="$libdir"
  51384. + for file in $staticlibs; do
  51385. + func_basename "$file"
  51386. + name="$func_basename_result"
  51387. +
  51388. + # Set up the ranlib parameters.
  51389. + oldlib="$destdir/$name"
  51390. +
  51391. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  51392. +
  51393. + if test -n "$stripme" && test -n "$old_striplib"; then
  51394. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  51395. + fi
  51396. +
  51397. + # Do each command in the postinstall commands.
  51398. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  51399. + done
  51400. +
  51401. + test -n "$future_libdirs" && \
  51402. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  51403. +
  51404. + if test -n "$current_libdirs"; then
  51405. + # Maybe just do a dry run.
  51406. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  51407. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  51408. + else
  51409. + exit $EXIT_SUCCESS
  51410. + fi
  51411. +}
  51412. +
  51413. +test "$mode" = install && func_mode_install ${1+"$@"}
  51414. +
  51415. +
  51416. +# func_generate_dlsyms outputname originator pic_p
  51417. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  51418. +# a dlpreopen symbol table.
  51419. +func_generate_dlsyms ()
  51420. +{
  51421. + $opt_debug
  51422. + my_outputname="$1"
  51423. + my_originator="$2"
  51424. + my_pic_p="${3-no}"
  51425. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  51426. + my_dlsyms=
  51427. +
  51428. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51429. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  51430. + my_dlsyms="${my_outputname}S.c"
  51431. + else
  51432. + func_error "not configured to extract global symbols from dlpreopened files"
  51433. + fi
  51434. + fi
  51435. +
  51436. + if test -n "$my_dlsyms"; then
  51437. + case $my_dlsyms in
  51438. + "") ;;
  51439. + *.c)
  51440. + # Discover the nlist of each of the dlfiles.
  51441. + nlist="$output_objdir/${my_outputname}.nm"
  51442. +
  51443. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  51444. +
  51445. + # Parse the name list into a source file.
  51446. + func_verbose "creating $output_objdir/$my_dlsyms"
  51447. +
  51448. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  51449. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  51450. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  51451. +
  51452. +#ifdef __cplusplus
  51453. +extern \"C\" {
  51454. +#endif
  51455. +
  51456. +/* External symbol declarations for the compiler. */\
  51457. +"
  51458. +
  51459. + if test "$dlself" = yes; then
  51460. + func_verbose "generating symbol list for \`$output'"
  51461. +
  51462. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  51463. +
  51464. + # Add our own program objects to the symbol list.
  51465. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  51466. + for progfile in $progfiles; do
  51467. + func_verbose "extracting global C symbols from \`$progfile'"
  51468. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  51469. + done
  51470. +
  51471. + if test -n "$exclude_expsyms"; then
  51472. + $opt_dry_run || {
  51473. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  51474. + eval '$MV "$nlist"T "$nlist"'
  51475. + }
  51476. fi
  51477. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  51478. - else
  51479. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  51480. - dir="$ladir"
  51481. - absdir="$abs_ladir"
  51482. - # Remove this search path later
  51483. - notinst_path="$notinst_path $abs_ladir"
  51484. +
  51485. + if test -n "$export_symbols_regex"; then
  51486. + $opt_dry_run || {
  51487. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  51488. + eval '$MV "$nlist"T "$nlist"'
  51489. + }
  51490. + fi
  51491. +
  51492. + # Prepare the list of exported symbols
  51493. + if test -z "$export_symbols"; then
  51494. + export_symbols="$output_objdir/$outputname.exp"
  51495. + $opt_dry_run || {
  51496. + $RM $export_symbols
  51497. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  51498. + case $host in
  51499. + *cygwin* | *mingw* | *cegcc* )
  51500. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  51501. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  51502. + ;;
  51503. + esac
  51504. + }
  51505. else
  51506. - dir="$ladir/$objdir"
  51507. - absdir="$abs_ladir/$objdir"
  51508. - # Remove this search path later
  51509. - notinst_path="$notinst_path $abs_ladir"
  51510. + $opt_dry_run || {
  51511. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  51512. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  51513. + eval '$MV "$nlist"T "$nlist"'
  51514. + case $host in
  51515. + *cygwin | *mingw* | *cegcc* )
  51516. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  51517. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  51518. + ;;
  51519. + esac
  51520. + }
  51521. fi
  51522. - fi # $installed = yes
  51523. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  51524. + fi
  51525. - # This library was specified with -dlpreopen.
  51526. - if test "$pass" = dlpreopen; then
  51527. - if test -z "$libdir"; then
  51528. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  51529. - exit $EXIT_FAILURE
  51530. + for dlprefile in $dlprefiles; do
  51531. + func_verbose "extracting global C symbols from \`$dlprefile'"
  51532. + func_basename "$dlprefile"
  51533. + name="$func_basename_result"
  51534. + $opt_dry_run || {
  51535. + eval '$ECHO ": $name " >> "$nlist"'
  51536. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  51537. + }
  51538. + done
  51539. +
  51540. + $opt_dry_run || {
  51541. + # Make sure we have at least an empty file.
  51542. + test -f "$nlist" || : > "$nlist"
  51543. +
  51544. + if test -n "$exclude_expsyms"; then
  51545. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  51546. + $MV "$nlist"T "$nlist"
  51547. fi
  51548. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  51549. - # are required to link).
  51550. - if test -n "$old_library"; then
  51551. - newdlprefiles="$newdlprefiles $dir/$old_library"
  51552. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  51553. - elif test -n "$dlname"; then
  51554. - newdlprefiles="$newdlprefiles $dir/$dlname"
  51555. +
  51556. + # Try sorting and uniquifying the output.
  51557. + if $GREP -v "^: " < "$nlist" |
  51558. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  51559. + sort -k 3
  51560. + else
  51561. + sort +2
  51562. + fi |
  51563. + uniq > "$nlist"S; then
  51564. + :
  51565. else
  51566. - newdlprefiles="$newdlprefiles $dir/$linklib"
  51567. + $GREP -v "^: " < "$nlist" > "$nlist"S
  51568. fi
  51569. - fi # $pass = dlpreopen
  51570. - if test -z "$libdir"; then
  51571. - # Link the convenience library
  51572. - if test "$linkmode" = lib; then
  51573. - deplibs="$dir/$old_library $deplibs"
  51574. - elif test "$linkmode,$pass" = "prog,link"; then
  51575. - compile_deplibs="$dir/$old_library $compile_deplibs"
  51576. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  51577. + if test -f "$nlist"S; then
  51578. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  51579. else
  51580. - deplibs="$lib $deplibs" # used for prog,scan pass
  51581. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  51582. fi
  51583. - continue
  51584. - fi
  51585. -
  51586. - if test "$linkmode" = prog && test "$pass" != link; then
  51587. - newlib_search_path="$newlib_search_path $ladir"
  51588. - deplibs="$lib $deplibs"
  51589. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51590. - linkalldeplibs=no
  51591. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  51592. - test "$build_libtool_libs" = no; then
  51593. - linkalldeplibs=yes
  51594. - fi
  51595. +/* The mapping between symbol names and symbols. */
  51596. +typedef struct {
  51597. + const char *name;
  51598. + void *address;
  51599. +} lt_dlsymlist;
  51600. +"
  51601. + case $host in
  51602. + *cygwin* | *mingw* | *cegcc* )
  51603. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51604. +/* DATA imports from DLLs on WIN32 con't be const, because
  51605. + runtime relocations are performed -- see ld's documentation
  51606. + on pseudo-relocs. */"
  51607. + lt_dlsym_const= ;;
  51608. + *osf5*)
  51609. + echo >> "$output_objdir/$my_dlsyms" "\
  51610. +/* This system does not cope well with relocations in const data */"
  51611. + lt_dlsym_const= ;;
  51612. + *)
  51613. + lt_dlsym_const=const ;;
  51614. + esac
  51615. - tmp_libs=
  51616. - for deplib in $dependency_libs; do
  51617. - case $deplib in
  51618. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  51619. - esac
  51620. - # Need to link against all dependency_libs?
  51621. - if test "$linkalldeplibs" = yes; then
  51622. - deplibs="$deplib $deplibs"
  51623. - else
  51624. - # Need to hardcode shared library paths
  51625. - # or/and link against static libraries
  51626. - newdependency_libs="$deplib $newdependency_libs"
  51627. - fi
  51628. - if test "X$duplicate_deps" = "Xyes" ; then
  51629. - case "$tmp_libs " in
  51630. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51631. - esac
  51632. - fi
  51633. - tmp_libs="$tmp_libs $deplib"
  51634. - done # for deplib
  51635. - continue
  51636. - fi # $linkmode = prog...
  51637. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51638. +extern $lt_dlsym_const lt_dlsymlist
  51639. +lt_${my_prefix}_LTX_preloaded_symbols[];
  51640. +$lt_dlsym_const lt_dlsymlist
  51641. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  51642. +{\
  51643. + { \"$my_originator\", (void *) 0 },"
  51644. - if test "$linkmode,$pass" = "prog,link"; then
  51645. - if test -n "$library_names" &&
  51646. - { { test "$prefer_static_libs" = no ||
  51647. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  51648. - test -z "$old_library"; }; then
  51649. - # We need to hardcode the library path
  51650. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  51651. - # Make sure the rpath contains only unique directories.
  51652. - case "$temp_rpath " in
  51653. - *" $dir "*) ;;
  51654. - *" $absdir "*) ;;
  51655. - *) temp_rpath="$temp_rpath $absdir" ;;
  51656. - esac
  51657. - fi
  51658. + case $need_lib_prefix in
  51659. + no)
  51660. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  51661. + ;;
  51662. + *)
  51663. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  51664. + ;;
  51665. + esac
  51666. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51667. + {0, (void *) 0}
  51668. +};
  51669. - # Hardcode the library path.
  51670. - # Skip directories that are in the system default run-time
  51671. - # search path.
  51672. - case " $sys_lib_dlsearch_path " in
  51673. - *" $absdir "*) ;;
  51674. - *)
  51675. - case "$compile_rpath " in
  51676. - *" $absdir "*) ;;
  51677. - *) compile_rpath="$compile_rpath $absdir"
  51678. - esac
  51679. - ;;
  51680. - esac
  51681. - case " $sys_lib_dlsearch_path " in
  51682. - *" $libdir "*) ;;
  51683. - *)
  51684. - case "$finalize_rpath " in
  51685. - *" $libdir "*) ;;
  51686. - *) finalize_rpath="$finalize_rpath $libdir"
  51687. - esac
  51688. - ;;
  51689. - esac
  51690. - fi # $linkmode,$pass = prog,link...
  51691. -
  51692. - if test "$alldeplibs" = yes &&
  51693. - { test "$deplibs_check_method" = pass_all ||
  51694. - { test "$build_libtool_libs" = yes &&
  51695. - test -n "$library_names"; }; }; then
  51696. - # We only need to search for static libraries
  51697. - continue
  51698. - fi
  51699. - fi
  51700. +/* This works around a problem in FreeBSD linker */
  51701. +#ifdef FREEBSD_WORKAROUND
  51702. +static const void *lt_preloaded_setup() {
  51703. + return lt_${my_prefix}_LTX_preloaded_symbols;
  51704. +}
  51705. +#endif
  51706. - link_static=no # Whether the deplib will be linked statically
  51707. - use_static_libs=$prefer_static_libs
  51708. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  51709. - use_static_libs=no
  51710. - fi
  51711. - if test -n "$library_names" &&
  51712. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  51713. - if test "$installed" = no; then
  51714. - notinst_deplibs="$notinst_deplibs $lib"
  51715. - need_relink=yes
  51716. - fi
  51717. - # This is a shared library
  51718. +#ifdef __cplusplus
  51719. +}
  51720. +#endif\
  51721. +"
  51722. + } # !$opt_dry_run
  51723. - # Warn about portability, can't link against -module's on
  51724. - # some systems (darwin)
  51725. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  51726. - $echo
  51727. - if test "$linkmode" = prog; then
  51728. - $echo "*** Warning: Linking the executable $output against the loadable module"
  51729. - else
  51730. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  51731. + pic_flag_for_symtable=
  51732. + case "$compile_command " in
  51733. + *" -static "*) ;;
  51734. + *)
  51735. + case $host in
  51736. + # compiling the symbol table file with pic_flag works around
  51737. + # a FreeBSD bug that causes programs to crash when -lm is
  51738. + # linked before any other PIC object. But we must not use
  51739. + # pic_flag when linking with -static. The problem exists in
  51740. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  51741. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  51742. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  51743. + *-*-hpux*)
  51744. + pic_flag_for_symtable=" $pic_flag" ;;
  51745. + *)
  51746. + if test "X$my_pic_p" != Xno; then
  51747. + pic_flag_for_symtable=" $pic_flag"
  51748. fi
  51749. - $echo "*** $linklib is not portable!"
  51750. - fi
  51751. - if test "$linkmode" = lib &&
  51752. - test "$hardcode_into_libs" = yes; then
  51753. - # Hardcode the library path.
  51754. - # Skip directories that are in the system default run-time
  51755. - # search path.
  51756. - case " $sys_lib_dlsearch_path " in
  51757. - *" $absdir "*) ;;
  51758. - *)
  51759. - case "$compile_rpath " in
  51760. - *" $absdir "*) ;;
  51761. - *) compile_rpath="$compile_rpath $absdir"
  51762. - esac
  51763. - ;;
  51764. - esac
  51765. - case " $sys_lib_dlsearch_path " in
  51766. - *" $libdir "*) ;;
  51767. - *)
  51768. - case "$finalize_rpath " in
  51769. - *" $libdir "*) ;;
  51770. - *) finalize_rpath="$finalize_rpath $libdir"
  51771. - esac
  51772. - ;;
  51773. - esac
  51774. + ;;
  51775. + esac
  51776. + ;;
  51777. + esac
  51778. + symtab_cflags=
  51779. + for arg in $LTCFLAGS; do
  51780. + case $arg in
  51781. + -pie | -fpie | -fPIE) ;;
  51782. + *) symtab_cflags="$symtab_cflags $arg" ;;
  51783. + esac
  51784. + done
  51785. +
  51786. + # Now compile the dynamic symbol file.
  51787. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  51788. +
  51789. + # Clean up the generated files.
  51790. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  51791. +
  51792. + # Transform the symbol file into the correct name.
  51793. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  51794. + case $host in
  51795. + *cygwin* | *mingw* | *cegcc* )
  51796. + if test -f "$output_objdir/$my_outputname.def"; then
  51797. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  51798. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  51799. + else
  51800. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51801. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51802. fi
  51803. + ;;
  51804. + *)
  51805. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51806. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51807. + ;;
  51808. + esac
  51809. + ;;
  51810. + *)
  51811. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  51812. + ;;
  51813. + esac
  51814. + else
  51815. + # We keep going just in case the user didn't refer to
  51816. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  51817. + # really was required.
  51818. +
  51819. + # Nullify the symbol file.
  51820. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  51821. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  51822. + fi
  51823. +}
  51824. - if test -n "$old_archive_from_expsyms_cmds"; then
  51825. - # figure out the soname
  51826. - set dummy $library_names
  51827. - realname="$2"
  51828. - shift; shift
  51829. - libname=`eval \\$echo \"$libname_spec\"`
  51830. - # use dlname if we got it. it's perfectly good, no?
  51831. - if test -n "$dlname"; then
  51832. - soname="$dlname"
  51833. - elif test -n "$soname_spec"; then
  51834. - # bleh windows
  51835. - case $host in
  51836. - *cygwin* | mingw*)
  51837. - major=`expr $current - $age`
  51838. - versuffix="-$major"
  51839. - ;;
  51840. - esac
  51841. - eval soname=\"$soname_spec\"
  51842. - else
  51843. - soname="$realname"
  51844. - fi
  51845. +# func_win32_libid arg
  51846. +# return the library type of file 'arg'
  51847. +#
  51848. +# Need a lot of goo to handle *both* DLLs and import libs
  51849. +# Has to be a shell function in order to 'eat' the argument
  51850. +# that is supplied when $file_magic_command is called.
  51851. +func_win32_libid ()
  51852. +{
  51853. + $opt_debug
  51854. + win32_libid_type="unknown"
  51855. + win32_fileres=`file -L $1 2>/dev/null`
  51856. + case $win32_fileres in
  51857. + *ar\ archive\ import\ library*) # definitely import
  51858. + win32_libid_type="x86 archive import"
  51859. + ;;
  51860. + *ar\ archive*) # could be an import, or static
  51861. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  51862. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  51863. + win32_nmres=`eval $NM -f posix -A $1 |
  51864. + $SED -n -e '
  51865. + 1,100{
  51866. + / I /{
  51867. + s,.*,import,
  51868. + p
  51869. + q
  51870. + }
  51871. + }'`
  51872. + case $win32_nmres in
  51873. + import*) win32_libid_type="x86 archive import";;
  51874. + *) win32_libid_type="x86 archive static";;
  51875. + esac
  51876. + fi
  51877. + ;;
  51878. + *DLL*)
  51879. + win32_libid_type="x86 DLL"
  51880. + ;;
  51881. + *executable*) # but shell scripts are "executable" too...
  51882. + case $win32_fileres in
  51883. + *MS\ Windows\ PE\ Intel*)
  51884. + win32_libid_type="x86 DLL"
  51885. + ;;
  51886. + esac
  51887. + ;;
  51888. + esac
  51889. + $ECHO "$win32_libid_type"
  51890. +}
  51891. - # Make a new name for the extract_expsyms_cmds to use
  51892. - soroot="$soname"
  51893. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  51894. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  51895. - # If the library has no export list, then create one now
  51896. - if test -f "$output_objdir/$soname-def"; then :
  51897. - else
  51898. - $show "extracting exported symbol list from \`$soname'"
  51899. - save_ifs="$IFS"; IFS='~'
  51900. - cmds=$extract_expsyms_cmds
  51901. - for cmd in $cmds; do
  51902. - IFS="$save_ifs"
  51903. - eval cmd=\"$cmd\"
  51904. - $show "$cmd"
  51905. - $run eval "$cmd" || exit $?
  51906. - done
  51907. - IFS="$save_ifs"
  51908. - fi
  51909. - # Create $newlib
  51910. - if test -f "$output_objdir/$newlib"; then :; else
  51911. - $show "generating import library for \`$soname'"
  51912. - save_ifs="$IFS"; IFS='~'
  51913. - cmds=$old_archive_from_expsyms_cmds
  51914. - for cmd in $cmds; do
  51915. - IFS="$save_ifs"
  51916. - eval cmd=\"$cmd\"
  51917. - $show "$cmd"
  51918. - $run eval "$cmd" || exit $?
  51919. - done
  51920. - IFS="$save_ifs"
  51921. - fi
  51922. - # make sure the library variables are pointing to the new library
  51923. - dir=$output_objdir
  51924. - linklib=$newlib
  51925. - fi # test -n "$old_archive_from_expsyms_cmds"
  51926. +# func_extract_an_archive dir oldlib
  51927. +func_extract_an_archive ()
  51928. +{
  51929. + $opt_debug
  51930. + f_ex_an_ar_dir="$1"; shift
  51931. + f_ex_an_ar_oldlib="$1"
  51932. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  51933. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  51934. + :
  51935. + else
  51936. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  51937. + fi
  51938. +}
  51939. - if test "$linkmode" = prog || test "$mode" != relink; then
  51940. - add_shlibpath=
  51941. - add_dir=
  51942. - add=
  51943. - lib_linked=yes
  51944. - case $hardcode_action in
  51945. - immediate | unsupported)
  51946. - if test "$hardcode_direct" = no; then
  51947. - add="$dir/$linklib"
  51948. - case $host in
  51949. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  51950. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  51951. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  51952. - *-*-unixware7*) add_dir="-L$dir" ;;
  51953. - *-*-darwin* )
  51954. - # if the lib is a module then we can not link against
  51955. - # it, someone is ignoring the new warnings I added
  51956. - if /usr/bin/file -L $add 2> /dev/null |
  51957. - $EGREP ": [^:]* bundle" >/dev/null ; then
  51958. - $echo "** Warning, lib $linklib is a module, not a shared library"
  51959. - if test -z "$old_library" ; then
  51960. - $echo
  51961. - $echo "** And there doesn't seem to be a static archive available"
  51962. - $echo "** The link will probably fail, sorry"
  51963. - else
  51964. - add="$dir/$old_library"
  51965. - fi
  51966. - fi
  51967. - esac
  51968. - elif test "$hardcode_minus_L" = no; then
  51969. - case $host in
  51970. - *-*-sunos*) add_shlibpath="$dir" ;;
  51971. - esac
  51972. - add_dir="-L$dir"
  51973. - add="-l$name"
  51974. - elif test "$hardcode_shlibpath_var" = no; then
  51975. - add_shlibpath="$dir"
  51976. - add="-l$name"
  51977. - else
  51978. - lib_linked=no
  51979. - fi
  51980. - ;;
  51981. - relink)
  51982. - if test "$hardcode_direct" = yes; then
  51983. - add="$dir/$linklib"
  51984. - elif test "$hardcode_minus_L" = yes; then
  51985. - add_dir="-L$dir"
  51986. - # Try looking first in the location we're being installed to.
  51987. - if test -n "$inst_prefix_dir"; then
  51988. - case $libdir in
  51989. - [\\/]*)
  51990. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51991. - ;;
  51992. - esac
  51993. - fi
  51994. - add="-l$name"
  51995. - elif test "$hardcode_shlibpath_var" = yes; then
  51996. - add_shlibpath="$dir"
  51997. - add="-l$name"
  51998. - else
  51999. - lib_linked=no
  52000. - fi
  52001. - ;;
  52002. - *) lib_linked=no ;;
  52003. - esac
  52004. - if test "$lib_linked" != yes; then
  52005. - $echo "$modename: configuration error: unsupported hardcode properties"
  52006. - exit $EXIT_FAILURE
  52007. - fi
  52008. +# func_extract_archives gentop oldlib ...
  52009. +func_extract_archives ()
  52010. +{
  52011. + $opt_debug
  52012. + my_gentop="$1"; shift
  52013. + my_oldlibs=${1+"$@"}
  52014. + my_oldobjs=""
  52015. + my_xlib=""
  52016. + my_xabs=""
  52017. + my_xdir=""
  52018. - if test -n "$add_shlibpath"; then
  52019. - case :$compile_shlibpath: in
  52020. - *":$add_shlibpath:"*) ;;
  52021. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  52022. - esac
  52023. - fi
  52024. - if test "$linkmode" = prog; then
  52025. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  52026. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  52027. - else
  52028. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  52029. - test -n "$add" && deplibs="$add $deplibs"
  52030. - if test "$hardcode_direct" != yes && \
  52031. - test "$hardcode_minus_L" != yes && \
  52032. - test "$hardcode_shlibpath_var" = yes; then
  52033. - case :$finalize_shlibpath: in
  52034. - *":$libdir:"*) ;;
  52035. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  52036. - esac
  52037. - fi
  52038. - fi
  52039. - fi
  52040. + for my_xlib in $my_oldlibs; do
  52041. + # Extract the objects.
  52042. + case $my_xlib in
  52043. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  52044. + *) my_xabs=`pwd`"/$my_xlib" ;;
  52045. + esac
  52046. + func_basename "$my_xlib"
  52047. + my_xlib="$func_basename_result"
  52048. + my_xlib_u=$my_xlib
  52049. + while :; do
  52050. + case " $extracted_archives " in
  52051. + *" $my_xlib_u "*)
  52052. + func_arith $extracted_serial + 1
  52053. + extracted_serial=$func_arith_result
  52054. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  52055. + *) break ;;
  52056. + esac
  52057. + done
  52058. + extracted_archives="$extracted_archives $my_xlib_u"
  52059. + my_xdir="$my_gentop/$my_xlib_u"
  52060. - if test "$linkmode" = prog || test "$mode" = relink; then
  52061. - add_shlibpath=
  52062. - add_dir=
  52063. - add=
  52064. - # Finalize command for both is simple: just hardcode it.
  52065. - if test "$hardcode_direct" = yes; then
  52066. - add="$libdir/$linklib"
  52067. - elif test "$hardcode_minus_L" = yes; then
  52068. - add_dir="-L$libdir"
  52069. - add="-l$name"
  52070. - elif test "$hardcode_shlibpath_var" = yes; then
  52071. - case :$finalize_shlibpath: in
  52072. - *":$libdir:"*) ;;
  52073. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  52074. - esac
  52075. - add="-l$name"
  52076. - elif test "$hardcode_automatic" = yes; then
  52077. - if test -n "$inst_prefix_dir" &&
  52078. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  52079. - add="$inst_prefix_dir$libdir/$linklib"
  52080. - else
  52081. - add="$libdir/$linklib"
  52082. - fi
  52083. - else
  52084. - # We cannot seem to hardcode it, guess we'll fake it.
  52085. - add_dir="-L$libdir"
  52086. - # Try looking first in the location we're being installed to.
  52087. - if test -n "$inst_prefix_dir"; then
  52088. - case $libdir in
  52089. - [\\/]*)
  52090. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  52091. - ;;
  52092. - esac
  52093. - fi
  52094. - add="-l$name"
  52095. - fi
  52096. + func_mkdir_p "$my_xdir"
  52097. - if test "$linkmode" = prog; then
  52098. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  52099. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  52100. - else
  52101. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  52102. - test -n "$add" && deplibs="$add $deplibs"
  52103. - fi
  52104. - fi
  52105. - elif test "$linkmode" = prog; then
  52106. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  52107. - # is not unsupported. This is valid on all known static and
  52108. - # shared platforms.
  52109. - if test "$hardcode_direct" != unsupported; then
  52110. - test -n "$old_library" && linklib="$old_library"
  52111. - compile_deplibs="$dir/$linklib $compile_deplibs"
  52112. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  52113. + case $host in
  52114. + *-darwin*)
  52115. + func_verbose "Extracting $my_xabs"
  52116. + # Do not bother doing anything if just a dry run
  52117. + $opt_dry_run || {
  52118. + darwin_orig_dir=`pwd`
  52119. + cd $my_xdir || exit $?
  52120. + darwin_archive=$my_xabs
  52121. + darwin_curdir=`pwd`
  52122. + darwin_base_archive=`basename "$darwin_archive"`
  52123. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  52124. + if test -n "$darwin_arches"; then
  52125. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  52126. + darwin_arch=
  52127. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  52128. + for darwin_arch in $darwin_arches ; do
  52129. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  52130. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  52131. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  52132. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  52133. + cd "$darwin_curdir"
  52134. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  52135. + done # $darwin_arches
  52136. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  52137. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  52138. + darwin_file=
  52139. + darwin_files=
  52140. + for darwin_file in $darwin_filelist; do
  52141. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  52142. + $LIPO -create -output "$darwin_file" $darwin_files
  52143. + done # $darwin_filelist
  52144. + $RM -rf unfat-$$
  52145. + cd "$darwin_orig_dir"
  52146. else
  52147. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  52148. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  52149. - fi
  52150. - elif test "$build_libtool_libs" = yes; then
  52151. - # Not a shared library
  52152. - if test "$deplibs_check_method" != pass_all; then
  52153. - # We're trying link a shared library against a static one
  52154. - # but the system doesn't support it.
  52155. + cd $darwin_orig_dir
  52156. + func_extract_an_archive "$my_xdir" "$my_xabs"
  52157. + fi # $darwin_arches
  52158. + } # !$opt_dry_run
  52159. + ;;
  52160. + *)
  52161. + func_extract_an_archive "$my_xdir" "$my_xabs"
  52162. + ;;
  52163. + esac
  52164. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  52165. + done
  52166. - # Just print a warning and add the library to dependency_libs so
  52167. - # that the program can be linked against the static library.
  52168. - $echo
  52169. - $echo "*** Warning: This system can not link to static lib archive $lib."
  52170. - $echo "*** I have the capability to make that library automatically link in when"
  52171. - $echo "*** you link to this library. But I can only do this if you have a"
  52172. - $echo "*** shared version of the library, which you do not appear to have."
  52173. - if test "$module" = yes; then
  52174. - $echo "*** But as you try to build a module library, libtool will still create "
  52175. - $echo "*** a static module, that should work as long as the dlopening application"
  52176. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  52177. - if test -z "$global_symbol_pipe"; then
  52178. - $echo
  52179. - $echo "*** However, this would only work if libtool was able to extract symbol"
  52180. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  52181. - $echo "*** not find such a program. So, this module is probably useless."
  52182. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  52183. - fi
  52184. - if test "$build_old_libs" = no; then
  52185. - build_libtool_libs=module
  52186. - build_old_libs=yes
  52187. - else
  52188. - build_libtool_libs=no
  52189. - fi
  52190. - fi
  52191. - else
  52192. - deplibs="$dir/$old_library $deplibs"
  52193. - link_static=yes
  52194. - fi
  52195. - fi # link shared/static library?
  52196. + func_extract_archives_result="$my_oldobjs"
  52197. +}
  52198. - if test "$linkmode" = lib; then
  52199. - if test -n "$dependency_libs" &&
  52200. - { test "$hardcode_into_libs" != yes ||
  52201. - test "$build_old_libs" = yes ||
  52202. - test "$link_static" = yes; }; then
  52203. - # Extract -R from dependency_libs
  52204. - temp_deplibs=
  52205. - for libdir in $dependency_libs; do
  52206. - case $libdir in
  52207. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  52208. - case " $xrpath " in
  52209. - *" $temp_xrpath "*) ;;
  52210. - *) xrpath="$xrpath $temp_xrpath";;
  52211. - esac;;
  52212. - *) temp_deplibs="$temp_deplibs $libdir";;
  52213. - esac
  52214. - done
  52215. - dependency_libs="$temp_deplibs"
  52216. - fi
  52217. - newlib_search_path="$newlib_search_path $absdir"
  52218. - # Link against this library
  52219. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  52220. - # ... and its dependency_libs
  52221. - tmp_libs=
  52222. - for deplib in $dependency_libs; do
  52223. - newdependency_libs="$deplib $newdependency_libs"
  52224. - if test "X$duplicate_deps" = "Xyes" ; then
  52225. - case "$tmp_libs " in
  52226. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  52227. - esac
  52228. - fi
  52229. - tmp_libs="$tmp_libs $deplib"
  52230. - done
  52231. - if test "$link_all_deplibs" != no; then
  52232. - # Add the search paths of all dependency libraries
  52233. - for deplib in $dependency_libs; do
  52234. - case $deplib in
  52235. - -L*) path="$deplib" ;;
  52236. - *.la)
  52237. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  52238. - test "X$dir" = "X$deplib" && dir="."
  52239. - # We need an absolute path.
  52240. - case $dir in
  52241. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  52242. - *)
  52243. - absdir=`cd "$dir" && pwd`
  52244. - if test -z "$absdir"; then
  52245. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  52246. - absdir="$dir"
  52247. - fi
  52248. - ;;
  52249. - esac
  52250. - if grep "^installed=no" $deplib > /dev/null; then
  52251. - path="$absdir/$objdir"
  52252. - else
  52253. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  52254. - if test -z "$libdir"; then
  52255. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  52256. - exit $EXIT_FAILURE
  52257. - fi
  52258. - if test "$absdir" != "$libdir"; then
  52259. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  52260. - fi
  52261. - path="$absdir"
  52262. - fi
  52263. - depdepl=
  52264. - case $host in
  52265. - *-*-darwin*)
  52266. - # we do not want to link against static libs,
  52267. - # but need to link against shared
  52268. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  52269. - if test -n "$deplibrary_names" ; then
  52270. - for tmp in $deplibrary_names ; do
  52271. - depdepl=$tmp
  52272. - done
  52273. - if test -f "$path/$depdepl" ; then
  52274. - depdepl="$path/$depdepl"
  52275. - fi
  52276. - # do not add paths which are already there
  52277. - case " $newlib_search_path " in
  52278. - *" $path "*) ;;
  52279. - *) newlib_search_path="$newlib_search_path $path";;
  52280. - esac
  52281. - fi
  52282. - path=""
  52283. - ;;
  52284. - *)
  52285. - path="-L$path"
  52286. - ;;
  52287. - esac
  52288. - ;;
  52289. - -l*)
  52290. - case $host in
  52291. - *-*-darwin*)
  52292. - # Again, we only want to link against shared libraries
  52293. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  52294. - for tmp in $newlib_search_path ; do
  52295. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  52296. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  52297. - break
  52298. - fi
  52299. - done
  52300. - path=""
  52301. - ;;
  52302. - *) continue ;;
  52303. - esac
  52304. - ;;
  52305. - *) continue ;;
  52306. - esac
  52307. - case " $deplibs " in
  52308. - *" $path "*) ;;
  52309. - *) deplibs="$path $deplibs" ;;
  52310. - esac
  52311. - case " $deplibs " in
  52312. - *" $depdepl "*) ;;
  52313. - *) deplibs="$depdepl $deplibs" ;;
  52314. - esac
  52315. - done
  52316. - fi # link_all_deplibs != no
  52317. - fi # linkmode = lib
  52318. - done # for deplib in $libs
  52319. - dependency_libs="$newdependency_libs"
  52320. - if test "$pass" = dlpreopen; then
  52321. - # Link the dlpreopened libraries before other libraries
  52322. - for deplib in $save_deplibs; do
  52323. - deplibs="$deplib $deplibs"
  52324. - done
  52325. - fi
  52326. - if test "$pass" != dlopen; then
  52327. - if test "$pass" != conv; then
  52328. - # Make sure lib_search_path contains only unique directories.
  52329. - lib_search_path=
  52330. - for dir in $newlib_search_path; do
  52331. - case "$lib_search_path " in
  52332. - *" $dir "*) ;;
  52333. - *) lib_search_path="$lib_search_path $dir" ;;
  52334. - esac
  52335. - done
  52336. - newlib_search_path=
  52337. +# func_emit_wrapper_part1 [arg=no]
  52338. +#
  52339. +# Emit the first part of a libtool wrapper script on stdout.
  52340. +# For more information, see the description associated with
  52341. +# func_emit_wrapper(), below.
  52342. +func_emit_wrapper_part1 ()
  52343. +{
  52344. + func_emit_wrapper_part1_arg1=no
  52345. + if test -n "$1" ; then
  52346. + func_emit_wrapper_part1_arg1=$1
  52347. fi
  52348. - if test "$linkmode,$pass" != "prog,link"; then
  52349. - vars="deplibs"
  52350. - else
  52351. - vars="compile_deplibs finalize_deplibs"
  52352. - fi
  52353. - for var in $vars dependency_libs; do
  52354. - # Add libraries to $var in reverse order
  52355. - eval tmp_libs=\"\$$var\"
  52356. - new_libs=
  52357. - for deplib in $tmp_libs; do
  52358. - # FIXME: Pedantically, this is the right thing to do, so
  52359. - # that some nasty dependency loop isn't accidentally
  52360. - # broken:
  52361. - #new_libs="$deplib $new_libs"
  52362. - # Pragmatically, this seems to cause very few problems in
  52363. - # practice:
  52364. - case $deplib in
  52365. - -L*) new_libs="$deplib $new_libs" ;;
  52366. - -R*) ;;
  52367. - *)
  52368. - # And here is the reason: when a library appears more
  52369. - # than once as an explicit dependence of a library, or
  52370. - # is implicitly linked in more than once by the
  52371. - # compiler, it is considered special, and multiple
  52372. - # occurrences thereof are not removed. Compare this
  52373. - # with having the same library being listed as a
  52374. - # dependency of multiple other libraries: in this case,
  52375. - # we know (pedantically, we assume) the library does not
  52376. - # need to be listed more than once, so we keep only the
  52377. - # last copy. This is not always right, but it is rare
  52378. - # enough that we require users that really mean to play
  52379. - # such unportable linking tricks to link the library
  52380. - # using -Wl,-lname, so that libtool does not consider it
  52381. - # for duplicate removal.
  52382. - case " $specialdeplibs " in
  52383. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  52384. - *)
  52385. - case " $new_libs " in
  52386. - *" $deplib "*) ;;
  52387. - *) new_libs="$deplib $new_libs" ;;
  52388. - esac
  52389. - ;;
  52390. - esac
  52391. - ;;
  52392. - esac
  52393. - done
  52394. - tmp_libs=
  52395. - for deplib in $new_libs; do
  52396. - case $deplib in
  52397. - -L*)
  52398. - case " $tmp_libs " in
  52399. - *" $deplib "*) ;;
  52400. - *) tmp_libs="$tmp_libs $deplib" ;;
  52401. - esac
  52402. - ;;
  52403. - *) tmp_libs="$tmp_libs $deplib" ;;
  52404. - esac
  52405. - done
  52406. - eval $var=\"$tmp_libs\"
  52407. - done # for var
  52408. - fi
  52409. - # Last step: remove runtime libs from dependency_libs
  52410. - # (they stay in deplibs)
  52411. - tmp_libs=
  52412. - for i in $dependency_libs ; do
  52413. - case " $predeps $postdeps $compiler_lib_search_path " in
  52414. - *" $i "*)
  52415. - i=""
  52416. - ;;
  52417. - esac
  52418. - if test -n "$i" ; then
  52419. - tmp_libs="$tmp_libs $i"
  52420. - fi
  52421. - done
  52422. - dependency_libs=$tmp_libs
  52423. - done # for pass
  52424. - if test "$linkmode" = prog; then
  52425. - dlfiles="$newdlfiles"
  52426. - dlprefiles="$newdlprefiles"
  52427. - fi
  52428. + $ECHO "\
  52429. +#! $SHELL
  52430. - case $linkmode in
  52431. - oldlib)
  52432. - if test -n "$deplibs"; then
  52433. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  52434. - fi
  52435. +# $output - temporary wrapper script for $objdir/$outputname
  52436. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  52437. +#
  52438. +# The $output program cannot be directly executed until all the libtool
  52439. +# libraries that it depends on are installed.
  52440. +#
  52441. +# This wrapper script should never be moved out of the build directory.
  52442. +# If it is, it will not operate correctly.
  52443. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  52444. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  52445. - fi
  52446. +# Sed substitution that helps us do robust quoting. It backslashifies
  52447. +# metacharacters that are still active within double-quoted strings.
  52448. +Xsed='${SED} -e 1s/^X//'
  52449. +sed_quote_subst='$sed_quote_subst'
  52450. - if test -n "$rpath"; then
  52451. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  52452. - fi
  52453. +# Be Bourne compatible
  52454. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  52455. + emulate sh
  52456. + NULLCMD=:
  52457. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  52458. + # is contrary to our usage. Disable this feature.
  52459. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  52460. + setopt NO_GLOB_SUBST
  52461. +else
  52462. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  52463. +fi
  52464. +BIN_SH=xpg4; export BIN_SH # for Tru64
  52465. +DUALCASE=1; export DUALCASE # for MKS sh
  52466. - if test -n "$xrpath"; then
  52467. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  52468. - fi
  52469. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  52470. +# if CDPATH is set.
  52471. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  52472. - if test -n "$vinfo"; then
  52473. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  52474. - fi
  52475. +relink_command=\"$relink_command\"
  52476. - if test -n "$release"; then
  52477. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  52478. - fi
  52479. +# This environment variable determines our operation mode.
  52480. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  52481. + # install mode needs the following variables:
  52482. + generated_by_libtool_version='$macro_version'
  52483. + notinst_deplibs='$notinst_deplibs'
  52484. +else
  52485. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  52486. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  52487. + ECHO=\"$qecho\"
  52488. + file=\"\$0\"
  52489. + # Make sure echo works.
  52490. + if test \"X\$1\" = X--no-reexec; then
  52491. + # Discard the --no-reexec flag, and continue.
  52492. + shift
  52493. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  52494. + # Yippee, \$ECHO works!
  52495. + :
  52496. + else
  52497. + # Restart under the correct shell, and then maybe \$ECHO will work.
  52498. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  52499. + fi
  52500. + fi\
  52501. +"
  52502. + $ECHO "\
  52503. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  52504. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  52505. - fi
  52506. + # Find the directory that this script lives in.
  52507. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  52508. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  52509. - # Now set the variables for building old libraries.
  52510. - build_libtool_libs=no
  52511. - oldlibs="$output"
  52512. - objs="$objs$old_deplibs"
  52513. - ;;
  52514. + # Follow symbolic links until we get to the real thisdir.
  52515. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  52516. + while test -n \"\$file\"; do
  52517. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  52518. - lib)
  52519. - # Make sure we only generate libraries of the form `libNAME.la'.
  52520. - case $outputname in
  52521. - lib*)
  52522. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  52523. - eval shared_ext=\"$shrext_cmds\"
  52524. - eval libname=\"$libname_spec\"
  52525. - ;;
  52526. - *)
  52527. - if test "$module" = no; then
  52528. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  52529. - $echo "$help" 1>&2
  52530. - exit $EXIT_FAILURE
  52531. - fi
  52532. - if test "$need_lib_prefix" != no; then
  52533. - # Add the "lib" prefix for modules if required
  52534. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  52535. - eval shared_ext=\"$shrext_cmds\"
  52536. - eval libname=\"$libname_spec\"
  52537. - else
  52538. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  52539. - fi
  52540. - ;;
  52541. + # If there was a directory component, then change thisdir.
  52542. + if test \"x\$destdir\" != \"x\$file\"; then
  52543. + case \"\$destdir\" in
  52544. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  52545. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  52546. esac
  52547. + fi
  52548. - if test -n "$objs"; then
  52549. - if test "$deplibs_check_method" != pass_all; then
  52550. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  52551. - exit $EXIT_FAILURE
  52552. - else
  52553. - $echo
  52554. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  52555. - $echo "*** objects $objs is not portable!"
  52556. - libobjs="$libobjs $objs"
  52557. - fi
  52558. - fi
  52559. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  52560. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  52561. + done
  52562. +"
  52563. +}
  52564. +# end: func_emit_wrapper_part1
  52565. - if test "$dlself" != no; then
  52566. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  52567. - fi
  52568. +# func_emit_wrapper_part2 [arg=no]
  52569. +#
  52570. +# Emit the second part of a libtool wrapper script on stdout.
  52571. +# For more information, see the description associated with
  52572. +# func_emit_wrapper(), below.
  52573. +func_emit_wrapper_part2 ()
  52574. +{
  52575. + func_emit_wrapper_part2_arg1=no
  52576. + if test -n "$1" ; then
  52577. + func_emit_wrapper_part2_arg1=$1
  52578. + fi
  52579. +
  52580. + $ECHO "\
  52581. +
  52582. + # Usually 'no', except on cygwin/mingw when embedded into
  52583. + # the cwrapper.
  52584. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  52585. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  52586. + # special case for '.'
  52587. + if test \"\$thisdir\" = \".\"; then
  52588. + thisdir=\`pwd\`
  52589. + fi
  52590. + # remove .libs from thisdir
  52591. + case \"\$thisdir\" in
  52592. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  52593. + $objdir ) thisdir=. ;;
  52594. + esac
  52595. + fi
  52596. - set dummy $rpath
  52597. - if test "$#" -gt 2; then
  52598. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  52599. + # Try to get the absolute directory name.
  52600. + absdir=\`cd \"\$thisdir\" && pwd\`
  52601. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  52602. +"
  52603. +
  52604. + if test "$fast_install" = yes; then
  52605. + $ECHO "\
  52606. + program=lt-'$outputname'$exeext
  52607. + progdir=\"\$thisdir/$objdir\"
  52608. +
  52609. + if test ! -f \"\$progdir/\$program\" ||
  52610. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  52611. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  52612. +
  52613. + file=\"\$\$-\$program\"
  52614. +
  52615. + if test ! -d \"\$progdir\"; then
  52616. + $MKDIR \"\$progdir\"
  52617. + else
  52618. + $RM \"\$progdir/\$file\"
  52619. + fi"
  52620. +
  52621. + $ECHO "\
  52622. +
  52623. + # relink executable if necessary
  52624. + if test -n \"\$relink_command\"; then
  52625. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  52626. + else
  52627. + $ECHO \"\$relink_command_output\" >&2
  52628. + $RM \"\$progdir/\$file\"
  52629. + exit 1
  52630. fi
  52631. - install_libdir="$2"
  52632. + fi
  52633. - oldlibs=
  52634. - if test -z "$rpath"; then
  52635. - if test "$build_libtool_libs" = yes; then
  52636. - # Building a libtool convenience library.
  52637. - # Some compilers have problems with a `.al' extension so
  52638. - # convenience libraries should have the same extension an
  52639. - # archive normally would.
  52640. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  52641. - build_libtool_libs=convenience
  52642. - build_old_libs=yes
  52643. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  52644. + { $RM \"\$progdir/\$program\";
  52645. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  52646. + $RM \"\$progdir/\$file\"
  52647. + fi"
  52648. + else
  52649. + $ECHO "\
  52650. + program='$outputname'
  52651. + progdir=\"\$thisdir/$objdir\"
  52652. +"
  52653. fi
  52654. - if test -n "$vinfo"; then
  52655. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  52656. + $ECHO "\
  52657. +
  52658. + if test -f \"\$progdir/\$program\"; then"
  52659. +
  52660. + # Export our shlibpath_var if we have one.
  52661. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  52662. + $ECHO "\
  52663. + # Add our own library path to $shlibpath_var
  52664. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  52665. +
  52666. + # Some systems cannot cope with colon-terminated $shlibpath_var
  52667. + # The second colon is a workaround for a bug in BeOS R4 sed
  52668. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  52669. +
  52670. + export $shlibpath_var
  52671. +"
  52672. fi
  52673. - if test -n "$release"; then
  52674. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  52675. + # fixup the dll searchpath if we need to.
  52676. + if test -n "$dllsearchpath"; then
  52677. + $ECHO "\
  52678. + # Add the dll search path components to the executable PATH
  52679. + PATH=$dllsearchpath:\$PATH
  52680. +"
  52681. fi
  52682. - else
  52683. - # Parse the version information argument.
  52684. - save_ifs="$IFS"; IFS=':'
  52685. - set dummy $vinfo 0 0 0
  52686. - IFS="$save_ifs"
  52687. + $ECHO "\
  52688. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  52689. + # Run the actual program with our arguments.
  52690. +"
  52691. + case $host in
  52692. + # Backslashes separate directories on plain windows
  52693. + *-*-mingw | *-*-os2* | *-cegcc*)
  52694. + $ECHO "\
  52695. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  52696. +"
  52697. + ;;
  52698. +
  52699. + *)
  52700. + $ECHO "\
  52701. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  52702. +"
  52703. + ;;
  52704. + esac
  52705. + $ECHO "\
  52706. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  52707. + exit 1
  52708. + fi
  52709. + else
  52710. + # The program doesn't exist.
  52711. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  52712. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  52713. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  52714. + exit 1
  52715. + fi
  52716. +fi\
  52717. +"
  52718. +}
  52719. +# end: func_emit_wrapper_part2
  52720. - if test -n "$8"; then
  52721. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  52722. - $echo "$help" 1>&2
  52723. - exit $EXIT_FAILURE
  52724. +
  52725. +# func_emit_wrapper [arg=no]
  52726. +#
  52727. +# Emit a libtool wrapper script on stdout.
  52728. +# Don't directly open a file because we may want to
  52729. +# incorporate the script contents within a cygwin/mingw
  52730. +# wrapper executable. Must ONLY be called from within
  52731. +# func_mode_link because it depends on a number of variables
  52732. +# set therein.
  52733. +#
  52734. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  52735. +# variable will take. If 'yes', then the emitted script
  52736. +# will assume that the directory in which it is stored is
  52737. +# the $objdir directory. This is a cygwin/mingw-specific
  52738. +# behavior.
  52739. +func_emit_wrapper ()
  52740. +{
  52741. + func_emit_wrapper_arg1=no
  52742. + if test -n "$1" ; then
  52743. + func_emit_wrapper_arg1=$1
  52744. fi
  52745. - # convert absolute version numbers to libtool ages
  52746. - # this retains compatibility with .la files and attempts
  52747. - # to make the code below a bit more comprehensible
  52748. + # split this up so that func_emit_cwrapperexe_src
  52749. + # can call each part independently.
  52750. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  52751. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  52752. +}
  52753. - case $vinfo_number in
  52754. - yes)
  52755. - number_major="$2"
  52756. - number_minor="$3"
  52757. - number_revision="$4"
  52758. - #
  52759. - # There are really only two kinds -- those that
  52760. - # use the current revision as the major version
  52761. - # and those that subtract age and use age as
  52762. - # a minor version. But, then there is irix
  52763. - # which has an extra 1 added just for fun
  52764. - #
  52765. - case $version_type in
  52766. - darwin|linux|osf|windows|none)
  52767. - current=`expr $number_major + $number_minor`
  52768. - age="$number_minor"
  52769. - revision="$number_revision"
  52770. - ;;
  52771. - freebsd-aout|freebsd-elf|sunos)
  52772. - current="$number_major"
  52773. - revision="$number_minor"
  52774. - age="0"
  52775. - ;;
  52776. - irix|nonstopux)
  52777. - current=`expr $number_major + $number_minor`
  52778. - age="$number_minor"
  52779. - revision="$number_minor"
  52780. - lt_irix_increment=no
  52781. - ;;
  52782. - *)
  52783. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  52784. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  52785. - exit $EXIT_FAILURE
  52786. - ;;
  52787. - esac
  52788. - ;;
  52789. - no)
  52790. - current="$2"
  52791. - revision="$3"
  52792. - age="$4"
  52793. - ;;
  52794. - esac
  52795. - # Check that each of the things are valid numbers.
  52796. - case $current in
  52797. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  52798. - *)
  52799. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  52800. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52801. - exit $EXIT_FAILURE
  52802. - ;;
  52803. - esac
  52804. +# func_to_host_path arg
  52805. +#
  52806. +# Convert paths to host format when used with build tools.
  52807. +# Intended for use with "native" mingw (where libtool itself
  52808. +# is running under the msys shell), or in the following cross-
  52809. +# build environments:
  52810. +# $build $host
  52811. +# mingw (msys) mingw [e.g. native]
  52812. +# cygwin mingw
  52813. +# *nix + wine mingw
  52814. +# where wine is equipped with the `winepath' executable.
  52815. +# In the native mingw case, the (msys) shell automatically
  52816. +# converts paths for any non-msys applications it launches,
  52817. +# but that facility isn't available from inside the cwrapper.
  52818. +# Similar accommodations are necessary for $host mingw and
  52819. +# $build cygwin. Calling this function does no harm for other
  52820. +# $host/$build combinations not listed above.
  52821. +#
  52822. +# ARG is the path (on $build) that should be converted to
  52823. +# the proper representation for $host. The result is stored
  52824. +# in $func_to_host_path_result.
  52825. +func_to_host_path ()
  52826. +{
  52827. + func_to_host_path_result="$1"
  52828. + if test -n "$1" ; then
  52829. + case $host in
  52830. + *mingw* )
  52831. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  52832. + case $build in
  52833. + *mingw* ) # actually, msys
  52834. + # awkward: cmd appends spaces to result
  52835. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  52836. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  52837. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  52838. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  52839. + $SED -e "$lt_sed_naive_backslashify"`
  52840. + ;;
  52841. + *cygwin* )
  52842. + func_to_host_path_tmp1=`cygpath -w "$1"`
  52843. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  52844. + $SED -e "$lt_sed_naive_backslashify"`
  52845. + ;;
  52846. + * )
  52847. + # Unfortunately, winepath does not exit with a non-zero
  52848. + # error code, so we are forced to check the contents of
  52849. + # stdout. On the other hand, if the command is not
  52850. + # found, the shell will set an exit code of 127 and print
  52851. + # *an error message* to stdout. So we must check for both
  52852. + # error code of zero AND non-empty stdout, which explains
  52853. + # the odd construction:
  52854. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  52855. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  52856. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  52857. + $SED -e "$lt_sed_naive_backslashify"`
  52858. + else
  52859. + # Allow warning below.
  52860. + func_to_host_path_result=""
  52861. + fi
  52862. + ;;
  52863. + esac
  52864. + if test -z "$func_to_host_path_result" ; then
  52865. + func_error "Could not determine host path corresponding to"
  52866. + func_error " '$1'"
  52867. + func_error "Continuing, but uninstalled executables may not work."
  52868. + # Fallback:
  52869. + func_to_host_path_result="$1"
  52870. + fi
  52871. + ;;
  52872. + esac
  52873. + fi
  52874. +}
  52875. +# end: func_to_host_path
  52876. - case $revision in
  52877. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  52878. - *)
  52879. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  52880. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52881. - exit $EXIT_FAILURE
  52882. - ;;
  52883. - esac
  52884. +# func_to_host_pathlist arg
  52885. +#
  52886. +# Convert pathlists to host format when used with build tools.
  52887. +# See func_to_host_path(), above. This function supports the
  52888. +# following $build/$host combinations (but does no harm for
  52889. +# combinations not listed here):
  52890. +# $build $host
  52891. +# mingw (msys) mingw [e.g. native]
  52892. +# cygwin mingw
  52893. +# *nix + wine mingw
  52894. +#
  52895. +# Path separators are also converted from $build format to
  52896. +# $host format. If ARG begins or ends with a path separator
  52897. +# character, it is preserved (but converted to $host format)
  52898. +# on output.
  52899. +#
  52900. +# ARG is a pathlist (on $build) that should be converted to
  52901. +# the proper representation on $host. The result is stored
  52902. +# in $func_to_host_pathlist_result.
  52903. +func_to_host_pathlist ()
  52904. +{
  52905. + func_to_host_pathlist_result="$1"
  52906. + if test -n "$1" ; then
  52907. + case $host in
  52908. + *mingw* )
  52909. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  52910. + # Remove leading and trailing path separator characters from
  52911. + # ARG. msys behavior is inconsistent here, cygpath turns them
  52912. + # into '.;' and ';.', and winepath ignores them completely.
  52913. + func_to_host_pathlist_tmp2="$1"
  52914. + # Once set for this call, this variable should not be
  52915. + # reassigned. It is used in tha fallback case.
  52916. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  52917. + $SED -e 's|^:*||' -e 's|:*$||'`
  52918. + case $build in
  52919. + *mingw* ) # Actually, msys.
  52920. + # Awkward: cmd appends spaces to result.
  52921. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  52922. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  52923. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  52924. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  52925. + $SED -e "$lt_sed_naive_backslashify"`
  52926. + ;;
  52927. + *cygwin* )
  52928. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  52929. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  52930. + $SED -e "$lt_sed_naive_backslashify"`
  52931. + ;;
  52932. + * )
  52933. + # unfortunately, winepath doesn't convert pathlists
  52934. + func_to_host_pathlist_result=""
  52935. + func_to_host_pathlist_oldIFS=$IFS
  52936. + IFS=:
  52937. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  52938. + IFS=$func_to_host_pathlist_oldIFS
  52939. + if test -n "$func_to_host_pathlist_f" ; then
  52940. + func_to_host_path "$func_to_host_pathlist_f"
  52941. + if test -n "$func_to_host_path_result" ; then
  52942. + if test -z "$func_to_host_pathlist_result" ; then
  52943. + func_to_host_pathlist_result="$func_to_host_path_result"
  52944. + else
  52945. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  52946. + fi
  52947. + fi
  52948. + fi
  52949. + IFS=:
  52950. + done
  52951. + IFS=$func_to_host_pathlist_oldIFS
  52952. + ;;
  52953. + esac
  52954. + if test -z "$func_to_host_pathlist_result" ; then
  52955. + func_error "Could not determine the host path(s) corresponding to"
  52956. + func_error " '$1'"
  52957. + func_error "Continuing, but uninstalled executables may not work."
  52958. + # Fallback. This may break if $1 contains DOS-style drive
  52959. + # specifications. The fix is not to complicate the expression
  52960. + # below, but for the user to provide a working wine installation
  52961. + # with winepath so that path translation in the cross-to-mingw
  52962. + # case works properly.
  52963. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  52964. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  52965. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  52966. + fi
  52967. + # Now, add the leading and trailing path separators back
  52968. + case "$1" in
  52969. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  52970. + ;;
  52971. + esac
  52972. + case "$1" in
  52973. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  52974. + ;;
  52975. + esac
  52976. + ;;
  52977. + esac
  52978. + fi
  52979. +}
  52980. +# end: func_to_host_pathlist
  52981. - case $age in
  52982. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  52983. - *)
  52984. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  52985. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52986. - exit $EXIT_FAILURE
  52987. - ;;
  52988. - esac
  52989. +# func_emit_cwrapperexe_src
  52990. +# emit the source code for a wrapper executable on stdout
  52991. +# Must ONLY be called from within func_mode_link because
  52992. +# it depends on a number of variable set therein.
  52993. +func_emit_cwrapperexe_src ()
  52994. +{
  52995. + cat <<EOF
  52996. - if test "$age" -gt "$current"; then
  52997. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  52998. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52999. - exit $EXIT_FAILURE
  53000. - fi
  53001. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  53002. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  53003. - # Calculate the version variables.
  53004. - major=
  53005. - versuffix=
  53006. - verstring=
  53007. - case $version_type in
  53008. - none) ;;
  53009. + The $output program cannot be directly executed until all the libtool
  53010. + libraries that it depends on are installed.
  53011. - darwin)
  53012. - # Like Linux, but with the current version available in
  53013. - # verstring for coding it into the library header
  53014. - major=.`expr $current - $age`
  53015. - versuffix="$major.$age.$revision"
  53016. - # Darwin ld doesn't like 0 for these options...
  53017. - minor_current=`expr $current + 1`
  53018. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  53019. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  53020. - ;;
  53021. + This wrapper executable should never be moved out of the build directory.
  53022. + If it is, it will not operate correctly.
  53023. - freebsd-aout)
  53024. - major=".$current"
  53025. - versuffix=".$current.$revision";
  53026. - ;;
  53027. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  53028. + but could eventually absorb all of the scripts functionality and
  53029. + exec $objdir/$outputname directly.
  53030. +*/
  53031. +EOF
  53032. + cat <<"EOF"
  53033. +#include <stdio.h>
  53034. +#include <stdlib.h>
  53035. +#ifdef _MSC_VER
  53036. +# include <direct.h>
  53037. +# include <process.h>
  53038. +# include <io.h>
  53039. +# define setmode _setmode
  53040. +#else
  53041. +# include <unistd.h>
  53042. +# include <stdint.h>
  53043. +# ifdef __CYGWIN__
  53044. +# include <io.h>
  53045. +# define HAVE_SETENV
  53046. +# ifdef __STRICT_ANSI__
  53047. +char *realpath (const char *, char *);
  53048. +int putenv (char *);
  53049. +int setenv (const char *, const char *, int);
  53050. +# endif
  53051. +# endif
  53052. +#endif
  53053. +#include <malloc.h>
  53054. +#include <stdarg.h>
  53055. +#include <assert.h>
  53056. +#include <string.h>
  53057. +#include <ctype.h>
  53058. +#include <errno.h>
  53059. +#include <fcntl.h>
  53060. +#include <sys/stat.h>
  53061. - freebsd-elf)
  53062. - major=".$current"
  53063. - versuffix=".$current";
  53064. - ;;
  53065. +#if defined(PATH_MAX)
  53066. +# define LT_PATHMAX PATH_MAX
  53067. +#elif defined(MAXPATHLEN)
  53068. +# define LT_PATHMAX MAXPATHLEN
  53069. +#else
  53070. +# define LT_PATHMAX 1024
  53071. +#endif
  53072. - irix | nonstopux)
  53073. - if test "X$lt_irix_increment" = "Xno"; then
  53074. - major=`expr $current - $age`
  53075. - else
  53076. - major=`expr $current - $age + 1`
  53077. - fi
  53078. - case $version_type in
  53079. - nonstopux) verstring_prefix=nonstopux ;;
  53080. - *) verstring_prefix=sgi ;;
  53081. - esac
  53082. - verstring="$verstring_prefix$major.$revision"
  53083. +#ifndef S_IXOTH
  53084. +# define S_IXOTH 0
  53085. +#endif
  53086. +#ifndef S_IXGRP
  53087. +# define S_IXGRP 0
  53088. +#endif
  53089. - # Add in all the interfaces that we are compatible with.
  53090. - loop=$revision
  53091. - while test "$loop" -ne 0; do
  53092. - iface=`expr $revision - $loop`
  53093. - loop=`expr $loop - 1`
  53094. - verstring="$verstring_prefix$major.$iface:$verstring"
  53095. - done
  53096. +#ifdef _MSC_VER
  53097. +# define S_IXUSR _S_IEXEC
  53098. +# define stat _stat
  53099. +# ifndef _INTPTR_T_DEFINED
  53100. +# define intptr_t int
  53101. +# endif
  53102. +#endif
  53103. - # Before this point, $major must not contain `.'.
  53104. - major=.$major
  53105. - versuffix="$major.$revision"
  53106. - ;;
  53107. +#ifndef DIR_SEPARATOR
  53108. +# define DIR_SEPARATOR '/'
  53109. +# define PATH_SEPARATOR ':'
  53110. +#endif
  53111. - linux)
  53112. - major=.`expr $current - $age`
  53113. - versuffix="$major.$age.$revision"
  53114. - ;;
  53115. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  53116. + defined (__OS2__)
  53117. +# define HAVE_DOS_BASED_FILE_SYSTEM
  53118. +# define FOPEN_WB "wb"
  53119. +# ifndef DIR_SEPARATOR_2
  53120. +# define DIR_SEPARATOR_2 '\\'
  53121. +# endif
  53122. +# ifndef PATH_SEPARATOR_2
  53123. +# define PATH_SEPARATOR_2 ';'
  53124. +# endif
  53125. +#endif
  53126. - osf)
  53127. - major=.`expr $current - $age`
  53128. - versuffix=".$current.$age.$revision"
  53129. - verstring="$current.$age.$revision"
  53130. +#ifndef DIR_SEPARATOR_2
  53131. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  53132. +#else /* DIR_SEPARATOR_2 */
  53133. +# define IS_DIR_SEPARATOR(ch) \
  53134. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  53135. +#endif /* DIR_SEPARATOR_2 */
  53136. - # Add in all the interfaces that we are compatible with.
  53137. - loop=$age
  53138. - while test "$loop" -ne 0; do
  53139. - iface=`expr $current - $loop`
  53140. - loop=`expr $loop - 1`
  53141. - verstring="$verstring:${iface}.0"
  53142. - done
  53143. +#ifndef PATH_SEPARATOR_2
  53144. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  53145. +#else /* PATH_SEPARATOR_2 */
  53146. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  53147. +#endif /* PATH_SEPARATOR_2 */
  53148. - # Make executables depend on our current version.
  53149. - verstring="$verstring:${current}.0"
  53150. - ;;
  53151. +#ifdef __CYGWIN__
  53152. +# define FOPEN_WB "wb"
  53153. +#endif
  53154. - sunos)
  53155. - major=".$current"
  53156. - versuffix=".$current.$revision"
  53157. - ;;
  53158. +#ifndef FOPEN_WB
  53159. +# define FOPEN_WB "w"
  53160. +#endif
  53161. +#ifndef _O_BINARY
  53162. +# define _O_BINARY 0
  53163. +#endif
  53164. - windows)
  53165. - # Use '-' rather than '.', since we only want one
  53166. - # extension on DOS 8.3 filesystems.
  53167. - major=`expr $current - $age`
  53168. - versuffix="-$major"
  53169. - ;;
  53170. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  53171. +#define XFREE(stale) do { \
  53172. + if (stale) { free ((void *) stale); stale = 0; } \
  53173. +} while (0)
  53174. - *)
  53175. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  53176. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  53177. - exit $EXIT_FAILURE
  53178. - ;;
  53179. - esac
  53180. +#undef LTWRAPPER_DEBUGPRINTF
  53181. +#if defined DEBUGWRAPPER
  53182. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  53183. +static void
  53184. +ltwrapper_debugprintf (const char *fmt, ...)
  53185. +{
  53186. + va_list args;
  53187. + va_start (args, fmt);
  53188. + (void) vfprintf (stderr, fmt, args);
  53189. + va_end (args);
  53190. +}
  53191. +#else
  53192. +# define LTWRAPPER_DEBUGPRINTF(args)
  53193. +#endif
  53194. - # Clear the version info if we defaulted, and they specified a release.
  53195. - if test -z "$vinfo" && test -n "$release"; then
  53196. - major=
  53197. - case $version_type in
  53198. - darwin)
  53199. - # we can't check for "0.0" in archive_cmds due to quoting
  53200. - # problems, so we reset it completely
  53201. - verstring=
  53202. - ;;
  53203. - *)
  53204. - verstring="0.0"
  53205. - ;;
  53206. - esac
  53207. - if test "$need_version" = no; then
  53208. - versuffix=
  53209. - else
  53210. - versuffix=".0.0"
  53211. - fi
  53212. - fi
  53213. +const char *program_name = NULL;
  53214. - # Remove version info from name if versioning should be avoided
  53215. - if test "$avoid_version" = yes && test "$need_version" = no; then
  53216. - major=
  53217. - versuffix=
  53218. - verstring=""
  53219. - fi
  53220. +void *xmalloc (size_t num);
  53221. +char *xstrdup (const char *string);
  53222. +const char *base_name (const char *name);
  53223. +char *find_executable (const char *wrapper);
  53224. +char *chase_symlinks (const char *pathspec);
  53225. +int make_executable (const char *path);
  53226. +int check_executable (const char *path);
  53227. +char *strendzap (char *str, const char *pat);
  53228. +void lt_fatal (const char *message, ...);
  53229. +void lt_setenv (const char *name, const char *value);
  53230. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  53231. +void lt_opt_process_env_set (const char *arg);
  53232. +void lt_opt_process_env_prepend (const char *arg);
  53233. +void lt_opt_process_env_append (const char *arg);
  53234. +int lt_split_name_value (const char *arg, char** name, char** value);
  53235. +void lt_update_exe_path (const char *name, const char *value);
  53236. +void lt_update_lib_path (const char *name, const char *value);
  53237. - # Check to see if the archive will have undefined symbols.
  53238. - if test "$allow_undefined" = yes; then
  53239. - if test "$allow_undefined_flag" = unsupported; then
  53240. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  53241. - build_libtool_libs=no
  53242. - build_old_libs=yes
  53243. - fi
  53244. - else
  53245. - # Don't allow undefined symbols.
  53246. - allow_undefined_flag="$no_undefined_flag"
  53247. - fi
  53248. - fi
  53249. +static const char *script_text_part1 =
  53250. +EOF
  53251. - if test "$mode" != relink; then
  53252. - # Remove our outputs, but don't remove object files since they
  53253. - # may have been created when compiling PIC objects.
  53254. - removelist=
  53255. - tempremovelist=`$echo "$output_objdir/*"`
  53256. - for p in $tempremovelist; do
  53257. - case $p in
  53258. - *.$objext)
  53259. - ;;
  53260. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  53261. - if test "X$precious_files_regex" != "X"; then
  53262. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  53263. - then
  53264. - continue
  53265. - fi
  53266. - fi
  53267. - removelist="$removelist $p"
  53268. - ;;
  53269. - *) ;;
  53270. - esac
  53271. - done
  53272. - if test -n "$removelist"; then
  53273. - $show "${rm}r $removelist"
  53274. - $run ${rm}r $removelist
  53275. - fi
  53276. - fi
  53277. + func_emit_wrapper_part1 yes |
  53278. + $SED -e 's/\([\\"]\)/\\\1/g' \
  53279. + -e 's/^/ "/' -e 's/$/\\n"/'
  53280. + echo ";"
  53281. + cat <<EOF
  53282. - # Now set the variables for building old libraries.
  53283. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  53284. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  53285. +static const char *script_text_part2 =
  53286. +EOF
  53287. + func_emit_wrapper_part2 yes |
  53288. + $SED -e 's/\([\\"]\)/\\\1/g' \
  53289. + -e 's/^/ "/' -e 's/$/\\n"/'
  53290. + echo ";"
  53291. +
  53292. + cat <<EOF
  53293. +const char * MAGIC_EXE = "$magic_exe";
  53294. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  53295. +EOF
  53296. - # Transform .lo files to .o files.
  53297. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  53298. - fi
  53299. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  53300. + func_to_host_pathlist "$temp_rpath"
  53301. + cat <<EOF
  53302. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  53303. +EOF
  53304. + else
  53305. + cat <<"EOF"
  53306. +const char * LIB_PATH_VALUE = "";
  53307. +EOF
  53308. + fi
  53309. - # Eliminate all temporary directories.
  53310. - #for path in $notinst_path; do
  53311. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  53312. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  53313. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  53314. - #done
  53315. + if test -n "$dllsearchpath"; then
  53316. + func_to_host_pathlist "$dllsearchpath:"
  53317. + cat <<EOF
  53318. +const char * EXE_PATH_VARNAME = "PATH";
  53319. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  53320. +EOF
  53321. + else
  53322. + cat <<"EOF"
  53323. +const char * EXE_PATH_VARNAME = "";
  53324. +const char * EXE_PATH_VALUE = "";
  53325. +EOF
  53326. + fi
  53327. - if test -n "$xrpath"; then
  53328. - # If the user specified any rpath flags, then add them.
  53329. - temp_xrpath=
  53330. - for libdir in $xrpath; do
  53331. - temp_xrpath="$temp_xrpath -R$libdir"
  53332. - case "$finalize_rpath " in
  53333. - *" $libdir "*) ;;
  53334. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  53335. - esac
  53336. - done
  53337. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  53338. - dependency_libs="$temp_xrpath $dependency_libs"
  53339. - fi
  53340. - fi
  53341. + if test "$fast_install" = yes; then
  53342. + cat <<EOF
  53343. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  53344. +EOF
  53345. + else
  53346. + cat <<EOF
  53347. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  53348. +EOF
  53349. + fi
  53350. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  53351. - old_dlfiles="$dlfiles"
  53352. - dlfiles=
  53353. - for lib in $old_dlfiles; do
  53354. - case " $dlprefiles $dlfiles " in
  53355. - *" $lib "*) ;;
  53356. - *) dlfiles="$dlfiles $lib" ;;
  53357. - esac
  53358. - done
  53359. - # Make sure dlprefiles contains only unique files
  53360. - old_dlprefiles="$dlprefiles"
  53361. - dlprefiles=
  53362. - for lib in $old_dlprefiles; do
  53363. - case "$dlprefiles " in
  53364. - *" $lib "*) ;;
  53365. - *) dlprefiles="$dlprefiles $lib" ;;
  53366. - esac
  53367. - done
  53368. + cat <<"EOF"
  53369. - if test "$build_libtool_libs" = yes; then
  53370. - if test -n "$rpath"; then
  53371. - case $host in
  53372. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  53373. - # these systems don't actually have a c library (as such)!
  53374. - ;;
  53375. - *-*-rhapsody* | *-*-darwin1.[012])
  53376. - # Rhapsody C library is in the System framework
  53377. - deplibs="$deplibs -framework System"
  53378. - ;;
  53379. - *-*-netbsd*)
  53380. - # Don't link with libc until the a.out ld.so is fixed.
  53381. - ;;
  53382. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53383. - # Do not include libc due to us having libc/libc_r.
  53384. - ;;
  53385. - *-*-sco3.2v5* | *-*-sco5v6*)
  53386. - # Causes problems with __ctype
  53387. - ;;
  53388. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  53389. - # Compiler inserts libc in the correct place for threads to work
  53390. - ;;
  53391. - *)
  53392. - # Add libc to deplibs on all other systems if necessary.
  53393. - if test "$build_libtool_need_lc" = "yes"; then
  53394. - deplibs="$deplibs -lc"
  53395. - fi
  53396. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  53397. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  53398. +
  53399. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  53400. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  53401. +
  53402. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  53403. +
  53404. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  53405. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  53406. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  53407. +
  53408. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  53409. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  53410. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  53411. +
  53412. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  53413. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  53414. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  53415. +
  53416. +int
  53417. +main (int argc, char *argv[])
  53418. +{
  53419. + char **newargz;
  53420. + int newargc;
  53421. + char *tmp_pathspec;
  53422. + char *actual_cwrapper_path;
  53423. + char *actual_cwrapper_name;
  53424. + char *target_name;
  53425. + char *lt_argv_zero;
  53426. + intptr_t rval = 127;
  53427. +
  53428. + int i;
  53429. +
  53430. + program_name = (char *) xstrdup (base_name (argv[0]));
  53431. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  53432. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  53433. +
  53434. + /* very simple arg parsing; don't want to rely on getopt */
  53435. + for (i = 1; i < argc; i++)
  53436. + {
  53437. + if (strcmp (argv[i], dumpscript_opt) == 0)
  53438. + {
  53439. +EOF
  53440. + case "$host" in
  53441. + *mingw* | *cygwin* )
  53442. + # make stdout use "unix" line endings
  53443. + echo " setmode(1,_O_BINARY);"
  53444. + ;;
  53445. + esac
  53446. +
  53447. + cat <<"EOF"
  53448. + printf ("%s", script_text_part1);
  53449. + printf ("%s", script_text_part2);
  53450. + return 0;
  53451. + }
  53452. + }
  53453. +
  53454. + newargz = XMALLOC (char *, argc + 1);
  53455. + tmp_pathspec = find_executable (argv[0]);
  53456. + if (tmp_pathspec == NULL)
  53457. + lt_fatal ("Couldn't find %s", argv[0]);
  53458. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  53459. + tmp_pathspec));
  53460. +
  53461. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  53462. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  53463. + actual_cwrapper_path));
  53464. + XFREE (tmp_pathspec);
  53465. +
  53466. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  53467. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  53468. +
  53469. + /* wrapper name transforms */
  53470. + strendzap (actual_cwrapper_name, ".exe");
  53471. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  53472. + XFREE (actual_cwrapper_name);
  53473. + actual_cwrapper_name = tmp_pathspec;
  53474. + tmp_pathspec = 0;
  53475. +
  53476. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  53477. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  53478. + strendzap (target_name, ".exe");
  53479. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  53480. + XFREE (target_name);
  53481. + target_name = tmp_pathspec;
  53482. + tmp_pathspec = 0;
  53483. +
  53484. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  53485. + target_name));
  53486. +EOF
  53487. +
  53488. + cat <<EOF
  53489. + newargz[0] =
  53490. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  53491. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  53492. + strcpy (newargz[0], actual_cwrapper_path);
  53493. + strcat (newargz[0], "$objdir");
  53494. + strcat (newargz[0], "/");
  53495. +EOF
  53496. +
  53497. + cat <<"EOF"
  53498. + /* stop here, and copy so we don't have to do this twice */
  53499. + tmp_pathspec = xstrdup (newargz[0]);
  53500. +
  53501. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  53502. + strcat (newargz[0], actual_cwrapper_name);
  53503. +
  53504. + /* DO want the lt- prefix here if it exists, so use target_name */
  53505. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  53506. + XFREE (tmp_pathspec);
  53507. + tmp_pathspec = NULL;
  53508. +EOF
  53509. +
  53510. + case $host_os in
  53511. + mingw*)
  53512. + cat <<"EOF"
  53513. + {
  53514. + char* p;
  53515. + while ((p = strchr (newargz[0], '\\')) != NULL)
  53516. + {
  53517. + *p = '/';
  53518. + }
  53519. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  53520. + {
  53521. + *p = '/';
  53522. + }
  53523. + }
  53524. +EOF
  53525. ;;
  53526. - esac
  53527. - fi
  53528. + esac
  53529. +
  53530. + cat <<"EOF"
  53531. + XFREE (target_name);
  53532. + XFREE (actual_cwrapper_path);
  53533. + XFREE (actual_cwrapper_name);
  53534. +
  53535. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  53536. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  53537. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  53538. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  53539. +
  53540. + newargc=0;
  53541. + for (i = 1; i < argc; i++)
  53542. + {
  53543. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  53544. + {
  53545. + if (argv[i][env_set_opt_len] == '=')
  53546. + {
  53547. + const char *p = argv[i] + env_set_opt_len + 1;
  53548. + lt_opt_process_env_set (p);
  53549. + }
  53550. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  53551. + {
  53552. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  53553. + }
  53554. + else
  53555. + lt_fatal ("%s missing required argument", env_set_opt);
  53556. + continue;
  53557. + }
  53558. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  53559. + {
  53560. + if (argv[i][env_prepend_opt_len] == '=')
  53561. + {
  53562. + const char *p = argv[i] + env_prepend_opt_len + 1;
  53563. + lt_opt_process_env_prepend (p);
  53564. + }
  53565. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  53566. + {
  53567. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  53568. + }
  53569. + else
  53570. + lt_fatal ("%s missing required argument", env_prepend_opt);
  53571. + continue;
  53572. + }
  53573. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  53574. + {
  53575. + if (argv[i][env_append_opt_len] == '=')
  53576. + {
  53577. + const char *p = argv[i] + env_append_opt_len + 1;
  53578. + lt_opt_process_env_append (p);
  53579. + }
  53580. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  53581. + {
  53582. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  53583. + }
  53584. + else
  53585. + lt_fatal ("%s missing required argument", env_append_opt);
  53586. + continue;
  53587. + }
  53588. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  53589. + {
  53590. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  53591. + namespace, but it is not one of the ones we know about and
  53592. + have already dealt with, above (inluding dump-script), then
  53593. + report an error. Otherwise, targets might begin to believe
  53594. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  53595. + namespace. The first time any user complains about this, we'll
  53596. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  53597. + or a configure.ac-settable value.
  53598. + */
  53599. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  53600. + ltwrapper_option_prefix, argv[i]);
  53601. + }
  53602. + /* otherwise ... */
  53603. + newargz[++newargc] = xstrdup (argv[i]);
  53604. + }
  53605. + newargz[++newargc] = NULL;
  53606. +
  53607. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  53608. + for (i = 0; i < newargc; i++)
  53609. + {
  53610. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  53611. + }
  53612. - # Transform deplibs into only deplibs that can be linked in shared.
  53613. - name_save=$name
  53614. - libname_save=$libname
  53615. - release_save=$release
  53616. - versuffix_save=$versuffix
  53617. - major_save=$major
  53618. - # I'm not sure if I'm treating the release correctly. I think
  53619. - # release should show up in the -l (ie -lgmp5) so we don't want to
  53620. - # add it in twice. Is that correct?
  53621. - release=""
  53622. - versuffix=""
  53623. - major=""
  53624. - newdeplibs=
  53625. - droppeddeps=no
  53626. - case $deplibs_check_method in
  53627. - pass_all)
  53628. - # Don't check for shared/static. Everything works.
  53629. - # This might be a little naive. We might want to check
  53630. - # whether the library exists or not. But this is on
  53631. - # osf3 & osf4 and I'm not really sure... Just
  53632. - # implementing what was already the behavior.
  53633. - newdeplibs=$deplibs
  53634. - ;;
  53635. - test_compile)
  53636. - # This code stresses the "libraries are programs" paradigm to its
  53637. - # limits. Maybe even breaks it. We compile a program, linking it
  53638. - # against the deplibs as a proxy for the library. Then we can check
  53639. - # whether they linked in statically or dynamically with ldd.
  53640. - $rm conftest.c
  53641. - cat > conftest.c <<EOF
  53642. - int main() { return 0; }
  53643. EOF
  53644. - $rm conftest
  53645. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  53646. - ldd_output=`ldd conftest`
  53647. - for i in $deplibs; do
  53648. - name=`expr $i : '-l\(.*\)'`
  53649. - # If $name is empty we are operating on a -L argument.
  53650. - if test "$name" != "" && test "$name" != "0"; then
  53651. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53652. - case " $predeps $postdeps " in
  53653. - *" $i "*)
  53654. - newdeplibs="$newdeplibs $i"
  53655. - i=""
  53656. - ;;
  53657. - esac
  53658. - fi
  53659. - if test -n "$i" ; then
  53660. - libname=`eval \\$echo \"$libname_spec\"`
  53661. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  53662. - set dummy $deplib_matches
  53663. - deplib_match=$2
  53664. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  53665. - newdeplibs="$newdeplibs $i"
  53666. - else
  53667. - droppeddeps=yes
  53668. - $echo
  53669. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  53670. - $echo "*** I have the capability to make that library automatically link in when"
  53671. - $echo "*** you link to this library. But I can only do this if you have a"
  53672. - $echo "*** shared version of the library, which I believe you do not have"
  53673. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  53674. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  53675. - fi
  53676. - fi
  53677. - else
  53678. - newdeplibs="$newdeplibs $i"
  53679. - fi
  53680. - done
  53681. - else
  53682. - # Error occurred in the first compile. Let's try to salvage
  53683. - # the situation: Compile a separate program for each library.
  53684. - for i in $deplibs; do
  53685. - name=`expr $i : '-l\(.*\)'`
  53686. - # If $name is empty we are operating on a -L argument.
  53687. - if test "$name" != "" && test "$name" != "0"; then
  53688. - $rm conftest
  53689. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  53690. - ldd_output=`ldd conftest`
  53691. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53692. - case " $predeps $postdeps " in
  53693. - *" $i "*)
  53694. - newdeplibs="$newdeplibs $i"
  53695. - i=""
  53696. - ;;
  53697. - esac
  53698. - fi
  53699. - if test -n "$i" ; then
  53700. - libname=`eval \\$echo \"$libname_spec\"`
  53701. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  53702. - set dummy $deplib_matches
  53703. - deplib_match=$2
  53704. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  53705. - newdeplibs="$newdeplibs $i"
  53706. - else
  53707. - droppeddeps=yes
  53708. - $echo
  53709. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  53710. - $echo "*** I have the capability to make that library automatically link in when"
  53711. - $echo "*** you link to this library. But I can only do this if you have a"
  53712. - $echo "*** shared version of the library, which you do not appear to have"
  53713. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  53714. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  53715. - fi
  53716. - fi
  53717. - else
  53718. - droppeddeps=yes
  53719. - $echo
  53720. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  53721. - $echo "*** make it link in! You will probably need to install it or some"
  53722. - $echo "*** library that it depends on before this library will be fully"
  53723. - $echo "*** functional. Installing it before continuing would be even better."
  53724. - fi
  53725. - else
  53726. - newdeplibs="$newdeplibs $i"
  53727. - fi
  53728. - done
  53729. - fi
  53730. - ;;
  53731. - file_magic*)
  53732. - set dummy $deplibs_check_method
  53733. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  53734. - for a_deplib in $deplibs; do
  53735. - name=`expr $a_deplib : '-l\(.*\)'`
  53736. - # If $name is empty we are operating on a -L argument.
  53737. - if test "$name" != "" && test "$name" != "0"; then
  53738. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53739. - case " $predeps $postdeps " in
  53740. - *" $a_deplib "*)
  53741. - newdeplibs="$newdeplibs $a_deplib"
  53742. - a_deplib=""
  53743. - ;;
  53744. - esac
  53745. - fi
  53746. - if test -n "$a_deplib" ; then
  53747. - libname=`eval \\$echo \"$libname_spec\"`
  53748. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53749. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  53750. - for potent_lib in $potential_libs; do
  53751. - # Follow soft links.
  53752. - if ls -lLd "$potent_lib" 2>/dev/null \
  53753. - | grep " -> " >/dev/null; then
  53754. - continue
  53755. - fi
  53756. - # The statement above tries to avoid entering an
  53757. - # endless loop below, in case of cyclic links.
  53758. - # We might still enter an endless loop, since a link
  53759. - # loop can be closed while we follow links,
  53760. - # but so what?
  53761. - potlib="$potent_lib"
  53762. - while test -h "$potlib" 2>/dev/null; do
  53763. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  53764. - case $potliblink in
  53765. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  53766. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  53767. - esac
  53768. - done
  53769. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  53770. - | ${SED} 10q \
  53771. - | $EGREP "$file_magic_regex" > /dev/null; then
  53772. - newdeplibs="$newdeplibs $a_deplib"
  53773. - a_deplib=""
  53774. - break 2
  53775. - fi
  53776. - done
  53777. - done
  53778. - fi
  53779. - if test -n "$a_deplib" ; then
  53780. - droppeddeps=yes
  53781. - $echo
  53782. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  53783. - $echo "*** I have the capability to make that library automatically link in when"
  53784. - $echo "*** you link to this library. But I can only do this if you have a"
  53785. - $echo "*** shared version of the library, which you do not appear to have"
  53786. - $echo "*** because I did check the linker path looking for a file starting"
  53787. - if test -z "$potlib" ; then
  53788. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  53789. - else
  53790. - $echo "*** with $libname and none of the candidates passed a file format test"
  53791. - $echo "*** using a file magic. Last file checked: $potlib"
  53792. - fi
  53793. - fi
  53794. - else
  53795. - # Add a -L argument.
  53796. - newdeplibs="$newdeplibs $a_deplib"
  53797. - fi
  53798. - done # Gone through all deplibs.
  53799. - ;;
  53800. - match_pattern*)
  53801. - set dummy $deplibs_check_method
  53802. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  53803. - for a_deplib in $deplibs; do
  53804. - name=`expr $a_deplib : '-l\(.*\)'`
  53805. - # If $name is empty we are operating on a -L argument.
  53806. - if test -n "$name" && test "$name" != "0"; then
  53807. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53808. - case " $predeps $postdeps " in
  53809. - *" $a_deplib "*)
  53810. - newdeplibs="$newdeplibs $a_deplib"
  53811. - a_deplib=""
  53812. - ;;
  53813. - esac
  53814. - fi
  53815. - if test -n "$a_deplib" ; then
  53816. - libname=`eval \\$echo \"$libname_spec\"`
  53817. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53818. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  53819. - for potent_lib in $potential_libs; do
  53820. - potlib="$potent_lib" # see symlink-check above in file_magic test
  53821. - if eval $echo \"$potent_lib\" 2>/dev/null \
  53822. - | ${SED} 10q \
  53823. - | $EGREP "$match_pattern_regex" > /dev/null; then
  53824. - newdeplibs="$newdeplibs $a_deplib"
  53825. - a_deplib=""
  53826. - break 2
  53827. - fi
  53828. - done
  53829. - done
  53830. - fi
  53831. - if test -n "$a_deplib" ; then
  53832. - droppeddeps=yes
  53833. - $echo
  53834. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  53835. - $echo "*** I have the capability to make that library automatically link in when"
  53836. - $echo "*** you link to this library. But I can only do this if you have a"
  53837. - $echo "*** shared version of the library, which you do not appear to have"
  53838. - $echo "*** because I did check the linker path looking for a file starting"
  53839. - if test -z "$potlib" ; then
  53840. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  53841. - else
  53842. - $echo "*** with $libname and none of the candidates passed a file format test"
  53843. - $echo "*** using a regex pattern. Last file checked: $potlib"
  53844. - fi
  53845. - fi
  53846. - else
  53847. - # Add a -L argument.
  53848. - newdeplibs="$newdeplibs $a_deplib"
  53849. - fi
  53850. - done # Gone through all deplibs.
  53851. - ;;
  53852. - none | unknown | *)
  53853. - newdeplibs=""
  53854. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  53855. - -e 's/ -[LR][^ ]*//g'`
  53856. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53857. - for i in $predeps $postdeps ; do
  53858. - # can't use Xsed below, because $i might contain '/'
  53859. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  53860. - done
  53861. - fi
  53862. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  53863. - | grep . >/dev/null; then
  53864. - $echo
  53865. - if test "X$deplibs_check_method" = "Xnone"; then
  53866. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  53867. - else
  53868. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  53869. - fi
  53870. - $echo "*** All declared inter-library dependencies are being dropped."
  53871. - droppeddeps=yes
  53872. - fi
  53873. - ;;
  53874. - esac
  53875. - versuffix=$versuffix_save
  53876. - major=$major_save
  53877. - release=$release_save
  53878. - libname=$libname_save
  53879. - name=$name_save
  53880. - case $host in
  53881. - *-*-rhapsody* | *-*-darwin1.[012])
  53882. - # On Rhapsody replace the C library is the System framework
  53883. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53884. - ;;
  53885. - esac
  53886. + case $host_os in
  53887. + mingw*)
  53888. + cat <<"EOF"
  53889. + /* execv doesn't actually work on mingw as expected on unix */
  53890. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  53891. + if (rval == -1)
  53892. + {
  53893. + /* failed to start process */
  53894. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  53895. + return 127;
  53896. + }
  53897. + return rval;
  53898. +EOF
  53899. + ;;
  53900. + *)
  53901. + cat <<"EOF"
  53902. + execv (lt_argv_zero, newargz);
  53903. + return rval; /* =127, but avoids unused variable warning */
  53904. +EOF
  53905. + ;;
  53906. + esac
  53907. - if test "$droppeddeps" = yes; then
  53908. - if test "$module" = yes; then
  53909. - $echo
  53910. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  53911. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  53912. - $echo "*** a static module, that should work as long as the dlopening"
  53913. - $echo "*** application is linked with the -dlopen flag."
  53914. - if test -z "$global_symbol_pipe"; then
  53915. - $echo
  53916. - $echo "*** However, this would only work if libtool was able to extract symbol"
  53917. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  53918. - $echo "*** not find such a program. So, this module is probably useless."
  53919. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  53920. - fi
  53921. - if test "$build_old_libs" = no; then
  53922. - oldlibs="$output_objdir/$libname.$libext"
  53923. - build_libtool_libs=module
  53924. - build_old_libs=yes
  53925. - else
  53926. - build_libtool_libs=no
  53927. - fi
  53928. - else
  53929. - $echo "*** The inter-library dependencies that have been dropped here will be"
  53930. - $echo "*** automatically added whenever a program is linked with this library"
  53931. - $echo "*** or is declared to -dlopen it."
  53932. + cat <<"EOF"
  53933. +}
  53934. - if test "$allow_undefined" = no; then
  53935. - $echo
  53936. - $echo "*** Since this library must not contain undefined symbols,"
  53937. - $echo "*** because either the platform does not support them or"
  53938. - $echo "*** it was explicitly requested with -no-undefined,"
  53939. - $echo "*** libtool will only create a static version of it."
  53940. - if test "$build_old_libs" = no; then
  53941. - oldlibs="$output_objdir/$libname.$libext"
  53942. - build_libtool_libs=module
  53943. - build_old_libs=yes
  53944. - else
  53945. - build_libtool_libs=no
  53946. - fi
  53947. - fi
  53948. - fi
  53949. - fi
  53950. - # Done checking deplibs!
  53951. - deplibs=$newdeplibs
  53952. - fi
  53953. +void *
  53954. +xmalloc (size_t num)
  53955. +{
  53956. + void *p = (void *) malloc (num);
  53957. + if (!p)
  53958. + lt_fatal ("Memory exhausted");
  53959. + return p;
  53960. +}
  53961. - # move library search paths that coincide with paths to not yet
  53962. - # installed libraries to the beginning of the library search list
  53963. - new_libs=
  53964. - for path in $notinst_path; do
  53965. - case " $new_libs " in
  53966. - *" -L$path/$objdir "*) ;;
  53967. - *)
  53968. - case " $deplibs " in
  53969. - *" -L$path/$objdir "*)
  53970. - new_libs="$new_libs -L$path/$objdir" ;;
  53971. - esac
  53972. - ;;
  53973. - esac
  53974. - done
  53975. - for deplib in $deplibs; do
  53976. - case $deplib in
  53977. - -L*)
  53978. - case " $new_libs " in
  53979. - *" $deplib "*) ;;
  53980. - *) new_libs="$new_libs $deplib" ;;
  53981. - esac
  53982. - ;;
  53983. - *) new_libs="$new_libs $deplib" ;;
  53984. - esac
  53985. - done
  53986. - deplibs="$new_libs"
  53987. +char *
  53988. +xstrdup (const char *string)
  53989. +{
  53990. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  53991. + string) : NULL;
  53992. +}
  53993. +const char *
  53994. +base_name (const char *name)
  53995. +{
  53996. + const char *base;
  53997. - # All the library-specific variables (install_libdir is set above).
  53998. - library_names=
  53999. - old_library=
  54000. - dlname=
  54001. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54002. + /* Skip over the disk name in MSDOS pathnames. */
  54003. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  54004. + name += 2;
  54005. +#endif
  54006. - # Test again, we may have decided not to build it any more
  54007. - if test "$build_libtool_libs" = yes; then
  54008. - if test "$hardcode_into_libs" = yes; then
  54009. - # Hardcode the library paths
  54010. - hardcode_libdirs=
  54011. - dep_rpath=
  54012. - rpath="$finalize_rpath"
  54013. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  54014. - for libdir in $rpath; do
  54015. - if test -n "$hardcode_libdir_flag_spec"; then
  54016. - if test -n "$hardcode_libdir_separator"; then
  54017. - if test -z "$hardcode_libdirs"; then
  54018. - hardcode_libdirs="$libdir"
  54019. - else
  54020. - # Just accumulate the unique libdirs.
  54021. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  54022. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  54023. - ;;
  54024. - *)
  54025. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  54026. - ;;
  54027. - esac
  54028. - fi
  54029. - else
  54030. - eval flag=\"$hardcode_libdir_flag_spec\"
  54031. - dep_rpath="$dep_rpath $flag"
  54032. - fi
  54033. - elif test -n "$runpath_var"; then
  54034. - case "$perm_rpath " in
  54035. - *" $libdir "*) ;;
  54036. - *) perm_rpath="$perm_rpath $libdir" ;;
  54037. - esac
  54038. - fi
  54039. - done
  54040. - # Substitute the hardcoded libdirs into the rpath.
  54041. - if test -n "$hardcode_libdir_separator" &&
  54042. - test -n "$hardcode_libdirs"; then
  54043. - libdir="$hardcode_libdirs"
  54044. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  54045. - case $archive_cmds in
  54046. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  54047. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  54048. - esac
  54049. - else
  54050. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  54051. - fi
  54052. - fi
  54053. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  54054. - # We should set the runpath_var.
  54055. - rpath=
  54056. - for dir in $perm_rpath; do
  54057. - rpath="$rpath$dir:"
  54058. - done
  54059. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  54060. - fi
  54061. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  54062. - fi
  54063. + for (base = name; *name; name++)
  54064. + if (IS_DIR_SEPARATOR (*name))
  54065. + base = name + 1;
  54066. + return base;
  54067. +}
  54068. - shlibpath="$finalize_shlibpath"
  54069. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  54070. - if test -n "$shlibpath"; then
  54071. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  54072. - fi
  54073. +int
  54074. +check_executable (const char *path)
  54075. +{
  54076. + struct stat st;
  54077. - # Get the real and link names of the library.
  54078. - eval shared_ext=\"$shrext_cmds\"
  54079. - eval library_names=\"$library_names_spec\"
  54080. - set dummy $library_names
  54081. - realname="$2"
  54082. - shift; shift
  54083. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  54084. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  54085. + if ((!path) || (!*path))
  54086. + return 0;
  54087. - if test -n "$soname_spec"; then
  54088. - eval soname=\"$soname_spec\"
  54089. - else
  54090. - soname="$realname"
  54091. - fi
  54092. - if test -z "$dlname"; then
  54093. - dlname=$soname
  54094. - fi
  54095. + if ((stat (path, &st) >= 0)
  54096. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  54097. + return 1;
  54098. + else
  54099. + return 0;
  54100. +}
  54101. - lib="$output_objdir/$realname"
  54102. - linknames=
  54103. - for link
  54104. - do
  54105. - linknames="$linknames $link"
  54106. - done
  54107. +int
  54108. +make_executable (const char *path)
  54109. +{
  54110. + int rval = 0;
  54111. + struct stat st;
  54112. - # Use standard objects if they are pic
  54113. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54114. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  54115. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  54116. + if ((!path) || (!*path))
  54117. + return 0;
  54118. - # Prepare the list of exported symbols
  54119. - if test -z "$export_symbols"; then
  54120. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  54121. - $show "generating symbol list for \`$libname.la'"
  54122. - export_symbols="$output_objdir/$libname.exp"
  54123. - $run $rm $export_symbols
  54124. - cmds=$export_symbols_cmds
  54125. - save_ifs="$IFS"; IFS='~'
  54126. - for cmd in $cmds; do
  54127. - IFS="$save_ifs"
  54128. - eval cmd=\"$cmd\"
  54129. - if len=`expr "X$cmd" : ".*"` &&
  54130. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  54131. - $show "$cmd"
  54132. - $run eval "$cmd" || exit $?
  54133. - skipped_export=false
  54134. - else
  54135. - # The command line is too long to execute in one step.
  54136. - $show "using reloadable object file for export list..."
  54137. - skipped_export=:
  54138. - # Break out early, otherwise skipped_export may be
  54139. - # set to false by a later but shorter cmd.
  54140. - break
  54141. - fi
  54142. - done
  54143. - IFS="$save_ifs"
  54144. - if test -n "$export_symbols_regex"; then
  54145. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  54146. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  54147. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  54148. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  54149. - fi
  54150. - fi
  54151. - fi
  54152. + if (stat (path, &st) >= 0)
  54153. + {
  54154. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  54155. + }
  54156. + return rval;
  54157. +}
  54158. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  54159. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  54160. - fi
  54161. +/* Searches for the full path of the wrapper. Returns
  54162. + newly allocated full path name if found, NULL otherwise
  54163. + Does not chase symlinks, even on platforms that support them.
  54164. +*/
  54165. +char *
  54166. +find_executable (const char *wrapper)
  54167. +{
  54168. + int has_slash = 0;
  54169. + const char *p;
  54170. + const char *p_next;
  54171. + /* static buffer for getcwd */
  54172. + char tmp[LT_PATHMAX + 1];
  54173. + int tmp_len;
  54174. + char *concat_name;
  54175. - tmp_deplibs=
  54176. - for test_deplib in $deplibs; do
  54177. - case " $convenience " in
  54178. - *" $test_deplib "*) ;;
  54179. - *)
  54180. - tmp_deplibs="$tmp_deplibs $test_deplib"
  54181. - ;;
  54182. - esac
  54183. - done
  54184. - deplibs="$tmp_deplibs"
  54185. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  54186. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  54187. - if test -n "$convenience"; then
  54188. - if test -n "$whole_archive_flag_spec"; then
  54189. - save_libobjs=$libobjs
  54190. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  54191. - else
  54192. - gentop="$output_objdir/${outputname}x"
  54193. - generated="$generated $gentop"
  54194. + if ((wrapper == NULL) || (*wrapper == '\0'))
  54195. + return NULL;
  54196. - func_extract_archives $gentop $convenience
  54197. - libobjs="$libobjs $func_extract_archives_result"
  54198. - fi
  54199. - fi
  54200. -
  54201. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  54202. - eval flag=\"$thread_safe_flag_spec\"
  54203. - linker_flags="$linker_flags $flag"
  54204. - fi
  54205. + /* Absolute path? */
  54206. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54207. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  54208. + {
  54209. + concat_name = xstrdup (wrapper);
  54210. + if (check_executable (concat_name))
  54211. + return concat_name;
  54212. + XFREE (concat_name);
  54213. + }
  54214. + else
  54215. + {
  54216. +#endif
  54217. + if (IS_DIR_SEPARATOR (wrapper[0]))
  54218. + {
  54219. + concat_name = xstrdup (wrapper);
  54220. + if (check_executable (concat_name))
  54221. + return concat_name;
  54222. + XFREE (concat_name);
  54223. + }
  54224. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54225. + }
  54226. +#endif
  54227. - # Make a backup of the uninstalled library when relinking
  54228. - if test "$mode" = relink; then
  54229. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  54230. - fi
  54231. + for (p = wrapper; *p; p++)
  54232. + if (*p == '/')
  54233. + {
  54234. + has_slash = 1;
  54235. + break;
  54236. + }
  54237. + if (!has_slash)
  54238. + {
  54239. + /* no slashes; search PATH */
  54240. + const char *path = getenv ("PATH");
  54241. + if (path != NULL)
  54242. + {
  54243. + for (p = path; *p; p = p_next)
  54244. + {
  54245. + const char *q;
  54246. + size_t p_len;
  54247. + for (q = p; *q; q++)
  54248. + if (IS_PATH_SEPARATOR (*q))
  54249. + break;
  54250. + p_len = q - p;
  54251. + p_next = (*q == '\0' ? q : q + 1);
  54252. + if (p_len == 0)
  54253. + {
  54254. + /* empty path: current directory */
  54255. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  54256. + lt_fatal ("getcwd failed");
  54257. + tmp_len = strlen (tmp);
  54258. + concat_name =
  54259. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  54260. + memcpy (concat_name, tmp, tmp_len);
  54261. + concat_name[tmp_len] = '/';
  54262. + strcpy (concat_name + tmp_len + 1, wrapper);
  54263. + }
  54264. + else
  54265. + {
  54266. + concat_name =
  54267. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  54268. + memcpy (concat_name, p, p_len);
  54269. + concat_name[p_len] = '/';
  54270. + strcpy (concat_name + p_len + 1, wrapper);
  54271. + }
  54272. + if (check_executable (concat_name))
  54273. + return concat_name;
  54274. + XFREE (concat_name);
  54275. + }
  54276. + }
  54277. + /* not found in PATH; assume curdir */
  54278. + }
  54279. + /* Relative path | not found in path: prepend cwd */
  54280. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  54281. + lt_fatal ("getcwd failed");
  54282. + tmp_len = strlen (tmp);
  54283. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  54284. + memcpy (concat_name, tmp, tmp_len);
  54285. + concat_name[tmp_len] = '/';
  54286. + strcpy (concat_name + tmp_len + 1, wrapper);
  54287. - # Do each of the archive commands.
  54288. - if test "$module" = yes && test -n "$module_cmds" ; then
  54289. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  54290. - eval test_cmds=\"$module_expsym_cmds\"
  54291. - cmds=$module_expsym_cmds
  54292. - else
  54293. - eval test_cmds=\"$module_cmds\"
  54294. - cmds=$module_cmds
  54295. - fi
  54296. - else
  54297. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  54298. - eval test_cmds=\"$archive_expsym_cmds\"
  54299. - cmds=$archive_expsym_cmds
  54300. - else
  54301. - eval test_cmds=\"$archive_cmds\"
  54302. - cmds=$archive_cmds
  54303. - fi
  54304. - fi
  54305. + if (check_executable (concat_name))
  54306. + return concat_name;
  54307. + XFREE (concat_name);
  54308. + return NULL;
  54309. +}
  54310. - if test "X$skipped_export" != "X:" &&
  54311. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  54312. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  54313. - :
  54314. - else
  54315. - # The command line is too long to link in one step, link piecewise.
  54316. - $echo "creating reloadable object files..."
  54317. +char *
  54318. +chase_symlinks (const char *pathspec)
  54319. +{
  54320. +#ifndef S_ISLNK
  54321. + return xstrdup (pathspec);
  54322. +#else
  54323. + char buf[LT_PATHMAX];
  54324. + struct stat s;
  54325. + char *tmp_pathspec = xstrdup (pathspec);
  54326. + char *p;
  54327. + int has_symlinks = 0;
  54328. + while (strlen (tmp_pathspec) && !has_symlinks)
  54329. + {
  54330. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  54331. + tmp_pathspec));
  54332. + if (lstat (tmp_pathspec, &s) == 0)
  54333. + {
  54334. + if (S_ISLNK (s.st_mode) != 0)
  54335. + {
  54336. + has_symlinks = 1;
  54337. + break;
  54338. + }
  54339. - # Save the value of $output and $libobjs because we want to
  54340. - # use them later. If we have whole_archive_flag_spec, we
  54341. - # want to use save_libobjs as it was before
  54342. - # whole_archive_flag_spec was expanded, because we can't
  54343. - # assume the linker understands whole_archive_flag_spec.
  54344. - # This may have to be revisited, in case too many
  54345. - # convenience libraries get linked in and end up exceeding
  54346. - # the spec.
  54347. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  54348. - save_libobjs=$libobjs
  54349. - fi
  54350. - save_output=$output
  54351. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  54352. + /* search backwards for last DIR_SEPARATOR */
  54353. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  54354. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  54355. + p--;
  54356. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  54357. + {
  54358. + /* no more DIR_SEPARATORS left */
  54359. + break;
  54360. + }
  54361. + *p = '\0';
  54362. + }
  54363. + else
  54364. + {
  54365. + char *errstr = strerror (errno);
  54366. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  54367. + }
  54368. + }
  54369. + XFREE (tmp_pathspec);
  54370. - # Clear the reloadable object creation command queue and
  54371. - # initialize k to one.
  54372. - test_cmds=
  54373. - concat_cmds=
  54374. - objlist=
  54375. - delfiles=
  54376. - last_robj=
  54377. - k=1
  54378. - output=$output_objdir/$output_la-${k}.$objext
  54379. - # Loop over the list of objects to be linked.
  54380. - for obj in $save_libobjs
  54381. - do
  54382. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  54383. - if test "X$objlist" = X ||
  54384. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  54385. - test "$len" -le "$max_cmd_len"; }; then
  54386. - objlist="$objlist $obj"
  54387. - else
  54388. - # The command $test_cmds is almost too long, add a
  54389. - # command to the queue.
  54390. - if test "$k" -eq 1 ; then
  54391. - # The first file doesn't have a previous command to add.
  54392. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  54393. - else
  54394. - # All subsequent reloadable object files will link in
  54395. - # the last one created.
  54396. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  54397. - fi
  54398. - last_robj=$output_objdir/$output_la-${k}.$objext
  54399. - k=`expr $k + 1`
  54400. - output=$output_objdir/$output_la-${k}.$objext
  54401. - objlist=$obj
  54402. - len=1
  54403. - fi
  54404. - done
  54405. - # Handle the remaining objects by creating one last
  54406. - # reloadable object file. All subsequent reloadable object
  54407. - # files will link in the last one created.
  54408. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  54409. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  54410. + if (!has_symlinks)
  54411. + {
  54412. + return xstrdup (pathspec);
  54413. + }
  54414. - if ${skipped_export-false}; then
  54415. - $show "generating symbol list for \`$libname.la'"
  54416. - export_symbols="$output_objdir/$libname.exp"
  54417. - $run $rm $export_symbols
  54418. - libobjs=$output
  54419. - # Append the command to create the export file.
  54420. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  54421. - fi
  54422. -
  54423. - # Set up a command to remove the reloadable object files
  54424. - # after they are used.
  54425. - i=0
  54426. - while test "$i" -lt "$k"
  54427. - do
  54428. - i=`expr $i + 1`
  54429. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  54430. - done
  54431. + tmp_pathspec = realpath (pathspec, buf);
  54432. + if (tmp_pathspec == 0)
  54433. + {
  54434. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  54435. + }
  54436. + return xstrdup (tmp_pathspec);
  54437. +#endif
  54438. +}
  54439. - $echo "creating a temporary reloadable object file: $output"
  54440. +char *
  54441. +strendzap (char *str, const char *pat)
  54442. +{
  54443. + size_t len, patlen;
  54444. - # Loop through the commands generated above and execute them.
  54445. - save_ifs="$IFS"; IFS='~'
  54446. - for cmd in $concat_cmds; do
  54447. - IFS="$save_ifs"
  54448. - $show "$cmd"
  54449. - $run eval "$cmd" || exit $?
  54450. - done
  54451. - IFS="$save_ifs"
  54452. + assert (str != NULL);
  54453. + assert (pat != NULL);
  54454. - libobjs=$output
  54455. - # Restore the value of output.
  54456. - output=$save_output
  54457. + len = strlen (str);
  54458. + patlen = strlen (pat);
  54459. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  54460. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  54461. - fi
  54462. - # Expand the library linking commands again to reset the
  54463. - # value of $libobjs for piecewise linking.
  54464. + if (patlen <= len)
  54465. + {
  54466. + str += len - patlen;
  54467. + if (strcmp (str, pat) == 0)
  54468. + *str = '\0';
  54469. + }
  54470. + return str;
  54471. +}
  54472. - # Do each of the archive commands.
  54473. - if test "$module" = yes && test -n "$module_cmds" ; then
  54474. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  54475. - cmds=$module_expsym_cmds
  54476. - else
  54477. - cmds=$module_cmds
  54478. - fi
  54479. - else
  54480. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  54481. - cmds=$archive_expsym_cmds
  54482. - else
  54483. - cmds=$archive_cmds
  54484. - fi
  54485. - fi
  54486. +static void
  54487. +lt_error_core (int exit_status, const char *mode,
  54488. + const char *message, va_list ap)
  54489. +{
  54490. + fprintf (stderr, "%s: %s: ", program_name, mode);
  54491. + vfprintf (stderr, message, ap);
  54492. + fprintf (stderr, ".\n");
  54493. - # Append the command to remove the reloadable object files
  54494. - # to the just-reset $cmds.
  54495. - eval cmds=\"\$cmds~\$rm $delfiles\"
  54496. - fi
  54497. - save_ifs="$IFS"; IFS='~'
  54498. - for cmd in $cmds; do
  54499. - IFS="$save_ifs"
  54500. - eval cmd=\"$cmd\"
  54501. - $show "$cmd"
  54502. - $run eval "$cmd" || {
  54503. - lt_exit=$?
  54504. + if (exit_status >= 0)
  54505. + exit (exit_status);
  54506. +}
  54507. - # Restore the uninstalled library and exit
  54508. - if test "$mode" = relink; then
  54509. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  54510. - fi
  54511. +void
  54512. +lt_fatal (const char *message, ...)
  54513. +{
  54514. + va_list ap;
  54515. + va_start (ap, message);
  54516. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  54517. + va_end (ap);
  54518. +}
  54519. - exit $lt_exit
  54520. - }
  54521. - done
  54522. - IFS="$save_ifs"
  54523. +void
  54524. +lt_setenv (const char *name, const char *value)
  54525. +{
  54526. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  54527. + (name ? name : "<NULL>"),
  54528. + (value ? value : "<NULL>")));
  54529. + {
  54530. +#ifdef HAVE_SETENV
  54531. + /* always make a copy, for consistency with !HAVE_SETENV */
  54532. + char *str = xstrdup (value);
  54533. + setenv (name, str, 1);
  54534. +#else
  54535. + int len = strlen (name) + 1 + strlen (value) + 1;
  54536. + char *str = XMALLOC (char, len);
  54537. + sprintf (str, "%s=%s", name, value);
  54538. + if (putenv (str) != EXIT_SUCCESS)
  54539. + {
  54540. + XFREE (str);
  54541. + }
  54542. +#endif
  54543. + }
  54544. +}
  54545. - # Restore the uninstalled library and exit
  54546. - if test "$mode" = relink; then
  54547. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  54548. +char *
  54549. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  54550. +{
  54551. + char *new_value;
  54552. + if (orig_value && *orig_value)
  54553. + {
  54554. + int orig_value_len = strlen (orig_value);
  54555. + int add_len = strlen (add);
  54556. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  54557. + if (to_end)
  54558. + {
  54559. + strcpy (new_value, orig_value);
  54560. + strcpy (new_value + orig_value_len, add);
  54561. + }
  54562. + else
  54563. + {
  54564. + strcpy (new_value, add);
  54565. + strcpy (new_value + add_len, orig_value);
  54566. + }
  54567. + }
  54568. + else
  54569. + {
  54570. + new_value = xstrdup (add);
  54571. + }
  54572. + return new_value;
  54573. +}
  54574. - if test -n "$convenience"; then
  54575. - if test -z "$whole_archive_flag_spec"; then
  54576. - $show "${rm}r $gentop"
  54577. - $run ${rm}r "$gentop"
  54578. - fi
  54579. - fi
  54580. +int
  54581. +lt_split_name_value (const char *arg, char** name, char** value)
  54582. +{
  54583. + const char *p;
  54584. + int len;
  54585. + if (!arg || !*arg)
  54586. + return 1;
  54587. - exit $EXIT_SUCCESS
  54588. - fi
  54589. + p = strchr (arg, (int)'=');
  54590. - # Create links to the real library.
  54591. - for linkname in $linknames; do
  54592. - if test "$realname" != "$linkname"; then
  54593. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  54594. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  54595. - fi
  54596. - done
  54597. -
  54598. - # If -module or -export-dynamic was specified, set the dlname.
  54599. - if test "$module" = yes || test "$export_dynamic" = yes; then
  54600. - # On all known operating systems, these are identical.
  54601. - dlname="$soname"
  54602. - fi
  54603. - fi
  54604. - ;;
  54605. + if (!p)
  54606. + return 1;
  54607. - obj)
  54608. - if test -n "$deplibs"; then
  54609. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  54610. - fi
  54611. + *value = xstrdup (++p);
  54612. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  54613. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  54614. - fi
  54615. + len = strlen (arg) - strlen (*value);
  54616. + *name = XMALLOC (char, len);
  54617. + strncpy (*name, arg, len-1);
  54618. + (*name)[len - 1] = '\0';
  54619. - if test -n "$rpath"; then
  54620. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  54621. - fi
  54622. + return 0;
  54623. +}
  54624. - if test -n "$xrpath"; then
  54625. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  54626. - fi
  54627. +void
  54628. +lt_opt_process_env_set (const char *arg)
  54629. +{
  54630. + char *name = NULL;
  54631. + char *value = NULL;
  54632. - if test -n "$vinfo"; then
  54633. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  54634. - fi
  54635. + if (lt_split_name_value (arg, &name, &value) != 0)
  54636. + {
  54637. + XFREE (name);
  54638. + XFREE (value);
  54639. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  54640. + }
  54641. - if test -n "$release"; then
  54642. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  54643. - fi
  54644. + lt_setenv (name, value);
  54645. + XFREE (name);
  54646. + XFREE (value);
  54647. +}
  54648. - case $output in
  54649. - *.lo)
  54650. - if test -n "$objs$old_deplibs"; then
  54651. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  54652. - exit $EXIT_FAILURE
  54653. - fi
  54654. - libobj="$output"
  54655. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  54656. - ;;
  54657. - *)
  54658. - libobj=
  54659. - obj="$output"
  54660. - ;;
  54661. - esac
  54662. +void
  54663. +lt_opt_process_env_prepend (const char *arg)
  54664. +{
  54665. + char *name = NULL;
  54666. + char *value = NULL;
  54667. + char *new_value = NULL;
  54668. - # Delete the old objects.
  54669. - $run $rm $obj $libobj
  54670. + if (lt_split_name_value (arg, &name, &value) != 0)
  54671. + {
  54672. + XFREE (name);
  54673. + XFREE (value);
  54674. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  54675. + }
  54676. - # Objects from convenience libraries. This assumes
  54677. - # single-version convenience libraries. Whenever we create
  54678. - # different ones for PIC/non-PIC, this we'll have to duplicate
  54679. - # the extraction.
  54680. - reload_conv_objs=
  54681. - gentop=
  54682. - # reload_cmds runs $LD directly, so let us get rid of
  54683. - # -Wl from whole_archive_flag_spec and hope we can get by with
  54684. - # turning comma into space..
  54685. - wl=
  54686. + new_value = lt_extend_str (getenv (name), value, 0);
  54687. + lt_setenv (name, new_value);
  54688. + XFREE (new_value);
  54689. + XFREE (name);
  54690. + XFREE (value);
  54691. +}
  54692. - if test -n "$convenience"; then
  54693. - if test -n "$whole_archive_flag_spec"; then
  54694. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  54695. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  54696. - else
  54697. - gentop="$output_objdir/${obj}x"
  54698. - generated="$generated $gentop"
  54699. +void
  54700. +lt_opt_process_env_append (const char *arg)
  54701. +{
  54702. + char *name = NULL;
  54703. + char *value = NULL;
  54704. + char *new_value = NULL;
  54705. - func_extract_archives $gentop $convenience
  54706. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  54707. - fi
  54708. - fi
  54709. + if (lt_split_name_value (arg, &name, &value) != 0)
  54710. + {
  54711. + XFREE (name);
  54712. + XFREE (value);
  54713. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  54714. + }
  54715. - # Create the old-style object.
  54716. - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  54717. + new_value = lt_extend_str (getenv (name), value, 1);
  54718. + lt_setenv (name, new_value);
  54719. + XFREE (new_value);
  54720. + XFREE (name);
  54721. + XFREE (value);
  54722. +}
  54723. - output="$obj"
  54724. - cmds=$reload_cmds
  54725. - save_ifs="$IFS"; IFS='~'
  54726. - for cmd in $cmds; do
  54727. - IFS="$save_ifs"
  54728. - eval cmd=\"$cmd\"
  54729. - $show "$cmd"
  54730. - $run eval "$cmd" || exit $?
  54731. - done
  54732. - IFS="$save_ifs"
  54733. +void
  54734. +lt_update_exe_path (const char *name, const char *value)
  54735. +{
  54736. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  54737. + (name ? name : "<NULL>"),
  54738. + (value ? value : "<NULL>")));
  54739. - # Exit if we aren't doing a library object file.
  54740. - if test -z "$libobj"; then
  54741. - if test -n "$gentop"; then
  54742. - $show "${rm}r $gentop"
  54743. - $run ${rm}r $gentop
  54744. - fi
  54745. + if (name && *name && value && *value)
  54746. + {
  54747. + char *new_value = lt_extend_str (getenv (name), value, 0);
  54748. + /* some systems can't cope with a ':'-terminated path #' */
  54749. + int len = strlen (new_value);
  54750. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  54751. + {
  54752. + new_value[len-1] = '\0';
  54753. + }
  54754. + lt_setenv (name, new_value);
  54755. + XFREE (new_value);
  54756. + }
  54757. +}
  54758. - exit $EXIT_SUCCESS
  54759. - fi
  54760. +void
  54761. +lt_update_lib_path (const char *name, const char *value)
  54762. +{
  54763. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  54764. + (name ? name : "<NULL>"),
  54765. + (value ? value : "<NULL>")));
  54766. - if test "$build_libtool_libs" != yes; then
  54767. - if test -n "$gentop"; then
  54768. - $show "${rm}r $gentop"
  54769. - $run ${rm}r $gentop
  54770. - fi
  54771. + if (name && *name && value && *value)
  54772. + {
  54773. + char *new_value = lt_extend_str (getenv (name), value, 0);
  54774. + lt_setenv (name, new_value);
  54775. + XFREE (new_value);
  54776. + }
  54777. +}
  54778. - # Create an invalid libtool object if no PIC, so that we don't
  54779. - # accidentally link it into a program.
  54780. - # $show "echo timestamp > $libobj"
  54781. - # $run eval "echo timestamp > $libobj" || exit $?
  54782. - exit $EXIT_SUCCESS
  54783. - fi
  54784. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  54785. - # Only do commands if we really have different PIC objects.
  54786. - reload_objs="$libobjs $reload_conv_objs"
  54787. - output="$libobj"
  54788. - cmds=$reload_cmds
  54789. - save_ifs="$IFS"; IFS='~'
  54790. - for cmd in $cmds; do
  54791. - IFS="$save_ifs"
  54792. - eval cmd=\"$cmd\"
  54793. - $show "$cmd"
  54794. - $run eval "$cmd" || exit $?
  54795. - done
  54796. - IFS="$save_ifs"
  54797. - fi
  54798. +EOF
  54799. +}
  54800. +# end: func_emit_cwrapperexe_src
  54801. - if test -n "$gentop"; then
  54802. - $show "${rm}r $gentop"
  54803. - $run ${rm}r $gentop
  54804. - fi
  54805. +# func_mode_link arg...
  54806. +func_mode_link ()
  54807. +{
  54808. + $opt_debug
  54809. + case $host in
  54810. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  54811. + # It is impossible to link a dll without this setting, and
  54812. + # we shouldn't force the makefile maintainer to figure out
  54813. + # which system we are compiling for in order to pass an extra
  54814. + # flag for every libtool invocation.
  54815. + # allow_undefined=no
  54816. - exit $EXIT_SUCCESS
  54817. + # FIXME: Unfortunately, there are problems with the above when trying
  54818. + # to make a dll which has undefined symbols, in which case not
  54819. + # even a static library is built. For now, we need to specify
  54820. + # -no-undefined on the libtool link line when we can be certain
  54821. + # that all symbols are satisfied, otherwise we get a static library.
  54822. + allow_undefined=yes
  54823. ;;
  54824. + *)
  54825. + allow_undefined=yes
  54826. + ;;
  54827. + esac
  54828. + libtool_args=$nonopt
  54829. + base_compile="$nonopt $@"
  54830. + compile_command=$nonopt
  54831. + finalize_command=$nonopt
  54832. - prog)
  54833. - case $host in
  54834. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  54835. - esac
  54836. - if test -n "$vinfo"; then
  54837. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  54838. - fi
  54839. -
  54840. - if test -n "$release"; then
  54841. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  54842. - fi
  54843. + compile_rpath=
  54844. + finalize_rpath=
  54845. + compile_shlibpath=
  54846. + finalize_shlibpath=
  54847. + convenience=
  54848. + old_convenience=
  54849. + deplibs=
  54850. + old_deplibs=
  54851. + compiler_flags=
  54852. + linker_flags=
  54853. + dllsearchpath=
  54854. + lib_search_path=`pwd`
  54855. + inst_prefix_dir=
  54856. + new_inherited_linker_flags=
  54857. - if test "$preload" = yes; then
  54858. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  54859. - test "$dlopen_self_static" = unknown; then
  54860. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  54861. - fi
  54862. - fi
  54863. + avoid_version=no
  54864. + dlfiles=
  54865. + dlprefiles=
  54866. + dlself=no
  54867. + export_dynamic=no
  54868. + export_symbols=
  54869. + export_symbols_regex=
  54870. + generated=
  54871. + libobjs=
  54872. + ltlibs=
  54873. + module=no
  54874. + no_install=no
  54875. + objs=
  54876. + non_pic_objects=
  54877. + precious_files_regex=
  54878. + prefer_static_libs=no
  54879. + preload=no
  54880. + prev=
  54881. + prevarg=
  54882. + release=
  54883. + rpath=
  54884. + xrpath=
  54885. + perm_rpath=
  54886. + temp_rpath=
  54887. + thread_safe=no
  54888. + vinfo=
  54889. + vinfo_number=no
  54890. + weak_libs=
  54891. + single_module="${wl}-single_module"
  54892. + func_infer_tag $base_compile
  54893. - case $host in
  54894. - *-*-rhapsody* | *-*-darwin1.[012])
  54895. - # On Rhapsody replace the C library is the System framework
  54896. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  54897. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  54898. + # We need to know -static, to get the right output filenames.
  54899. + for arg
  54900. + do
  54901. + case $arg in
  54902. + -shared)
  54903. + test "$build_libtool_libs" != yes && \
  54904. + func_fatal_configuration "can not build a shared library"
  54905. + build_old_libs=no
  54906. + break
  54907. + ;;
  54908. + -all-static | -static | -static-libtool-libs)
  54909. + case $arg in
  54910. + -all-static)
  54911. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  54912. + func_warning "complete static linking is impossible in this configuration"
  54913. + fi
  54914. + if test -n "$link_static_flag"; then
  54915. + dlopen_self=$dlopen_self_static
  54916. + fi
  54917. + prefer_static_libs=yes
  54918. + ;;
  54919. + -static)
  54920. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  54921. + dlopen_self=$dlopen_self_static
  54922. + fi
  54923. + prefer_static_libs=built
  54924. + ;;
  54925. + -static-libtool-libs)
  54926. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  54927. + dlopen_self=$dlopen_self_static
  54928. + fi
  54929. + prefer_static_libs=yes
  54930. + ;;
  54931. + esac
  54932. + build_libtool_libs=no
  54933. + build_old_libs=yes
  54934. + break
  54935. ;;
  54936. esac
  54937. + done
  54938. - case $host in
  54939. - *darwin*)
  54940. - # Don't allow lazy linking, it breaks C++ global constructors
  54941. - if test "$tagname" = CXX ; then
  54942. - compile_command="$compile_command ${wl}-bind_at_load"
  54943. - finalize_command="$finalize_command ${wl}-bind_at_load"
  54944. - fi
  54945. - ;;
  54946. - esac
  54947. + # See if our shared archives depend on static archives.
  54948. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  54949. + # Go through the arguments, transforming them on the way.
  54950. + while test "$#" -gt 0; do
  54951. + arg="$1"
  54952. + shift
  54953. + func_quote_for_eval "$arg"
  54954. + qarg=$func_quote_for_eval_unquoted_result
  54955. + func_append libtool_args " $func_quote_for_eval_result"
  54956. - # move library search paths that coincide with paths to not yet
  54957. - # installed libraries to the beginning of the library search list
  54958. - new_libs=
  54959. - for path in $notinst_path; do
  54960. - case " $new_libs " in
  54961. - *" -L$path/$objdir "*) ;;
  54962. - *)
  54963. - case " $compile_deplibs " in
  54964. - *" -L$path/$objdir "*)
  54965. - new_libs="$new_libs -L$path/$objdir" ;;
  54966. - esac
  54967. - ;;
  54968. - esac
  54969. - done
  54970. - for deplib in $compile_deplibs; do
  54971. - case $deplib in
  54972. - -L*)
  54973. - case " $new_libs " in
  54974. - *" $deplib "*) ;;
  54975. - *) new_libs="$new_libs $deplib" ;;
  54976. - esac
  54977. + # If the previous option needs an argument, assign it.
  54978. + if test -n "$prev"; then
  54979. + case $prev in
  54980. + output)
  54981. + func_append compile_command " @OUTPUT@"
  54982. + func_append finalize_command " @OUTPUT@"
  54983. ;;
  54984. - *) new_libs="$new_libs $deplib" ;;
  54985. esac
  54986. - done
  54987. - compile_deplibs="$new_libs"
  54988. -
  54989. - compile_command="$compile_command $compile_deplibs"
  54990. - finalize_command="$finalize_command $finalize_deplibs"
  54991. -
  54992. - if test -n "$rpath$xrpath"; then
  54993. - # If the user specified any rpath flags, then add them.
  54994. - for libdir in $rpath $xrpath; do
  54995. - # This is the magic to use -rpath.
  54996. - case "$finalize_rpath " in
  54997. - *" $libdir "*) ;;
  54998. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  54999. - esac
  55000. - done
  55001. - fi
  55002. -
  55003. - # Now hardcode the library paths
  55004. - rpath=
  55005. - hardcode_libdirs=
  55006. - for libdir in $compile_rpath $finalize_rpath; do
  55007. - if test -n "$hardcode_libdir_flag_spec"; then
  55008. - if test -n "$hardcode_libdir_separator"; then
  55009. - if test -z "$hardcode_libdirs"; then
  55010. - hardcode_libdirs="$libdir"
  55011. + case $prev in
  55012. + dlfiles|dlprefiles)
  55013. + if test "$preload" = no; then
  55014. + # Add the symbol object into the linking commands.
  55015. + func_append compile_command " @SYMFILE@"
  55016. + func_append finalize_command " @SYMFILE@"
  55017. + preload=yes
  55018. + fi
  55019. + case $arg in
  55020. + *.la | *.lo) ;; # We handle these cases below.
  55021. + force)
  55022. + if test "$dlself" = no; then
  55023. + dlself=needless
  55024. + export_dynamic=yes
  55025. + fi
  55026. + prev=
  55027. + continue
  55028. + ;;
  55029. + self)
  55030. + if test "$prev" = dlprefiles; then
  55031. + dlself=yes
  55032. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  55033. + dlself=yes
  55034. else
  55035. - # Just accumulate the unique libdirs.
  55036. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  55037. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  55038. - ;;
  55039. - *)
  55040. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  55041. - ;;
  55042. - esac
  55043. + dlself=needless
  55044. + export_dynamic=yes
  55045. fi
  55046. - else
  55047. - eval flag=\"$hardcode_libdir_flag_spec\"
  55048. - rpath="$rpath $flag"
  55049. - fi
  55050. - elif test -n "$runpath_var"; then
  55051. - case "$perm_rpath " in
  55052. - *" $libdir "*) ;;
  55053. - *) perm_rpath="$perm_rpath $libdir" ;;
  55054. - esac
  55055. - fi
  55056. - case $host in
  55057. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  55058. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  55059. - case :$dllsearchpath: in
  55060. - *":$libdir:"*) ;;
  55061. - *) dllsearchpath="$dllsearchpath:$libdir";;
  55062. - esac
  55063. - case :$dllsearchpath: in
  55064. - *":$testbindir:"*) ;;
  55065. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  55066. + prev=
  55067. + continue
  55068. + ;;
  55069. + *)
  55070. + if test "$prev" = dlfiles; then
  55071. + dlfiles="$dlfiles $arg"
  55072. + else
  55073. + dlprefiles="$dlprefiles $arg"
  55074. + fi
  55075. + prev=
  55076. + continue
  55077. + ;;
  55078. esac
  55079. ;;
  55080. - esac
  55081. - done
  55082. - # Substitute the hardcoded libdirs into the rpath.
  55083. - if test -n "$hardcode_libdir_separator" &&
  55084. - test -n "$hardcode_libdirs"; then
  55085. - libdir="$hardcode_libdirs"
  55086. - eval rpath=\" $hardcode_libdir_flag_spec\"
  55087. - fi
  55088. - compile_rpath="$rpath"
  55089. -
  55090. - rpath=
  55091. - hardcode_libdirs=
  55092. - for libdir in $finalize_rpath; do
  55093. - if test -n "$hardcode_libdir_flag_spec"; then
  55094. - if test -n "$hardcode_libdir_separator"; then
  55095. - if test -z "$hardcode_libdirs"; then
  55096. - hardcode_libdirs="$libdir"
  55097. - else
  55098. - # Just accumulate the unique libdirs.
  55099. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  55100. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  55101. - ;;
  55102. - *)
  55103. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  55104. - ;;
  55105. + expsyms)
  55106. + export_symbols="$arg"
  55107. + test -f "$arg" \
  55108. + || func_fatal_error "symbol file \`$arg' does not exist"
  55109. + prev=
  55110. + continue
  55111. + ;;
  55112. + expsyms_regex)
  55113. + export_symbols_regex="$arg"
  55114. + prev=
  55115. + continue
  55116. + ;;
  55117. + framework)
  55118. + case $host in
  55119. + *-*-darwin*)
  55120. + case "$deplibs " in
  55121. + *" $qarg.ltframework "*) ;;
  55122. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  55123. + ;;
  55124. esac
  55125. - fi
  55126. - else
  55127. - eval flag=\"$hardcode_libdir_flag_spec\"
  55128. - rpath="$rpath $flag"
  55129. - fi
  55130. - elif test -n "$runpath_var"; then
  55131. - case "$finalize_perm_rpath " in
  55132. - *" $libdir "*) ;;
  55133. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  55134. + ;;
  55135. esac
  55136. - fi
  55137. - done
  55138. - # Substitute the hardcoded libdirs into the rpath.
  55139. - if test -n "$hardcode_libdir_separator" &&
  55140. - test -n "$hardcode_libdirs"; then
  55141. - libdir="$hardcode_libdirs"
  55142. - eval rpath=\" $hardcode_libdir_flag_spec\"
  55143. - fi
  55144. - finalize_rpath="$rpath"
  55145. -
  55146. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  55147. - # Transform all the library objects into standard objects.
  55148. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  55149. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  55150. - fi
  55151. + prev=
  55152. + continue
  55153. + ;;
  55154. + inst_prefix)
  55155. + inst_prefix_dir="$arg"
  55156. + prev=
  55157. + continue
  55158. + ;;
  55159. + objectlist)
  55160. + if test -f "$arg"; then
  55161. + save_arg=$arg
  55162. + moreargs=
  55163. + for fil in `cat "$save_arg"`
  55164. + do
  55165. +# moreargs="$moreargs $fil"
  55166. + arg=$fil
  55167. + # A libtool-controlled object.
  55168. - dlsyms=
  55169. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  55170. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  55171. - dlsyms="${outputname}S.c"
  55172. - else
  55173. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  55174. - fi
  55175. - fi
  55176. + # Check to see that this really is a libtool object.
  55177. + if func_lalib_unsafe_p "$arg"; then
  55178. + pic_object=
  55179. + non_pic_object=
  55180. - if test -n "$dlsyms"; then
  55181. - case $dlsyms in
  55182. - "") ;;
  55183. - *.c)
  55184. - # Discover the nlist of each of the dlfiles.
  55185. - nlist="$output_objdir/${outputname}.nm"
  55186. + # Read the .lo file
  55187. + func_source "$arg"
  55188. - $show "$rm $nlist ${nlist}S ${nlist}T"
  55189. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  55190. + if test -z "$pic_object" ||
  55191. + test -z "$non_pic_object" ||
  55192. + test "$pic_object" = none &&
  55193. + test "$non_pic_object" = none; then
  55194. + func_fatal_error "cannot find name of object for \`$arg'"
  55195. + fi
  55196. - # Parse the name list into a source file.
  55197. - $show "creating $output_objdir/$dlsyms"
  55198. + # Extract subdirectory from the argument.
  55199. + func_dirname "$arg" "/" ""
  55200. + xdir="$func_dirname_result"
  55201. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  55202. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  55203. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  55204. + if test "$pic_object" != none; then
  55205. + # Prepend the subdirectory the object is found in.
  55206. + pic_object="$xdir$pic_object"
  55207. -#ifdef __cplusplus
  55208. -extern \"C\" {
  55209. -#endif
  55210. + if test "$prev" = dlfiles; then
  55211. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  55212. + dlfiles="$dlfiles $pic_object"
  55213. + prev=
  55214. + continue
  55215. + else
  55216. + # If libtool objects are unsupported, then we need to preload.
  55217. + prev=dlprefiles
  55218. + fi
  55219. + fi
  55220. -/* Prevent the only kind of declaration conflicts we can make. */
  55221. -#define lt_preloaded_symbols some_other_symbol
  55222. + # CHECK ME: I think I busted this. -Ossama
  55223. + if test "$prev" = dlprefiles; then
  55224. + # Preload the old-style object.
  55225. + dlprefiles="$dlprefiles $pic_object"
  55226. + prev=
  55227. + fi
  55228. -/* External symbol declarations for the compiler. */\
  55229. -"
  55230. + # A PIC object.
  55231. + func_append libobjs " $pic_object"
  55232. + arg="$pic_object"
  55233. + fi
  55234. - if test "$dlself" = yes; then
  55235. - $show "generating symbol list for \`$output'"
  55236. + # Non-PIC object.
  55237. + if test "$non_pic_object" != none; then
  55238. + # Prepend the subdirectory the object is found in.
  55239. + non_pic_object="$xdir$non_pic_object"
  55240. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  55241. + # A standard non-PIC object
  55242. + func_append non_pic_objects " $non_pic_object"
  55243. + if test -z "$pic_object" || test "$pic_object" = none ; then
  55244. + arg="$non_pic_object"
  55245. + fi
  55246. + else
  55247. + # If the PIC object exists, use it instead.
  55248. + # $xdir was prepended to $pic_object above.
  55249. + non_pic_object="$pic_object"
  55250. + func_append non_pic_objects " $non_pic_object"
  55251. + fi
  55252. + else
  55253. + # Only an error if not doing a dry-run.
  55254. + if $opt_dry_run; then
  55255. + # Extract subdirectory from the argument.
  55256. + func_dirname "$arg" "/" ""
  55257. + xdir="$func_dirname_result"
  55258. - # Add our own program objects to the symbol list.
  55259. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  55260. - for arg in $progfiles; do
  55261. - $show "extracting global C symbols from \`$arg'"
  55262. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  55263. + func_lo2o "$arg"
  55264. + pic_object=$xdir$objdir/$func_lo2o_result
  55265. + non_pic_object=$xdir$func_lo2o_result
  55266. + func_append libobjs " $pic_object"
  55267. + func_append non_pic_objects " $non_pic_object"
  55268. + else
  55269. + func_fatal_error "\`$arg' is not a valid libtool object"
  55270. + fi
  55271. + fi
  55272. done
  55273. -
  55274. - if test -n "$exclude_expsyms"; then
  55275. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  55276. - $run eval '$mv "$nlist"T "$nlist"'
  55277. - fi
  55278. -
  55279. - if test -n "$export_symbols_regex"; then
  55280. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  55281. - $run eval '$mv "$nlist"T "$nlist"'
  55282. - fi
  55283. -
  55284. - # Prepare the list of exported symbols
  55285. - if test -z "$export_symbols"; then
  55286. - export_symbols="$output_objdir/$outputname.exp"
  55287. - $run $rm $export_symbols
  55288. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  55289. - case $host in
  55290. - *cygwin* | *mingw* )
  55291. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  55292. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  55293. - ;;
  55294. - esac
  55295. - else
  55296. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  55297. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  55298. - $run eval 'mv "$nlist"T "$nlist"'
  55299. - case $host in
  55300. - *cygwin* | *mingw* )
  55301. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  55302. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  55303. - ;;
  55304. - esac
  55305. - fi
  55306. + else
  55307. + func_fatal_error "link input file \`$arg' does not exist"
  55308. fi
  55309. -
  55310. - for arg in $dlprefiles; do
  55311. - $show "extracting global C symbols from \`$arg'"
  55312. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  55313. - $run eval '$echo ": $name " >> "$nlist"'
  55314. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  55315. - done
  55316. -
  55317. - if test -z "$run"; then
  55318. - # Make sure we have at least an empty file.
  55319. - test -f "$nlist" || : > "$nlist"
  55320. -
  55321. - if test -n "$exclude_expsyms"; then
  55322. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  55323. - $mv "$nlist"T "$nlist"
  55324. - fi
  55325. -
  55326. - # Try sorting and uniquifying the output.
  55327. - if grep -v "^: " < "$nlist" |
  55328. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  55329. - sort -k 3
  55330. - else
  55331. - sort +2
  55332. - fi |
  55333. - uniq > "$nlist"S; then
  55334. - :
  55335. - else
  55336. - grep -v "^: " < "$nlist" > "$nlist"S
  55337. - fi
  55338. -
  55339. - if test -f "$nlist"S; then
  55340. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  55341. - else
  55342. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  55343. - fi
  55344. -
  55345. - $echo >> "$output_objdir/$dlsyms" "\
  55346. -
  55347. -#undef lt_preloaded_symbols
  55348. -
  55349. -#if defined (__STDC__) && __STDC__
  55350. -# define lt_ptr void *
  55351. -#else
  55352. -# define lt_ptr char *
  55353. -# define const
  55354. -#endif
  55355. -
  55356. -/* The mapping between symbol names and symbols. */
  55357. -"
  55358. -
  55359. - case $host in
  55360. - *cygwin* | *mingw* )
  55361. - $echo >> "$output_objdir/$dlsyms" "\
  55362. -/* DATA imports from DLLs on WIN32 can't be const, because
  55363. - runtime relocations are performed -- see ld's documentation
  55364. - on pseudo-relocs */
  55365. -struct {
  55366. -"
  55367. - ;;
  55368. - * )
  55369. - $echo >> "$output_objdir/$dlsyms" "\
  55370. -const struct {
  55371. -"
  55372. - ;;
  55373. - esac
  55374. -
  55375. -
  55376. - $echo >> "$output_objdir/$dlsyms" "\
  55377. - const char *name;
  55378. - lt_ptr address;
  55379. -}
  55380. -lt_preloaded_symbols[] =
  55381. -{\
  55382. -"
  55383. -
  55384. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  55385. -
  55386. - $echo >> "$output_objdir/$dlsyms" "\
  55387. - {0, (lt_ptr) 0}
  55388. -};
  55389. -
  55390. -/* This works around a problem in FreeBSD linker */
  55391. -#ifdef FREEBSD_WORKAROUND
  55392. -static const void *lt_preloaded_setup() {
  55393. - return lt_preloaded_symbols;
  55394. -}
  55395. -#endif
  55396. -
  55397. -#ifdef __cplusplus
  55398. -}
  55399. -#endif\
  55400. -"
  55401. - fi
  55402. -
  55403. - pic_flag_for_symtable=
  55404. - case $host in
  55405. - # compiling the symbol table file with pic_flag works around
  55406. - # a FreeBSD bug that causes programs to crash when -lm is
  55407. - # linked before any other PIC object. But we must not use
  55408. - # pic_flag when linking with -static. The problem exists in
  55409. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  55410. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  55411. - case "$compile_command " in
  55412. - *" -static "*) ;;
  55413. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  55414. - esac;;
  55415. - *-*-hpux*)
  55416. - case "$compile_command " in
  55417. - *" -static "*) ;;
  55418. - *) pic_flag_for_symtable=" $pic_flag";;
  55419. - esac
  55420. + arg=$save_arg
  55421. + prev=
  55422. + continue
  55423. + ;;
  55424. + precious_regex)
  55425. + precious_files_regex="$arg"
  55426. + prev=
  55427. + continue
  55428. + ;;
  55429. + release)
  55430. + release="-$arg"
  55431. + prev=
  55432. + continue
  55433. + ;;
  55434. + rpath | xrpath)
  55435. + # We need an absolute path.
  55436. + case $arg in
  55437. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55438. + *)
  55439. + func_fatal_error "only absolute run-paths are allowed"
  55440. + ;;
  55441. esac
  55442. -
  55443. - # Now compile the dynamic symbol file.
  55444. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  55445. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  55446. -
  55447. - # Clean up the generated files.
  55448. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  55449. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  55450. -
  55451. - # Transform the symbol file into the correct name.
  55452. - case $host in
  55453. - *cygwin* | *mingw* )
  55454. - if test -f "$output_objdir/${outputname}.def" ; then
  55455. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55456. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55457. - else
  55458. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55459. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55460. - fi
  55461. - ;;
  55462. - * )
  55463. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55464. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55465. - ;;
  55466. - esac
  55467. + if test "$prev" = rpath; then
  55468. + case "$rpath " in
  55469. + *" $arg "*) ;;
  55470. + *) rpath="$rpath $arg" ;;
  55471. + esac
  55472. + else
  55473. + case "$xrpath " in
  55474. + *" $arg "*) ;;
  55475. + *) xrpath="$xrpath $arg" ;;
  55476. + esac
  55477. + fi
  55478. + prev=
  55479. + continue
  55480. + ;;
  55481. + shrext)
  55482. + shrext_cmds="$arg"
  55483. + prev=
  55484. + continue
  55485. + ;;
  55486. + weak)
  55487. + weak_libs="$weak_libs $arg"
  55488. + prev=
  55489. + continue
  55490. + ;;
  55491. + xcclinker)
  55492. + linker_flags="$linker_flags $qarg"
  55493. + compiler_flags="$compiler_flags $qarg"
  55494. + prev=
  55495. + func_append compile_command " $qarg"
  55496. + func_append finalize_command " $qarg"
  55497. + continue
  55498. + ;;
  55499. + xcompiler)
  55500. + compiler_flags="$compiler_flags $qarg"
  55501. + prev=
  55502. + func_append compile_command " $qarg"
  55503. + func_append finalize_command " $qarg"
  55504. + continue
  55505. + ;;
  55506. + xlinker)
  55507. + linker_flags="$linker_flags $qarg"
  55508. + compiler_flags="$compiler_flags $wl$qarg"
  55509. + prev=
  55510. + func_append compile_command " $wl$qarg"
  55511. + func_append finalize_command " $wl$qarg"
  55512. + continue
  55513. ;;
  55514. *)
  55515. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  55516. - exit $EXIT_FAILURE
  55517. + eval "$prev=\"\$arg\""
  55518. + prev=
  55519. + continue
  55520. ;;
  55521. esac
  55522. - else
  55523. - # We keep going just in case the user didn't refer to
  55524. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  55525. - # really was required.
  55526. -
  55527. - # Nullify the symbol file.
  55528. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  55529. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  55530. - fi
  55531. -
  55532. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  55533. - # Replace the output file specification.
  55534. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  55535. - link_command="$compile_command$compile_rpath"
  55536. + fi # test -n "$prev"
  55537. - # We have no uninstalled library dependencies, so finalize right now.
  55538. - $show "$link_command"
  55539. - $run eval "$link_command"
  55540. - exit_status=$?
  55541. + prevarg="$arg"
  55542. - # Delete the generated files.
  55543. - if test -n "$dlsyms"; then
  55544. - $show "$rm $output_objdir/${outputname}S.${objext}"
  55545. - $run $rm "$output_objdir/${outputname}S.${objext}"
  55546. + case $arg in
  55547. + -all-static)
  55548. + if test -n "$link_static_flag"; then
  55549. + # See comment for -static flag below, for more details.
  55550. + func_append compile_command " $link_static_flag"
  55551. + func_append finalize_command " $link_static_flag"
  55552. fi
  55553. + continue
  55554. + ;;
  55555. - exit $exit_status
  55556. - fi
  55557. -
  55558. - if test -n "$shlibpath_var"; then
  55559. - # We should set the shlibpath_var
  55560. - rpath=
  55561. - for dir in $temp_rpath; do
  55562. - case $dir in
  55563. - [\\/]* | [A-Za-z]:[\\/]*)
  55564. - # Absolute path.
  55565. - rpath="$rpath$dir:"
  55566. - ;;
  55567. - *)
  55568. - # Relative path: add a thisdir entry.
  55569. - rpath="$rpath\$thisdir/$dir:"
  55570. - ;;
  55571. - esac
  55572. - done
  55573. - temp_rpath="$rpath"
  55574. - fi
  55575. + -allow-undefined)
  55576. + # FIXME: remove this flag sometime in the future.
  55577. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  55578. + ;;
  55579. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  55580. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  55581. - fi
  55582. - if test -n "$finalize_shlibpath"; then
  55583. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  55584. - fi
  55585. + -avoid-version)
  55586. + avoid_version=yes
  55587. + continue
  55588. + ;;
  55589. - compile_var=
  55590. - finalize_var=
  55591. - if test -n "$runpath_var"; then
  55592. - if test -n "$perm_rpath"; then
  55593. - # We should set the runpath_var.
  55594. - rpath=
  55595. - for dir in $perm_rpath; do
  55596. - rpath="$rpath$dir:"
  55597. - done
  55598. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  55599. - fi
  55600. - if test -n "$finalize_perm_rpath"; then
  55601. - # We should set the runpath_var.
  55602. - rpath=
  55603. - for dir in $finalize_perm_rpath; do
  55604. - rpath="$rpath$dir:"
  55605. - done
  55606. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  55607. - fi
  55608. - fi
  55609. + -dlopen)
  55610. + prev=dlfiles
  55611. + continue
  55612. + ;;
  55613. - if test "$no_install" = yes; then
  55614. - # We don't need to create a wrapper script.
  55615. - link_command="$compile_var$compile_command$compile_rpath"
  55616. - # Replace the output file specification.
  55617. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  55618. - # Delete the old output file.
  55619. - $run $rm $output
  55620. - # Link the executable and exit
  55621. - $show "$link_command"
  55622. - $run eval "$link_command" || exit $?
  55623. - exit $EXIT_SUCCESS
  55624. - fi
  55625. + -dlpreopen)
  55626. + prev=dlprefiles
  55627. + continue
  55628. + ;;
  55629. - if test "$hardcode_action" = relink; then
  55630. - # Fast installation is not supported
  55631. - link_command="$compile_var$compile_command$compile_rpath"
  55632. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  55633. + -export-dynamic)
  55634. + export_dynamic=yes
  55635. + continue
  55636. + ;;
  55637. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  55638. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  55639. - else
  55640. - if test "$fast_install" != no; then
  55641. - link_command="$finalize_var$compile_command$finalize_rpath"
  55642. - if test "$fast_install" = yes; then
  55643. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  55644. - else
  55645. - # fast_install is set to needless
  55646. - relink_command=
  55647. - fi
  55648. + -export-symbols | -export-symbols-regex)
  55649. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  55650. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  55651. + fi
  55652. + if test "X$arg" = "X-export-symbols"; then
  55653. + prev=expsyms
  55654. else
  55655. - link_command="$compile_var$compile_command$compile_rpath"
  55656. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  55657. + prev=expsyms_regex
  55658. fi
  55659. - fi
  55660. -
  55661. - # Replace the output file specification.
  55662. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  55663. + continue
  55664. + ;;
  55665. - # Delete the old output files.
  55666. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  55667. + -framework)
  55668. + prev=framework
  55669. + continue
  55670. + ;;
  55671. - $show "$link_command"
  55672. - $run eval "$link_command" || exit $?
  55673. + -inst-prefix-dir)
  55674. + prev=inst_prefix
  55675. + continue
  55676. + ;;
  55677. - # Now create the wrapper script.
  55678. - $show "creating $output"
  55679. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  55680. + # so, if we see these flags be careful not to treat them like -L
  55681. + -L[A-Z][A-Z]*:*)
  55682. + case $with_gcc/$host in
  55683. + no/*-*-irix* | /*-*-irix*)
  55684. + func_append compile_command " $arg"
  55685. + func_append finalize_command " $arg"
  55686. + ;;
  55687. + esac
  55688. + continue
  55689. + ;;
  55690. - # Quote the relink command for shipping.
  55691. - if test -n "$relink_command"; then
  55692. - # Preserve any variables that may affect compiler behavior
  55693. - for var in $variables_saved_for_relink; do
  55694. - if eval test -z \"\${$var+set}\"; then
  55695. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  55696. - elif eval var_value=\$$var; test -z "$var_value"; then
  55697. - relink_command="$var=; export $var; $relink_command"
  55698. + -L*)
  55699. + func_stripname '-L' '' "$arg"
  55700. + dir=$func_stripname_result
  55701. + if test -z "$dir"; then
  55702. + if test "$#" -gt 0; then
  55703. + func_fatal_error "require no space between \`-L' and \`$1'"
  55704. else
  55705. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  55706. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  55707. + func_fatal_error "need path for \`-L' option"
  55708. fi
  55709. - done
  55710. - relink_command="(cd `pwd`; $relink_command)"
  55711. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  55712. - fi
  55713. -
  55714. - # Quote $echo for shipping.
  55715. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  55716. - case $progpath in
  55717. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  55718. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  55719. + fi
  55720. + # We need an absolute path.
  55721. + case $dir in
  55722. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55723. + *)
  55724. + absdir=`cd "$dir" && pwd`
  55725. + test -z "$absdir" && \
  55726. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  55727. + dir="$absdir"
  55728. + ;;
  55729. esac
  55730. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  55731. - else
  55732. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  55733. - fi
  55734. -
  55735. - # Only actually do things if our run command is non-null.
  55736. - if test -z "$run"; then
  55737. - # win32 will think the script is a binary if it has
  55738. - # a .exe suffix, so we strip it off here.
  55739. - case $output in
  55740. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  55741. + case "$deplibs " in
  55742. + *" -L$dir "*) ;;
  55743. + *)
  55744. + deplibs="$deplibs -L$dir"
  55745. + lib_search_path="$lib_search_path $dir"
  55746. + ;;
  55747. esac
  55748. - # test for cygwin because mv fails w/o .exe extensions
  55749. case $host in
  55750. - *cygwin*)
  55751. - exeext=.exe
  55752. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  55753. - *) exeext= ;;
  55754. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  55755. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  55756. + case :$dllsearchpath: in
  55757. + *":$dir:"*) ;;
  55758. + ::) dllsearchpath=$dir;;
  55759. + *) dllsearchpath="$dllsearchpath:$dir";;
  55760. + esac
  55761. + case :$dllsearchpath: in
  55762. + *":$testbindir:"*) ;;
  55763. + ::) dllsearchpath=$testbindir;;
  55764. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  55765. + esac
  55766. + ;;
  55767. esac
  55768. - case $host in
  55769. - *cygwin* | *mingw* )
  55770. - output_name=`basename $output`
  55771. - output_path=`dirname $output`
  55772. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  55773. - cwrapper="$output_path/$output_name.exe"
  55774. - $rm $cwrappersource $cwrapper
  55775. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  55776. -
  55777. - cat > $cwrappersource <<EOF
  55778. + continue
  55779. + ;;
  55780. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  55781. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  55782. + -l*)
  55783. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  55784. + case $host in
  55785. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  55786. + # These systems don't actually have a C or math library (as such)
  55787. + continue
  55788. + ;;
  55789. + *-*-os2*)
  55790. + # These systems don't actually have a C library (as such)
  55791. + test "X$arg" = "X-lc" && continue
  55792. + ;;
  55793. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  55794. + # Do not include libc due to us having libc/libc_r.
  55795. + test "X$arg" = "X-lc" && continue
  55796. + ;;
  55797. + *-*-rhapsody* | *-*-darwin1.[012])
  55798. + # Rhapsody C and math libraries are in the System framework
  55799. + deplibs="$deplibs System.ltframework"
  55800. + continue
  55801. + ;;
  55802. + *-*-sco3.2v5* | *-*-sco5v6*)
  55803. + # Causes problems with __ctype
  55804. + test "X$arg" = "X-lc" && continue
  55805. + ;;
  55806. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  55807. + # Compiler inserts libc in the correct place for threads to work
  55808. + test "X$arg" = "X-lc" && continue
  55809. + ;;
  55810. + esac
  55811. + elif test "X$arg" = "X-lc_r"; then
  55812. + case $host in
  55813. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  55814. + # Do not include libc_r directly, use -pthread flag.
  55815. + continue
  55816. + ;;
  55817. + esac
  55818. + fi
  55819. + deplibs="$deplibs $arg"
  55820. + continue
  55821. + ;;
  55822. - The $output program cannot be directly executed until all the libtool
  55823. - libraries that it depends on are installed.
  55824. + -module)
  55825. + module=yes
  55826. + continue
  55827. + ;;
  55828. - This wrapper executable should never be moved out of the build directory.
  55829. - If it is, it will not operate correctly.
  55830. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  55831. + # classes, name mangling, and exception handling.
  55832. + # Darwin uses the -arch flag to determine output architecture.
  55833. + -model|-arch|-isysroot)
  55834. + compiler_flags="$compiler_flags $arg"
  55835. + func_append compile_command " $arg"
  55836. + func_append finalize_command " $arg"
  55837. + prev=xcompiler
  55838. + continue
  55839. + ;;
  55840. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  55841. - but could eventually absorb all of the scripts functionality and
  55842. - exec $objdir/$outputname directly.
  55843. -*/
  55844. -EOF
  55845. - cat >> $cwrappersource<<"EOF"
  55846. -#include <stdio.h>
  55847. -#include <stdlib.h>
  55848. -#include <unistd.h>
  55849. -#include <malloc.h>
  55850. -#include <stdarg.h>
  55851. -#include <assert.h>
  55852. -#include <string.h>
  55853. -#include <ctype.h>
  55854. -#include <sys/stat.h>
  55855. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  55856. + compiler_flags="$compiler_flags $arg"
  55857. + func_append compile_command " $arg"
  55858. + func_append finalize_command " $arg"
  55859. + case "$new_inherited_linker_flags " in
  55860. + *" $arg "*) ;;
  55861. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  55862. + esac
  55863. + continue
  55864. + ;;
  55865. -#if defined(PATH_MAX)
  55866. -# define LT_PATHMAX PATH_MAX
  55867. -#elif defined(MAXPATHLEN)
  55868. -# define LT_PATHMAX MAXPATHLEN
  55869. -#else
  55870. -# define LT_PATHMAX 1024
  55871. -#endif
  55872. + -multi_module)
  55873. + single_module="${wl}-multi_module"
  55874. + continue
  55875. + ;;
  55876. -#ifndef DIR_SEPARATOR
  55877. -# define DIR_SEPARATOR '/'
  55878. -# define PATH_SEPARATOR ':'
  55879. -#endif
  55880. + -no-fast-install)
  55881. + fast_install=no
  55882. + continue
  55883. + ;;
  55884. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  55885. - defined (__OS2__)
  55886. -# define HAVE_DOS_BASED_FILE_SYSTEM
  55887. -# ifndef DIR_SEPARATOR_2
  55888. -# define DIR_SEPARATOR_2 '\\'
  55889. -# endif
  55890. -# ifndef PATH_SEPARATOR_2
  55891. -# define PATH_SEPARATOR_2 ';'
  55892. -# endif
  55893. -#endif
  55894. + -no-install)
  55895. + case $host in
  55896. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  55897. + # The PATH hackery in wrapper scripts is required on Windows
  55898. + # and Darwin in order for the loader to find any dlls it needs.
  55899. + func_warning "\`-no-install' is ignored for $host"
  55900. + func_warning "assuming \`-no-fast-install' instead"
  55901. + fast_install=no
  55902. + ;;
  55903. + *) no_install=yes ;;
  55904. + esac
  55905. + continue
  55906. + ;;
  55907. -#ifndef DIR_SEPARATOR_2
  55908. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  55909. -#else /* DIR_SEPARATOR_2 */
  55910. -# define IS_DIR_SEPARATOR(ch) \
  55911. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  55912. -#endif /* DIR_SEPARATOR_2 */
  55913. + -no-undefined)
  55914. + allow_undefined=no
  55915. + continue
  55916. + ;;
  55917. -#ifndef PATH_SEPARATOR_2
  55918. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  55919. -#else /* PATH_SEPARATOR_2 */
  55920. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  55921. -#endif /* PATH_SEPARATOR_2 */
  55922. + -objectlist)
  55923. + prev=objectlist
  55924. + continue
  55925. + ;;
  55926. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  55927. -#define XFREE(stale) do { \
  55928. - if (stale) { free ((void *) stale); stale = 0; } \
  55929. -} while (0)
  55930. + -o) prev=output ;;
  55931. -/* -DDEBUG is fairly common in CFLAGS. */
  55932. -#undef DEBUG
  55933. -#if defined DEBUGWRAPPER
  55934. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  55935. -#else
  55936. -# define DEBUG(format, ...)
  55937. -#endif
  55938. + -precious-files-regex)
  55939. + prev=precious_regex
  55940. + continue
  55941. + ;;
  55942. -const char *program_name = NULL;
  55943. + -release)
  55944. + prev=release
  55945. + continue
  55946. + ;;
  55947. -void * xmalloc (size_t num);
  55948. -char * xstrdup (const char *string);
  55949. -const char * base_name (const char *name);
  55950. -char * find_executable(const char *wrapper);
  55951. -int check_executable(const char *path);
  55952. -char * strendzap(char *str, const char *pat);
  55953. -void lt_fatal (const char *message, ...);
  55954. + -rpath)
  55955. + prev=rpath
  55956. + continue
  55957. + ;;
  55958. -int
  55959. -main (int argc, char *argv[])
  55960. -{
  55961. - char **newargz;
  55962. - int i;
  55963. + -R)
  55964. + prev=xrpath
  55965. + continue
  55966. + ;;
  55967. - program_name = (char *) xstrdup (base_name (argv[0]));
  55968. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  55969. - DEBUG("(main) program_name : %s\n",program_name);
  55970. - newargz = XMALLOC(char *, argc+2);
  55971. -EOF
  55972. + -R*)
  55973. + func_stripname '-R' '' "$arg"
  55974. + dir=$func_stripname_result
  55975. + # We need an absolute path.
  55976. + case $dir in
  55977. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55978. + *)
  55979. + func_fatal_error "only absolute run-paths are allowed"
  55980. + ;;
  55981. + esac
  55982. + case "$xrpath " in
  55983. + *" $dir "*) ;;
  55984. + *) xrpath="$xrpath $dir" ;;
  55985. + esac
  55986. + continue
  55987. + ;;
  55988. - cat >> $cwrappersource <<EOF
  55989. - newargz[0] = (char *) xstrdup("$SHELL");
  55990. -EOF
  55991. + -shared)
  55992. + # The effects of -shared are defined in a previous loop.
  55993. + continue
  55994. + ;;
  55995. - cat >> $cwrappersource <<"EOF"
  55996. - newargz[1] = find_executable(argv[0]);
  55997. - if (newargz[1] == NULL)
  55998. - lt_fatal("Couldn't find %s", argv[0]);
  55999. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  56000. - /* we know the script has the same name, without the .exe */
  56001. - /* so make sure newargz[1] doesn't end in .exe */
  56002. - strendzap(newargz[1],".exe");
  56003. - for (i = 1; i < argc; i++)
  56004. - newargz[i+1] = xstrdup(argv[i]);
  56005. - newargz[argc+1] = NULL;
  56006. + -shrext)
  56007. + prev=shrext
  56008. + continue
  56009. + ;;
  56010. - for (i=0; i<argc+1; i++)
  56011. - {
  56012. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  56013. - ;
  56014. - }
  56015. + -static | -static-libtool-libs)
  56016. + # The effects of -static are defined in a previous loop.
  56017. + # We used to do the same as -all-static on platforms that
  56018. + # didn't have a PIC flag, but the assumption that the effects
  56019. + # would be equivalent was wrong. It would break on at least
  56020. + # Digital Unix and AIX.
  56021. + continue
  56022. + ;;
  56023. -EOF
  56024. + -thread-safe)
  56025. + thread_safe=yes
  56026. + continue
  56027. + ;;
  56028. - case $host_os in
  56029. - mingw*)
  56030. - cat >> $cwrappersource <<EOF
  56031. - execv("$SHELL",(char const **)newargz);
  56032. -EOF
  56033. - ;;
  56034. - *)
  56035. - cat >> $cwrappersource <<EOF
  56036. - execv("$SHELL",newargz);
  56037. -EOF
  56038. - ;;
  56039. - esac
  56040. + -version-info)
  56041. + prev=vinfo
  56042. + continue
  56043. + ;;
  56044. - cat >> $cwrappersource <<"EOF"
  56045. - return 127;
  56046. -}
  56047. + -version-number)
  56048. + prev=vinfo
  56049. + vinfo_number=yes
  56050. + continue
  56051. + ;;
  56052. -void *
  56053. -xmalloc (size_t num)
  56054. -{
  56055. - void * p = (void *) malloc (num);
  56056. - if (!p)
  56057. - lt_fatal ("Memory exhausted");
  56058. + -weak)
  56059. + prev=weak
  56060. + continue
  56061. + ;;
  56062. - return p;
  56063. -}
  56064. + -Wc,*)
  56065. + func_stripname '-Wc,' '' "$arg"
  56066. + args=$func_stripname_result
  56067. + arg=
  56068. + save_ifs="$IFS"; IFS=','
  56069. + for flag in $args; do
  56070. + IFS="$save_ifs"
  56071. + func_quote_for_eval "$flag"
  56072. + arg="$arg $wl$func_quote_for_eval_result"
  56073. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  56074. + done
  56075. + IFS="$save_ifs"
  56076. + func_stripname ' ' '' "$arg"
  56077. + arg=$func_stripname_result
  56078. + ;;
  56079. -char *
  56080. -xstrdup (const char *string)
  56081. -{
  56082. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  56083. -;
  56084. -}
  56085. + -Wl,*)
  56086. + func_stripname '-Wl,' '' "$arg"
  56087. + args=$func_stripname_result
  56088. + arg=
  56089. + save_ifs="$IFS"; IFS=','
  56090. + for flag in $args; do
  56091. + IFS="$save_ifs"
  56092. + func_quote_for_eval "$flag"
  56093. + arg="$arg $wl$func_quote_for_eval_result"
  56094. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  56095. + linker_flags="$linker_flags $func_quote_for_eval_result"
  56096. + done
  56097. + IFS="$save_ifs"
  56098. + func_stripname ' ' '' "$arg"
  56099. + arg=$func_stripname_result
  56100. + ;;
  56101. -const char *
  56102. -base_name (const char *name)
  56103. -{
  56104. - const char *base;
  56105. + -Xcompiler)
  56106. + prev=xcompiler
  56107. + continue
  56108. + ;;
  56109. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  56110. - /* Skip over the disk name in MSDOS pathnames. */
  56111. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  56112. - name += 2;
  56113. -#endif
  56114. + -Xlinker)
  56115. + prev=xlinker
  56116. + continue
  56117. + ;;
  56118. - for (base = name; *name; name++)
  56119. - if (IS_DIR_SEPARATOR (*name))
  56120. - base = name + 1;
  56121. - return base;
  56122. -}
  56123. + -XCClinker)
  56124. + prev=xcclinker
  56125. + continue
  56126. + ;;
  56127. -int
  56128. -check_executable(const char * path)
  56129. -{
  56130. - struct stat st;
  56131. + # -msg_* for osf cc
  56132. + -msg_*)
  56133. + func_quote_for_eval "$arg"
  56134. + arg="$func_quote_for_eval_result"
  56135. + ;;
  56136. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  56137. - if ((!path) || (!*path))
  56138. - return 0;
  56139. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  56140. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  56141. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  56142. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  56143. + # -q* pass through compiler args for the IBM compiler
  56144. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  56145. + # compiler args for GCC
  56146. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  56147. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  56148. + # @file GCC response files
  56149. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  56150. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  56151. + func_quote_for_eval "$arg"
  56152. + arg="$func_quote_for_eval_result"
  56153. + func_append compile_command " $arg"
  56154. + func_append finalize_command " $arg"
  56155. + compiler_flags="$compiler_flags $arg"
  56156. + continue
  56157. + ;;
  56158. - if ((stat (path, &st) >= 0) &&
  56159. - (
  56160. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  56161. -#if defined (S_IXOTH)
  56162. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  56163. -#endif
  56164. -#if defined (S_IXGRP)
  56165. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  56166. -#endif
  56167. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  56168. - )
  56169. - return 1;
  56170. - else
  56171. - return 0;
  56172. -}
  56173. + # Some other compiler flag.
  56174. + -* | +*)
  56175. + func_quote_for_eval "$arg"
  56176. + arg="$func_quote_for_eval_result"
  56177. + ;;
  56178. -/* Searches for the full path of the wrapper. Returns
  56179. - newly allocated full path name if found, NULL otherwise */
  56180. -char *
  56181. -find_executable (const char* wrapper)
  56182. -{
  56183. - int has_slash = 0;
  56184. - const char* p;
  56185. - const char* p_next;
  56186. - /* static buffer for getcwd */
  56187. - char tmp[LT_PATHMAX + 1];
  56188. - int tmp_len;
  56189. - char* concat_name;
  56190. + *.$objext)
  56191. + # A standard object.
  56192. + objs="$objs $arg"
  56193. + ;;
  56194. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  56195. + *.lo)
  56196. + # A libtool-controlled object.
  56197. - if ((wrapper == NULL) || (*wrapper == '\0'))
  56198. - return NULL;
  56199. + # Check to see that this really is a libtool object.
  56200. + if func_lalib_unsafe_p "$arg"; then
  56201. + pic_object=
  56202. + non_pic_object=
  56203. - /* Absolute path? */
  56204. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  56205. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  56206. - {
  56207. - concat_name = xstrdup (wrapper);
  56208. - if (check_executable(concat_name))
  56209. - return concat_name;
  56210. - XFREE(concat_name);
  56211. - }
  56212. - else
  56213. - {
  56214. -#endif
  56215. - if (IS_DIR_SEPARATOR (wrapper[0]))
  56216. - {
  56217. - concat_name = xstrdup (wrapper);
  56218. - if (check_executable(concat_name))
  56219. - return concat_name;
  56220. - XFREE(concat_name);
  56221. - }
  56222. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  56223. - }
  56224. -#endif
  56225. + # Read the .lo file
  56226. + func_source "$arg"
  56227. - for (p = wrapper; *p; p++)
  56228. - if (*p == '/')
  56229. - {
  56230. - has_slash = 1;
  56231. - break;
  56232. - }
  56233. - if (!has_slash)
  56234. - {
  56235. - /* no slashes; search PATH */
  56236. - const char* path = getenv ("PATH");
  56237. - if (path != NULL)
  56238. - {
  56239. - for (p = path; *p; p = p_next)
  56240. - {
  56241. - const char* q;
  56242. - size_t p_len;
  56243. - for (q = p; *q; q++)
  56244. - if (IS_PATH_SEPARATOR(*q))
  56245. - break;
  56246. - p_len = q - p;
  56247. - p_next = (*q == '\0' ? q : q + 1);
  56248. - if (p_len == 0)
  56249. - {
  56250. - /* empty path: current directory */
  56251. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  56252. - lt_fatal ("getcwd failed");
  56253. - tmp_len = strlen(tmp);
  56254. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  56255. - memcpy (concat_name, tmp, tmp_len);
  56256. - concat_name[tmp_len] = '/';
  56257. - strcpy (concat_name + tmp_len + 1, wrapper);
  56258. - }
  56259. - else
  56260. - {
  56261. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  56262. - memcpy (concat_name, p, p_len);
  56263. - concat_name[p_len] = '/';
  56264. - strcpy (concat_name + p_len + 1, wrapper);
  56265. - }
  56266. - if (check_executable(concat_name))
  56267. - return concat_name;
  56268. - XFREE(concat_name);
  56269. - }
  56270. - }
  56271. - /* not found in PATH; assume curdir */
  56272. - }
  56273. - /* Relative path | not found in path: prepend cwd */
  56274. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  56275. - lt_fatal ("getcwd failed");
  56276. - tmp_len = strlen(tmp);
  56277. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  56278. - memcpy (concat_name, tmp, tmp_len);
  56279. - concat_name[tmp_len] = '/';
  56280. - strcpy (concat_name + tmp_len + 1, wrapper);
  56281. + if test -z "$pic_object" ||
  56282. + test -z "$non_pic_object" ||
  56283. + test "$pic_object" = none &&
  56284. + test "$non_pic_object" = none; then
  56285. + func_fatal_error "cannot find name of object for \`$arg'"
  56286. + fi
  56287. - if (check_executable(concat_name))
  56288. - return concat_name;
  56289. - XFREE(concat_name);
  56290. - return NULL;
  56291. -}
  56292. + # Extract subdirectory from the argument.
  56293. + func_dirname "$arg" "/" ""
  56294. + xdir="$func_dirname_result"
  56295. -char *
  56296. -strendzap(char *str, const char *pat)
  56297. -{
  56298. - size_t len, patlen;
  56299. + if test "$pic_object" != none; then
  56300. + # Prepend the subdirectory the object is found in.
  56301. + pic_object="$xdir$pic_object"
  56302. - assert(str != NULL);
  56303. - assert(pat != NULL);
  56304. + if test "$prev" = dlfiles; then
  56305. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  56306. + dlfiles="$dlfiles $pic_object"
  56307. + prev=
  56308. + continue
  56309. + else
  56310. + # If libtool objects are unsupported, then we need to preload.
  56311. + prev=dlprefiles
  56312. + fi
  56313. + fi
  56314. - len = strlen(str);
  56315. - patlen = strlen(pat);
  56316. + # CHECK ME: I think I busted this. -Ossama
  56317. + if test "$prev" = dlprefiles; then
  56318. + # Preload the old-style object.
  56319. + dlprefiles="$dlprefiles $pic_object"
  56320. + prev=
  56321. + fi
  56322. - if (patlen <= len)
  56323. - {
  56324. - str += len - patlen;
  56325. - if (strcmp(str, pat) == 0)
  56326. - *str = '\0';
  56327. - }
  56328. - return str;
  56329. -}
  56330. + # A PIC object.
  56331. + func_append libobjs " $pic_object"
  56332. + arg="$pic_object"
  56333. + fi
  56334. -static void
  56335. -lt_error_core (int exit_status, const char * mode,
  56336. - const char * message, va_list ap)
  56337. -{
  56338. - fprintf (stderr, "%s: %s: ", program_name, mode);
  56339. - vfprintf (stderr, message, ap);
  56340. - fprintf (stderr, ".\n");
  56341. + # Non-PIC object.
  56342. + if test "$non_pic_object" != none; then
  56343. + # Prepend the subdirectory the object is found in.
  56344. + non_pic_object="$xdir$non_pic_object"
  56345. - if (exit_status >= 0)
  56346. - exit (exit_status);
  56347. -}
  56348. + # A standard non-PIC object
  56349. + func_append non_pic_objects " $non_pic_object"
  56350. + if test -z "$pic_object" || test "$pic_object" = none ; then
  56351. + arg="$non_pic_object"
  56352. + fi
  56353. + else
  56354. + # If the PIC object exists, use it instead.
  56355. + # $xdir was prepended to $pic_object above.
  56356. + non_pic_object="$pic_object"
  56357. + func_append non_pic_objects " $non_pic_object"
  56358. + fi
  56359. + else
  56360. + # Only an error if not doing a dry-run.
  56361. + if $opt_dry_run; then
  56362. + # Extract subdirectory from the argument.
  56363. + func_dirname "$arg" "/" ""
  56364. + xdir="$func_dirname_result"
  56365. -void
  56366. -lt_fatal (const char *message, ...)
  56367. -{
  56368. - va_list ap;
  56369. - va_start (ap, message);
  56370. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  56371. - va_end (ap);
  56372. -}
  56373. -EOF
  56374. - # we should really use a build-platform specific compiler
  56375. - # here, but OTOH, the wrappers (shell script and this C one)
  56376. - # are only useful if you want to execute the "real" binary.
  56377. - # Since the "real" binary is built for $host, then this
  56378. - # wrapper might as well be built for $host, too.
  56379. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  56380. - ;;
  56381. - esac
  56382. - $rm $output
  56383. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  56384. + func_lo2o "$arg"
  56385. + pic_object=$xdir$objdir/$func_lo2o_result
  56386. + non_pic_object=$xdir$func_lo2o_result
  56387. + func_append libobjs " $pic_object"
  56388. + func_append non_pic_objects " $non_pic_object"
  56389. + else
  56390. + func_fatal_error "\`$arg' is not a valid libtool object"
  56391. + fi
  56392. + fi
  56393. + ;;
  56394. - $echo > $output "\
  56395. -#! $SHELL
  56396. + *.$libext)
  56397. + # An archive.
  56398. + deplibs="$deplibs $arg"
  56399. + old_deplibs="$old_deplibs $arg"
  56400. + continue
  56401. + ;;
  56402. -# $output - temporary wrapper script for $objdir/$outputname
  56403. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  56404. -#
  56405. -# The $output program cannot be directly executed until all the libtool
  56406. -# libraries that it depends on are installed.
  56407. -#
  56408. -# This wrapper script should never be moved out of the build directory.
  56409. -# If it is, it will not operate correctly.
  56410. + *.la)
  56411. + # A libtool-controlled library.
  56412. -# Sed substitution that helps us do robust quoting. It backslashifies
  56413. -# metacharacters that are still active within double-quoted strings.
  56414. -Xsed='${SED} -e 1s/^X//'
  56415. -sed_quote_subst='$sed_quote_subst'
  56416. + if test "$prev" = dlfiles; then
  56417. + # This library was specified with -dlopen.
  56418. + dlfiles="$dlfiles $arg"
  56419. + prev=
  56420. + elif test "$prev" = dlprefiles; then
  56421. + # The library was specified with -dlpreopen.
  56422. + dlprefiles="$dlprefiles $arg"
  56423. + prev=
  56424. + else
  56425. + deplibs="$deplibs $arg"
  56426. + fi
  56427. + continue
  56428. + ;;
  56429. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  56430. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  56431. - emulate sh
  56432. - NULLCMD=:
  56433. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  56434. - # is contrary to our usage. Disable this feature.
  56435. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  56436. - setopt NO_GLOB_SUBST
  56437. -else
  56438. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  56439. -fi
  56440. -BIN_SH=xpg4; export BIN_SH # for Tru64
  56441. -DUALCASE=1; export DUALCASE # for MKS sh
  56442. + # Some other compiler argument.
  56443. + *)
  56444. + # Unknown arguments in both finalize_command and compile_command need
  56445. + # to be aesthetically quoted because they are evaled later.
  56446. + func_quote_for_eval "$arg"
  56447. + arg="$func_quote_for_eval_result"
  56448. + ;;
  56449. + esac # arg
  56450. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  56451. -# if CDPATH is set.
  56452. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  56453. + # Now actually substitute the argument into the commands.
  56454. + if test -n "$arg"; then
  56455. + func_append compile_command " $arg"
  56456. + func_append finalize_command " $arg"
  56457. + fi
  56458. + done # argument parsing loop
  56459. -relink_command=\"$relink_command\"
  56460. + test -n "$prev" && \
  56461. + func_fatal_help "the \`$prevarg' option requires an argument"
  56462. -# This environment variable determines our operation mode.
  56463. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  56464. - # install mode needs the following variable:
  56465. - notinst_deplibs='$notinst_deplibs'
  56466. -else
  56467. - # When we are sourced in execute mode, \$file and \$echo are already set.
  56468. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  56469. - echo=\"$qecho\"
  56470. - file=\"\$0\"
  56471. - # Make sure echo works.
  56472. - if test \"X\$1\" = X--no-reexec; then
  56473. - # Discard the --no-reexec flag, and continue.
  56474. - shift
  56475. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  56476. - # Yippee, \$echo works!
  56477. - :
  56478. - else
  56479. - # Restart under the correct shell, and then maybe \$echo will work.
  56480. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  56481. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  56482. + eval arg=\"$export_dynamic_flag_spec\"
  56483. + func_append compile_command " $arg"
  56484. + func_append finalize_command " $arg"
  56485. fi
  56486. - fi\
  56487. -"
  56488. - $echo >> $output "\
  56489. - # Find the directory that this script lives in.
  56490. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  56491. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  56492. + oldlibs=
  56493. + # calculate the name of the file, without its directory
  56494. + func_basename "$output"
  56495. + outputname="$func_basename_result"
  56496. + libobjs_save="$libobjs"
  56497. - # Follow symbolic links until we get to the real thisdir.
  56498. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  56499. - while test -n \"\$file\"; do
  56500. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  56501. + if test -n "$shlibpath_var"; then
  56502. + # get the directories listed in $shlibpath_var
  56503. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  56504. + else
  56505. + shlib_search_path=
  56506. + fi
  56507. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  56508. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  56509. - # If there was a directory component, then change thisdir.
  56510. - if test \"x\$destdir\" != \"x\$file\"; then
  56511. - case \"\$destdir\" in
  56512. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  56513. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  56514. + func_dirname "$output" "/" ""
  56515. + output_objdir="$func_dirname_result$objdir"
  56516. + # Create the object directory.
  56517. + func_mkdir_p "$output_objdir"
  56518. +
  56519. + # Determine the type of output
  56520. + case $output in
  56521. + "")
  56522. + func_fatal_help "you must specify an output file"
  56523. + ;;
  56524. + *.$libext) linkmode=oldlib ;;
  56525. + *.lo | *.$objext) linkmode=obj ;;
  56526. + *.la) linkmode=lib ;;
  56527. + *) linkmode=prog ;; # Anything else should be a program.
  56528. + esac
  56529. +
  56530. + specialdeplibs=
  56531. +
  56532. + libs=
  56533. + # Find all interdependent deplibs by searching for libraries
  56534. + # that are linked more than once (e.g. -la -lb -la)
  56535. + for deplib in $deplibs; do
  56536. + if $opt_duplicate_deps ; then
  56537. + case "$libs " in
  56538. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56539. + esac
  56540. + fi
  56541. + libs="$libs $deplib"
  56542. + done
  56543. +
  56544. + if test "$linkmode" = lib; then
  56545. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  56546. +
  56547. + # Compute libraries that are listed more than once in $predeps
  56548. + # $postdeps and mark them as special (i.e., whose duplicates are
  56549. + # not to be eliminated).
  56550. + pre_post_deps=
  56551. + if $opt_duplicate_compiler_generated_deps; then
  56552. + for pre_post_dep in $predeps $postdeps; do
  56553. + case "$pre_post_deps " in
  56554. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  56555. + esac
  56556. + pre_post_deps="$pre_post_deps $pre_post_dep"
  56557. + done
  56558. + fi
  56559. + pre_post_deps=
  56560. + fi
  56561. +
  56562. + deplibs=
  56563. + newdependency_libs=
  56564. + newlib_search_path=
  56565. + need_relink=no # whether we're linking any uninstalled libtool libraries
  56566. + notinst_deplibs= # not-installed libtool libraries
  56567. + notinst_path= # paths that contain not-installed libtool libraries
  56568. +
  56569. + case $linkmode in
  56570. + lib)
  56571. + passes="conv dlpreopen link"
  56572. + for file in $dlfiles $dlprefiles; do
  56573. + case $file in
  56574. + *.la) ;;
  56575. + *)
  56576. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  56577. + ;;
  56578. + esac
  56579. + done
  56580. + ;;
  56581. + prog)
  56582. + compile_deplibs=
  56583. + finalize_deplibs=
  56584. + alldeplibs=no
  56585. + newdlfiles=
  56586. + newdlprefiles=
  56587. + passes="conv scan dlopen dlpreopen link"
  56588. + ;;
  56589. + *) passes="conv"
  56590. + ;;
  56591. + esac
  56592. +
  56593. + for pass in $passes; do
  56594. + # The preopen pass in lib mode reverses $deplibs; put it back here
  56595. + # so that -L comes before libs that need it for instance...
  56596. + if test "$linkmode,$pass" = "lib,link"; then
  56597. + ## FIXME: Find the place where the list is rebuilt in the wrong
  56598. + ## order, and fix it there properly
  56599. + tmp_deplibs=
  56600. + for deplib in $deplibs; do
  56601. + tmp_deplibs="$deplib $tmp_deplibs"
  56602. + done
  56603. + deplibs="$tmp_deplibs"
  56604. + fi
  56605. +
  56606. + if test "$linkmode,$pass" = "lib,link" ||
  56607. + test "$linkmode,$pass" = "prog,scan"; then
  56608. + libs="$deplibs"
  56609. + deplibs=
  56610. + fi
  56611. + if test "$linkmode" = prog; then
  56612. + case $pass in
  56613. + dlopen) libs="$dlfiles" ;;
  56614. + dlpreopen) libs="$dlprefiles" ;;
  56615. + link)
  56616. + libs="$deplibs %DEPLIBS%"
  56617. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  56618. + ;;
  56619. + esac
  56620. + fi
  56621. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  56622. + # Collect and forward deplibs of preopened libtool libs
  56623. + for lib in $dlprefiles; do
  56624. + # Ignore non-libtool-libs
  56625. + dependency_libs=
  56626. + case $lib in
  56627. + *.la) func_source "$lib" ;;
  56628. + esac
  56629. +
  56630. + # Collect preopened libtool deplibs, except any this library
  56631. + # has declared as weak libs
  56632. + for deplib in $dependency_libs; do
  56633. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  56634. + case " $weak_libs " in
  56635. + *" $deplib_base "*) ;;
  56636. + *) deplibs="$deplibs $deplib" ;;
  56637. + esac
  56638. + done
  56639. + done
  56640. + libs="$dlprefiles"
  56641. + fi
  56642. + if test "$pass" = dlopen; then
  56643. + # Collect dlpreopened libraries
  56644. + save_deplibs="$deplibs"
  56645. + deplibs=
  56646. + fi
  56647. +
  56648. + for deplib in $libs; do
  56649. + lib=
  56650. + found=no
  56651. + case $deplib in
  56652. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  56653. + if test "$linkmode,$pass" = "prog,link"; then
  56654. + compile_deplibs="$deplib $compile_deplibs"
  56655. + finalize_deplibs="$deplib $finalize_deplibs"
  56656. + else
  56657. + compiler_flags="$compiler_flags $deplib"
  56658. + if test "$linkmode" = lib ; then
  56659. + case "$new_inherited_linker_flags " in
  56660. + *" $deplib "*) ;;
  56661. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  56662. + esac
  56663. + fi
  56664. + fi
  56665. + continue
  56666. + ;;
  56667. + -l*)
  56668. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  56669. + func_warning "\`-l' is ignored for archives/objects"
  56670. + continue
  56671. + fi
  56672. + func_stripname '-l' '' "$deplib"
  56673. + name=$func_stripname_result
  56674. + if test "$linkmode" = lib; then
  56675. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  56676. + else
  56677. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  56678. + fi
  56679. + for searchdir in $searchdirs; do
  56680. + for search_ext in .la $std_shrext .so .a; do
  56681. + # Search the libtool library
  56682. + lib="$searchdir/lib${name}${search_ext}"
  56683. + if test -f "$lib"; then
  56684. + if test "$search_ext" = ".la"; then
  56685. + found=yes
  56686. + else
  56687. + found=no
  56688. + fi
  56689. + break 2
  56690. + fi
  56691. + done
  56692. + done
  56693. + if test "$found" != yes; then
  56694. + # deplib doesn't seem to be a libtool library
  56695. + if test "$linkmode,$pass" = "prog,link"; then
  56696. + compile_deplibs="$deplib $compile_deplibs"
  56697. + finalize_deplibs="$deplib $finalize_deplibs"
  56698. + else
  56699. + deplibs="$deplib $deplibs"
  56700. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56701. + fi
  56702. + continue
  56703. + else # deplib is a libtool library
  56704. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  56705. + # We need to do some special things here, and not later.
  56706. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56707. + case " $predeps $postdeps " in
  56708. + *" $deplib "*)
  56709. + if func_lalib_p "$lib"; then
  56710. + library_names=
  56711. + old_library=
  56712. + func_source "$lib"
  56713. + for l in $old_library $library_names; do
  56714. + ll="$l"
  56715. + done
  56716. + if test "X$ll" = "X$old_library" ; then # only static version available
  56717. + found=no
  56718. + func_dirname "$lib" "" "."
  56719. + ladir="$func_dirname_result"
  56720. + lib=$ladir/$old_library
  56721. + if test "$linkmode,$pass" = "prog,link"; then
  56722. + compile_deplibs="$deplib $compile_deplibs"
  56723. + finalize_deplibs="$deplib $finalize_deplibs"
  56724. + else
  56725. + deplibs="$deplib $deplibs"
  56726. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56727. + fi
  56728. + continue
  56729. + fi
  56730. + fi
  56731. + ;;
  56732. + *) ;;
  56733. + esac
  56734. + fi
  56735. + fi
  56736. + ;; # -l
  56737. + *.ltframework)
  56738. + if test "$linkmode,$pass" = "prog,link"; then
  56739. + compile_deplibs="$deplib $compile_deplibs"
  56740. + finalize_deplibs="$deplib $finalize_deplibs"
  56741. + else
  56742. + deplibs="$deplib $deplibs"
  56743. + if test "$linkmode" = lib ; then
  56744. + case "$new_inherited_linker_flags " in
  56745. + *" $deplib "*) ;;
  56746. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  56747. + esac
  56748. + fi
  56749. + fi
  56750. + continue
  56751. + ;;
  56752. + -L*)
  56753. + case $linkmode in
  56754. + lib)
  56755. + deplibs="$deplib $deplibs"
  56756. + test "$pass" = conv && continue
  56757. + newdependency_libs="$deplib $newdependency_libs"
  56758. + func_stripname '-L' '' "$deplib"
  56759. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56760. + ;;
  56761. + prog)
  56762. + if test "$pass" = conv; then
  56763. + deplibs="$deplib $deplibs"
  56764. + continue
  56765. + fi
  56766. + if test "$pass" = scan; then
  56767. + deplibs="$deplib $deplibs"
  56768. + else
  56769. + compile_deplibs="$deplib $compile_deplibs"
  56770. + finalize_deplibs="$deplib $finalize_deplibs"
  56771. + fi
  56772. + func_stripname '-L' '' "$deplib"
  56773. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56774. + ;;
  56775. + *)
  56776. + func_warning "\`-L' is ignored for archives/objects"
  56777. + ;;
  56778. + esac # linkmode
  56779. + continue
  56780. + ;; # -L
  56781. + -R*)
  56782. + if test "$pass" = link; then
  56783. + func_stripname '-R' '' "$deplib"
  56784. + dir=$func_stripname_result
  56785. + # Make sure the xrpath contains only unique directories.
  56786. + case "$xrpath " in
  56787. + *" $dir "*) ;;
  56788. + *) xrpath="$xrpath $dir" ;;
  56789. + esac
  56790. + fi
  56791. + deplibs="$deplib $deplibs"
  56792. + continue
  56793. + ;;
  56794. + *.la) lib="$deplib" ;;
  56795. + *.$libext)
  56796. + if test "$pass" = conv; then
  56797. + deplibs="$deplib $deplibs"
  56798. + continue
  56799. + fi
  56800. + case $linkmode in
  56801. + lib)
  56802. + # Linking convenience modules into shared libraries is allowed,
  56803. + # but linking other static libraries is non-portable.
  56804. + case " $dlpreconveniencelibs " in
  56805. + *" $deplib "*) ;;
  56806. + *)
  56807. + valid_a_lib=no
  56808. + case $deplibs_check_method in
  56809. + match_pattern*)
  56810. + set dummy $deplibs_check_method; shift
  56811. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56812. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  56813. + | $EGREP "$match_pattern_regex" > /dev/null; then
  56814. + valid_a_lib=yes
  56815. + fi
  56816. + ;;
  56817. + pass_all)
  56818. + valid_a_lib=yes
  56819. + ;;
  56820. + esac
  56821. + if test "$valid_a_lib" != yes; then
  56822. + $ECHO
  56823. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  56824. + $ECHO "*** I have the capability to make that library automatically link in when"
  56825. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56826. + $ECHO "*** shared version of the library, which you do not appear to have"
  56827. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  56828. + $ECHO "*** that it is just a static archive that I should not use here."
  56829. + else
  56830. + $ECHO
  56831. + $ECHO "*** Warning: Linking the shared library $output against the"
  56832. + $ECHO "*** static library $deplib is not portable!"
  56833. + deplibs="$deplib $deplibs"
  56834. + fi
  56835. + ;;
  56836. + esac
  56837. + continue
  56838. + ;;
  56839. + prog)
  56840. + if test "$pass" != link; then
  56841. + deplibs="$deplib $deplibs"
  56842. + else
  56843. + compile_deplibs="$deplib $compile_deplibs"
  56844. + finalize_deplibs="$deplib $finalize_deplibs"
  56845. + fi
  56846. + continue
  56847. + ;;
  56848. + esac # linkmode
  56849. + ;; # *.$libext
  56850. + *.lo | *.$objext)
  56851. + if test "$pass" = conv; then
  56852. + deplibs="$deplib $deplibs"
  56853. + elif test "$linkmode" = prog; then
  56854. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  56855. + # If there is no dlopen support or we're linking statically,
  56856. + # we need to preload.
  56857. + newdlprefiles="$newdlprefiles $deplib"
  56858. + compile_deplibs="$deplib $compile_deplibs"
  56859. + finalize_deplibs="$deplib $finalize_deplibs"
  56860. + else
  56861. + newdlfiles="$newdlfiles $deplib"
  56862. + fi
  56863. + fi
  56864. + continue
  56865. + ;;
  56866. + %DEPLIBS%)
  56867. + alldeplibs=yes
  56868. + continue
  56869. + ;;
  56870. + esac # case $deplib
  56871. +
  56872. + if test "$found" = yes || test -f "$lib"; then :
  56873. + else
  56874. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  56875. + fi
  56876. +
  56877. + # Check to see that this really is a libtool archive.
  56878. + func_lalib_unsafe_p "$lib" \
  56879. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  56880. +
  56881. + func_dirname "$lib" "" "."
  56882. + ladir="$func_dirname_result"
  56883. +
  56884. + dlname=
  56885. + dlopen=
  56886. + dlpreopen=
  56887. + libdir=
  56888. + library_names=
  56889. + old_library=
  56890. + inherited_linker_flags=
  56891. + # If the library was installed with an old release of libtool,
  56892. + # it will not redefine variables installed, or shouldnotlink
  56893. + installed=yes
  56894. + shouldnotlink=no
  56895. + avoidtemprpath=
  56896. +
  56897. +
  56898. + # Read the .la file
  56899. + func_source "$lib"
  56900. +
  56901. + # Convert "-framework foo" to "foo.ltframework"
  56902. + if test -n "$inherited_linker_flags"; then
  56903. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  56904. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  56905. + case " $new_inherited_linker_flags " in
  56906. + *" $tmp_inherited_linker_flag "*) ;;
  56907. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  56908. + esac
  56909. + done
  56910. + fi
  56911. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56912. + if test "$linkmode,$pass" = "lib,link" ||
  56913. + test "$linkmode,$pass" = "prog,scan" ||
  56914. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  56915. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  56916. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  56917. + fi
  56918. +
  56919. + if test "$pass" = conv; then
  56920. + # Only check for convenience libraries
  56921. + deplibs="$lib $deplibs"
  56922. + if test -z "$libdir"; then
  56923. + if test -z "$old_library"; then
  56924. + func_fatal_error "cannot find name of link library for \`$lib'"
  56925. + fi
  56926. + # It is a libtool convenience library, so add in its objects.
  56927. + convenience="$convenience $ladir/$objdir/$old_library"
  56928. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  56929. + tmp_libs=
  56930. + for deplib in $dependency_libs; do
  56931. + deplibs="$deplib $deplibs"
  56932. + if $opt_duplicate_deps ; then
  56933. + case "$tmp_libs " in
  56934. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56935. + esac
  56936. + fi
  56937. + tmp_libs="$tmp_libs $deplib"
  56938. + done
  56939. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  56940. + func_fatal_error "\`$lib' is not a convenience library"
  56941. + fi
  56942. + continue
  56943. + fi # $pass = conv
  56944. +
  56945. +
  56946. + # Get the name of the library we link against.
  56947. + linklib=
  56948. + for l in $old_library $library_names; do
  56949. + linklib="$l"
  56950. + done
  56951. + if test -z "$linklib"; then
  56952. + func_fatal_error "cannot find name of link library for \`$lib'"
  56953. + fi
  56954. +
  56955. + # This library was specified with -dlopen.
  56956. + if test "$pass" = dlopen; then
  56957. + if test -z "$libdir"; then
  56958. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  56959. + fi
  56960. + if test -z "$dlname" ||
  56961. + test "$dlopen_support" != yes ||
  56962. + test "$build_libtool_libs" = no; then
  56963. + # If there is no dlname, no dlopen support or we're linking
  56964. + # statically, we need to preload. We also need to preload any
  56965. + # dependent libraries so libltdl's deplib preloader doesn't
  56966. + # bomb out in the load deplibs phase.
  56967. + dlprefiles="$dlprefiles $lib $dependency_libs"
  56968. + else
  56969. + newdlfiles="$newdlfiles $lib"
  56970. + fi
  56971. + continue
  56972. + fi # $pass = dlopen
  56973. +
  56974. + # We need an absolute path.
  56975. + case $ladir in
  56976. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  56977. + *)
  56978. + abs_ladir=`cd "$ladir" && pwd`
  56979. + if test -z "$abs_ladir"; then
  56980. + func_warning "cannot determine absolute directory name of \`$ladir'"
  56981. + func_warning "passing it literally to the linker, although it might fail"
  56982. + abs_ladir="$ladir"
  56983. + fi
  56984. + ;;
  56985. + esac
  56986. + func_basename "$lib"
  56987. + laname="$func_basename_result"
  56988. +
  56989. + # Find the relevant object directory and library name.
  56990. + if test "X$installed" = Xyes; then
  56991. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  56992. + func_warning "library \`$lib' was moved."
  56993. + dir="$ladir"
  56994. + absdir="$abs_ladir"
  56995. + libdir="$abs_ladir"
  56996. + else
  56997. + dir="$libdir"
  56998. + absdir="$libdir"
  56999. + fi
  57000. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  57001. + else
  57002. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  57003. + dir="$ladir"
  57004. + absdir="$abs_ladir"
  57005. + # Remove this search path later
  57006. + notinst_path="$notinst_path $abs_ladir"
  57007. + else
  57008. + dir="$ladir/$objdir"
  57009. + absdir="$abs_ladir/$objdir"
  57010. + # Remove this search path later
  57011. + notinst_path="$notinst_path $abs_ladir"
  57012. + fi
  57013. + fi # $installed = yes
  57014. + func_stripname 'lib' '.la' "$laname"
  57015. + name=$func_stripname_result
  57016. +
  57017. + # This library was specified with -dlpreopen.
  57018. + if test "$pass" = dlpreopen; then
  57019. + if test -z "$libdir" && test "$linkmode" = prog; then
  57020. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  57021. + fi
  57022. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  57023. + # are required to link).
  57024. + if test -n "$old_library"; then
  57025. + newdlprefiles="$newdlprefiles $dir/$old_library"
  57026. + # Keep a list of preopened convenience libraries to check
  57027. + # that they are being used correctly in the link pass.
  57028. + test -z "$libdir" && \
  57029. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  57030. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  57031. + elif test -n "$dlname"; then
  57032. + newdlprefiles="$newdlprefiles $dir/$dlname"
  57033. + else
  57034. + newdlprefiles="$newdlprefiles $dir/$linklib"
  57035. + fi
  57036. + fi # $pass = dlpreopen
  57037. +
  57038. + if test -z "$libdir"; then
  57039. + # Link the convenience library
  57040. + if test "$linkmode" = lib; then
  57041. + deplibs="$dir/$old_library $deplibs"
  57042. + elif test "$linkmode,$pass" = "prog,link"; then
  57043. + compile_deplibs="$dir/$old_library $compile_deplibs"
  57044. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  57045. + else
  57046. + deplibs="$lib $deplibs" # used for prog,scan pass
  57047. + fi
  57048. + continue
  57049. + fi
  57050. +
  57051. +
  57052. + if test "$linkmode" = prog && test "$pass" != link; then
  57053. + newlib_search_path="$newlib_search_path $ladir"
  57054. + deplibs="$lib $deplibs"
  57055. +
  57056. + linkalldeplibs=no
  57057. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  57058. + test "$build_libtool_libs" = no; then
  57059. + linkalldeplibs=yes
  57060. + fi
  57061. +
  57062. + tmp_libs=
  57063. + for deplib in $dependency_libs; do
  57064. + case $deplib in
  57065. + -L*) func_stripname '-L' '' "$deplib"
  57066. + newlib_search_path="$newlib_search_path $func_stripname_result"
  57067. + ;;
  57068. + esac
  57069. + # Need to link against all dependency_libs?
  57070. + if test "$linkalldeplibs" = yes; then
  57071. + deplibs="$deplib $deplibs"
  57072. + else
  57073. + # Need to hardcode shared library paths
  57074. + # or/and link against static libraries
  57075. + newdependency_libs="$deplib $newdependency_libs"
  57076. + fi
  57077. + if $opt_duplicate_deps ; then
  57078. + case "$tmp_libs " in
  57079. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57080. + esac
  57081. + fi
  57082. + tmp_libs="$tmp_libs $deplib"
  57083. + done # for deplib
  57084. + continue
  57085. + fi # $linkmode = prog...
  57086. +
  57087. + if test "$linkmode,$pass" = "prog,link"; then
  57088. + if test -n "$library_names" &&
  57089. + { { test "$prefer_static_libs" = no ||
  57090. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  57091. + test -z "$old_library"; }; then
  57092. + # We need to hardcode the library path
  57093. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  57094. + # Make sure the rpath contains only unique directories.
  57095. + case "$temp_rpath:" in
  57096. + *"$absdir:"*) ;;
  57097. + *) temp_rpath="$temp_rpath$absdir:" ;;
  57098. + esac
  57099. + fi
  57100. +
  57101. + # Hardcode the library path.
  57102. + # Skip directories that are in the system default run-time
  57103. + # search path.
  57104. + case " $sys_lib_dlsearch_path " in
  57105. + *" $absdir "*) ;;
  57106. + *)
  57107. + case "$compile_rpath " in
  57108. + *" $absdir "*) ;;
  57109. + *) compile_rpath="$compile_rpath $absdir"
  57110. + esac
  57111. + ;;
  57112. + esac
  57113. + case " $sys_lib_dlsearch_path " in
  57114. + *" $libdir "*) ;;
  57115. + *)
  57116. + case "$finalize_rpath " in
  57117. + *" $libdir "*) ;;
  57118. + *) finalize_rpath="$finalize_rpath $libdir"
  57119. + esac
  57120. + ;;
  57121. + esac
  57122. + fi # $linkmode,$pass = prog,link...
  57123. +
  57124. + if test "$alldeplibs" = yes &&
  57125. + { test "$deplibs_check_method" = pass_all ||
  57126. + { test "$build_libtool_libs" = yes &&
  57127. + test -n "$library_names"; }; }; then
  57128. + # We only need to search for static libraries
  57129. + continue
  57130. + fi
  57131. + fi
  57132. +
  57133. + link_static=no # Whether the deplib will be linked statically
  57134. + use_static_libs=$prefer_static_libs
  57135. + if test "$use_static_libs" = built && test "$installed" = yes; then
  57136. + use_static_libs=no
  57137. + fi
  57138. + if test -n "$library_names" &&
  57139. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  57140. + case $host in
  57141. + *cygwin* | *mingw* | *cegcc*)
  57142. + # No point in relinking DLLs because paths are not encoded
  57143. + notinst_deplibs="$notinst_deplibs $lib"
  57144. + need_relink=no
  57145. + ;;
  57146. + *)
  57147. + if test "$installed" = no; then
  57148. + notinst_deplibs="$notinst_deplibs $lib"
  57149. + need_relink=yes
  57150. + fi
  57151. + ;;
  57152. + esac
  57153. + # This is a shared library
  57154. +
  57155. + # Warn about portability, can't link against -module's on some
  57156. + # systems (darwin). Don't bleat about dlopened modules though!
  57157. + dlopenmodule=""
  57158. + for dlpremoduletest in $dlprefiles; do
  57159. + if test "X$dlpremoduletest" = "X$lib"; then
  57160. + dlopenmodule="$dlpremoduletest"
  57161. + break
  57162. + fi
  57163. + done
  57164. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  57165. + $ECHO
  57166. + if test "$linkmode" = prog; then
  57167. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  57168. + else
  57169. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  57170. + fi
  57171. + $ECHO "*** $linklib is not portable!"
  57172. + fi
  57173. + if test "$linkmode" = lib &&
  57174. + test "$hardcode_into_libs" = yes; then
  57175. + # Hardcode the library path.
  57176. + # Skip directories that are in the system default run-time
  57177. + # search path.
  57178. + case " $sys_lib_dlsearch_path " in
  57179. + *" $absdir "*) ;;
  57180. + *)
  57181. + case "$compile_rpath " in
  57182. + *" $absdir "*) ;;
  57183. + *) compile_rpath="$compile_rpath $absdir"
  57184. + esac
  57185. + ;;
  57186. + esac
  57187. + case " $sys_lib_dlsearch_path " in
  57188. + *" $libdir "*) ;;
  57189. + *)
  57190. + case "$finalize_rpath " in
  57191. + *" $libdir "*) ;;
  57192. + *) finalize_rpath="$finalize_rpath $libdir"
  57193. + esac
  57194. + ;;
  57195. + esac
  57196. + fi
  57197. +
  57198. + if test -n "$old_archive_from_expsyms_cmds"; then
  57199. + # figure out the soname
  57200. + set dummy $library_names
  57201. + shift
  57202. + realname="$1"
  57203. + shift
  57204. + libname=`eval "\\$ECHO \"$libname_spec\""`
  57205. + # use dlname if we got it. it's perfectly good, no?
  57206. + if test -n "$dlname"; then
  57207. + soname="$dlname"
  57208. + elif test -n "$soname_spec"; then
  57209. + # bleh windows
  57210. + case $host in
  57211. + *cygwin* | mingw* | *cegcc*)
  57212. + func_arith $current - $age
  57213. + major=$func_arith_result
  57214. + versuffix="-$major"
  57215. + ;;
  57216. + esac
  57217. + eval soname=\"$soname_spec\"
  57218. + else
  57219. + soname="$realname"
  57220. + fi
  57221. +
  57222. + # Make a new name for the extract_expsyms_cmds to use
  57223. + soroot="$soname"
  57224. + func_basename "$soroot"
  57225. + soname="$func_basename_result"
  57226. + func_stripname 'lib' '.dll' "$soname"
  57227. + newlib=libimp-$func_stripname_result.a
  57228. +
  57229. + # If the library has no export list, then create one now
  57230. + if test -f "$output_objdir/$soname-def"; then :
  57231. + else
  57232. + func_verbose "extracting exported symbol list from \`$soname'"
  57233. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  57234. + fi
  57235. +
  57236. + # Create $newlib
  57237. + if test -f "$output_objdir/$newlib"; then :; else
  57238. + func_verbose "generating import library for \`$soname'"
  57239. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  57240. + fi
  57241. + # make sure the library variables are pointing to the new library
  57242. + dir=$output_objdir
  57243. + linklib=$newlib
  57244. + fi # test -n "$old_archive_from_expsyms_cmds"
  57245. +
  57246. + if test "$linkmode" = prog || test "$mode" != relink; then
  57247. + add_shlibpath=
  57248. + add_dir=
  57249. + add=
  57250. + lib_linked=yes
  57251. + case $hardcode_action in
  57252. + immediate | unsupported)
  57253. + if test "$hardcode_direct" = no; then
  57254. + add="$dir/$linklib"
  57255. + case $host in
  57256. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  57257. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  57258. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  57259. + *-*-unixware7*) add_dir="-L$dir" ;;
  57260. + *-*-darwin* )
  57261. + # if the lib is a (non-dlopened) module then we can not
  57262. + # link against it, someone is ignoring the earlier warnings
  57263. + if /usr/bin/file -L $add 2> /dev/null |
  57264. + $GREP ": [^:]* bundle" >/dev/null ; then
  57265. + if test "X$dlopenmodule" != "X$lib"; then
  57266. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  57267. + if test -z "$old_library" ; then
  57268. + $ECHO
  57269. + $ECHO "*** And there doesn't seem to be a static archive available"
  57270. + $ECHO "*** The link will probably fail, sorry"
  57271. + else
  57272. + add="$dir/$old_library"
  57273. + fi
  57274. + elif test -n "$old_library"; then
  57275. + add="$dir/$old_library"
  57276. + fi
  57277. + fi
  57278. + esac
  57279. + elif test "$hardcode_minus_L" = no; then
  57280. + case $host in
  57281. + *-*-sunos*) add_shlibpath="$dir" ;;
  57282. + esac
  57283. + add_dir="-L$dir"
  57284. + add="-l$name"
  57285. + elif test "$hardcode_shlibpath_var" = no; then
  57286. + add_shlibpath="$dir"
  57287. + add="-l$name"
  57288. + else
  57289. + lib_linked=no
  57290. + fi
  57291. + ;;
  57292. + relink)
  57293. + if test "$hardcode_direct" = yes &&
  57294. + test "$hardcode_direct_absolute" = no; then
  57295. + add="$dir/$linklib"
  57296. + elif test "$hardcode_minus_L" = yes; then
  57297. + add_dir="-L$dir"
  57298. + # Try looking first in the location we're being installed to.
  57299. + if test -n "$inst_prefix_dir"; then
  57300. + case $libdir in
  57301. + [\\/]*)
  57302. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57303. + ;;
  57304. + esac
  57305. + fi
  57306. + add="-l$name"
  57307. + elif test "$hardcode_shlibpath_var" = yes; then
  57308. + add_shlibpath="$dir"
  57309. + add="-l$name"
  57310. + else
  57311. + lib_linked=no
  57312. + fi
  57313. + ;;
  57314. + *) lib_linked=no ;;
  57315. + esac
  57316. +
  57317. + if test "$lib_linked" != yes; then
  57318. + func_fatal_configuration "unsupported hardcode properties"
  57319. + fi
  57320. +
  57321. + if test -n "$add_shlibpath"; then
  57322. + case :$compile_shlibpath: in
  57323. + *":$add_shlibpath:"*) ;;
  57324. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  57325. + esac
  57326. + fi
  57327. + if test "$linkmode" = prog; then
  57328. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  57329. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  57330. + else
  57331. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57332. + test -n "$add" && deplibs="$add $deplibs"
  57333. + if test "$hardcode_direct" != yes &&
  57334. + test "$hardcode_minus_L" != yes &&
  57335. + test "$hardcode_shlibpath_var" = yes; then
  57336. + case :$finalize_shlibpath: in
  57337. + *":$libdir:"*) ;;
  57338. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57339. + esac
  57340. + fi
  57341. + fi
  57342. + fi
  57343. +
  57344. + if test "$linkmode" = prog || test "$mode" = relink; then
  57345. + add_shlibpath=
  57346. + add_dir=
  57347. + add=
  57348. + # Finalize command for both is simple: just hardcode it.
  57349. + if test "$hardcode_direct" = yes &&
  57350. + test "$hardcode_direct_absolute" = no; then
  57351. + add="$libdir/$linklib"
  57352. + elif test "$hardcode_minus_L" = yes; then
  57353. + add_dir="-L$libdir"
  57354. + add="-l$name"
  57355. + elif test "$hardcode_shlibpath_var" = yes; then
  57356. + case :$finalize_shlibpath: in
  57357. + *":$libdir:"*) ;;
  57358. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57359. + esac
  57360. + add="-l$name"
  57361. + elif test "$hardcode_automatic" = yes; then
  57362. + if test -n "$inst_prefix_dir" &&
  57363. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  57364. + add="$inst_prefix_dir$libdir/$linklib"
  57365. + else
  57366. + add="$libdir/$linklib"
  57367. + fi
  57368. + else
  57369. + # We cannot seem to hardcode it, guess we'll fake it.
  57370. + add_dir="-L$libdir"
  57371. + # Try looking first in the location we're being installed to.
  57372. + if test -n "$inst_prefix_dir"; then
  57373. + case $libdir in
  57374. + [\\/]*)
  57375. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57376. + ;;
  57377. + esac
  57378. + fi
  57379. + add="-l$name"
  57380. + fi
  57381. +
  57382. + if test "$linkmode" = prog; then
  57383. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  57384. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  57385. + else
  57386. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57387. + test -n "$add" && deplibs="$add $deplibs"
  57388. + fi
  57389. + fi
  57390. + elif test "$linkmode" = prog; then
  57391. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  57392. + # is not unsupported. This is valid on all known static and
  57393. + # shared platforms.
  57394. + if test "$hardcode_direct" != unsupported; then
  57395. + test -n "$old_library" && linklib="$old_library"
  57396. + compile_deplibs="$dir/$linklib $compile_deplibs"
  57397. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  57398. + else
  57399. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  57400. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  57401. + fi
  57402. + elif test "$build_libtool_libs" = yes; then
  57403. + # Not a shared library
  57404. + if test "$deplibs_check_method" != pass_all; then
  57405. + # We're trying link a shared library against a static one
  57406. + # but the system doesn't support it.
  57407. +
  57408. + # Just print a warning and add the library to dependency_libs so
  57409. + # that the program can be linked against the static library.
  57410. + $ECHO
  57411. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  57412. + $ECHO "*** I have the capability to make that library automatically link in when"
  57413. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57414. + $ECHO "*** shared version of the library, which you do not appear to have."
  57415. + if test "$module" = yes; then
  57416. + $ECHO "*** But as you try to build a module library, libtool will still create "
  57417. + $ECHO "*** a static module, that should work as long as the dlopening application"
  57418. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  57419. + if test -z "$global_symbol_pipe"; then
  57420. + $ECHO
  57421. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  57422. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  57423. + $ECHO "*** not find such a program. So, this module is probably useless."
  57424. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  57425. + fi
  57426. + if test "$build_old_libs" = no; then
  57427. + build_libtool_libs=module
  57428. + build_old_libs=yes
  57429. + else
  57430. + build_libtool_libs=no
  57431. + fi
  57432. + fi
  57433. + else
  57434. + deplibs="$dir/$old_library $deplibs"
  57435. + link_static=yes
  57436. + fi
  57437. + fi # link shared/static library?
  57438. +
  57439. + if test "$linkmode" = lib; then
  57440. + if test -n "$dependency_libs" &&
  57441. + { test "$hardcode_into_libs" != yes ||
  57442. + test "$build_old_libs" = yes ||
  57443. + test "$link_static" = yes; }; then
  57444. + # Extract -R from dependency_libs
  57445. + temp_deplibs=
  57446. + for libdir in $dependency_libs; do
  57447. + case $libdir in
  57448. + -R*) func_stripname '-R' '' "$libdir"
  57449. + temp_xrpath=$func_stripname_result
  57450. + case " $xrpath " in
  57451. + *" $temp_xrpath "*) ;;
  57452. + *) xrpath="$xrpath $temp_xrpath";;
  57453. + esac;;
  57454. + *) temp_deplibs="$temp_deplibs $libdir";;
  57455. + esac
  57456. + done
  57457. + dependency_libs="$temp_deplibs"
  57458. + fi
  57459. +
  57460. + newlib_search_path="$newlib_search_path $absdir"
  57461. + # Link against this library
  57462. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  57463. + # ... and its dependency_libs
  57464. + tmp_libs=
  57465. + for deplib in $dependency_libs; do
  57466. + newdependency_libs="$deplib $newdependency_libs"
  57467. + if $opt_duplicate_deps ; then
  57468. + case "$tmp_libs " in
  57469. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57470. + esac
  57471. + fi
  57472. + tmp_libs="$tmp_libs $deplib"
  57473. + done
  57474. +
  57475. + if test "$link_all_deplibs" != no; then
  57476. + # Add the search paths of all dependency libraries
  57477. + for deplib in $dependency_libs; do
  57478. + path=
  57479. + case $deplib in
  57480. + -L*) path="$deplib" ;;
  57481. + *.la)
  57482. + func_dirname "$deplib" "" "."
  57483. + dir="$func_dirname_result"
  57484. + # We need an absolute path.
  57485. + case $dir in
  57486. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  57487. + *)
  57488. + absdir=`cd "$dir" && pwd`
  57489. + if test -z "$absdir"; then
  57490. + func_warning "cannot determine absolute directory name of \`$dir'"
  57491. + absdir="$dir"
  57492. + fi
  57493. + ;;
  57494. + esac
  57495. + if $GREP "^installed=no" $deplib > /dev/null; then
  57496. + case $host in
  57497. + *-*-darwin*)
  57498. + depdepl=
  57499. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  57500. + if test -n "$deplibrary_names" ; then
  57501. + for tmp in $deplibrary_names ; do
  57502. + depdepl=$tmp
  57503. + done
  57504. + if test -f "$absdir/$objdir/$depdepl" ; then
  57505. + depdepl="$absdir/$objdir/$depdepl"
  57506. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57507. + if test -z "$darwin_install_name"; then
  57508. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57509. + fi
  57510. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  57511. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  57512. + path=
  57513. + fi
  57514. + fi
  57515. + ;;
  57516. + *)
  57517. + path="-L$absdir/$objdir"
  57518. + ;;
  57519. + esac
  57520. + else
  57521. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57522. + test -z "$libdir" && \
  57523. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  57524. + test "$absdir" != "$libdir" && \
  57525. + func_warning "\`$deplib' seems to be moved"
  57526. +
  57527. + path="-L$absdir"
  57528. + fi
  57529. + ;;
  57530. + esac
  57531. + case " $deplibs " in
  57532. + *" $path "*) ;;
  57533. + *) deplibs="$path $deplibs" ;;
  57534. + esac
  57535. + done
  57536. + fi # link_all_deplibs != no
  57537. + fi # linkmode = lib
  57538. + done # for deplib in $libs
  57539. + if test "$pass" = link; then
  57540. + if test "$linkmode" = "prog"; then
  57541. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  57542. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  57543. + else
  57544. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57545. + fi
  57546. + fi
  57547. + dependency_libs="$newdependency_libs"
  57548. + if test "$pass" = dlpreopen; then
  57549. + # Link the dlpreopened libraries before other libraries
  57550. + for deplib in $save_deplibs; do
  57551. + deplibs="$deplib $deplibs"
  57552. + done
  57553. + fi
  57554. + if test "$pass" != dlopen; then
  57555. + if test "$pass" != conv; then
  57556. + # Make sure lib_search_path contains only unique directories.
  57557. + lib_search_path=
  57558. + for dir in $newlib_search_path; do
  57559. + case "$lib_search_path " in
  57560. + *" $dir "*) ;;
  57561. + *) lib_search_path="$lib_search_path $dir" ;;
  57562. + esac
  57563. + done
  57564. + newlib_search_path=
  57565. + fi
  57566. +
  57567. + if test "$linkmode,$pass" != "prog,link"; then
  57568. + vars="deplibs"
  57569. + else
  57570. + vars="compile_deplibs finalize_deplibs"
  57571. + fi
  57572. + for var in $vars dependency_libs; do
  57573. + # Add libraries to $var in reverse order
  57574. + eval tmp_libs=\"\$$var\"
  57575. + new_libs=
  57576. + for deplib in $tmp_libs; do
  57577. + # FIXME: Pedantically, this is the right thing to do, so
  57578. + # that some nasty dependency loop isn't accidentally
  57579. + # broken:
  57580. + #new_libs="$deplib $new_libs"
  57581. + # Pragmatically, this seems to cause very few problems in
  57582. + # practice:
  57583. + case $deplib in
  57584. + -L*) new_libs="$deplib $new_libs" ;;
  57585. + -R*) ;;
  57586. + *)
  57587. + # And here is the reason: when a library appears more
  57588. + # than once as an explicit dependence of a library, or
  57589. + # is implicitly linked in more than once by the
  57590. + # compiler, it is considered special, and multiple
  57591. + # occurrences thereof are not removed. Compare this
  57592. + # with having the same library being listed as a
  57593. + # dependency of multiple other libraries: in this case,
  57594. + # we know (pedantically, we assume) the library does not
  57595. + # need to be listed more than once, so we keep only the
  57596. + # last copy. This is not always right, but it is rare
  57597. + # enough that we require users that really mean to play
  57598. + # such unportable linking tricks to link the library
  57599. + # using -Wl,-lname, so that libtool does not consider it
  57600. + # for duplicate removal.
  57601. + case " $specialdeplibs " in
  57602. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  57603. + *)
  57604. + case " $new_libs " in
  57605. + *" $deplib "*) ;;
  57606. + *) new_libs="$deplib $new_libs" ;;
  57607. + esac
  57608. + ;;
  57609. + esac
  57610. + ;;
  57611. + esac
  57612. + done
  57613. + tmp_libs=
  57614. + for deplib in $new_libs; do
  57615. + case $deplib in
  57616. + -L*)
  57617. + case " $tmp_libs " in
  57618. + *" $deplib "*) ;;
  57619. + *) tmp_libs="$tmp_libs $deplib" ;;
  57620. + esac
  57621. + ;;
  57622. + *) tmp_libs="$tmp_libs $deplib" ;;
  57623. + esac
  57624. + done
  57625. + eval $var=\"$tmp_libs\"
  57626. + done # for var
  57627. + fi
  57628. + # Last step: remove runtime libs from dependency_libs
  57629. + # (they stay in deplibs)
  57630. + tmp_libs=
  57631. + for i in $dependency_libs ; do
  57632. + case " $predeps $postdeps $compiler_lib_search_path " in
  57633. + *" $i "*)
  57634. + i=""
  57635. + ;;
  57636. + esac
  57637. + if test -n "$i" ; then
  57638. + tmp_libs="$tmp_libs $i"
  57639. + fi
  57640. + done
  57641. + dependency_libs=$tmp_libs
  57642. + done # for pass
  57643. + if test "$linkmode" = prog; then
  57644. + dlfiles="$newdlfiles"
  57645. + fi
  57646. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  57647. + dlprefiles="$newdlprefiles"
  57648. + fi
  57649. +
  57650. + case $linkmode in
  57651. + oldlib)
  57652. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57653. + func_warning "\`-dlopen' is ignored for archives"
  57654. + fi
  57655. +
  57656. + case " $deplibs" in
  57657. + *\ -l* | *\ -L*)
  57658. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  57659. + esac
  57660. +
  57661. + test -n "$rpath" && \
  57662. + func_warning "\`-rpath' is ignored for archives"
  57663. +
  57664. + test -n "$xrpath" && \
  57665. + func_warning "\`-R' is ignored for archives"
  57666. +
  57667. + test -n "$vinfo" && \
  57668. + func_warning "\`-version-info/-version-number' is ignored for archives"
  57669. +
  57670. + test -n "$release" && \
  57671. + func_warning "\`-release' is ignored for archives"
  57672. +
  57673. + test -n "$export_symbols$export_symbols_regex" && \
  57674. + func_warning "\`-export-symbols' is ignored for archives"
  57675. +
  57676. + # Now set the variables for building old libraries.
  57677. + build_libtool_libs=no
  57678. + oldlibs="$output"
  57679. + objs="$objs$old_deplibs"
  57680. + ;;
  57681. +
  57682. + lib)
  57683. + # Make sure we only generate libraries of the form `libNAME.la'.
  57684. + case $outputname in
  57685. + lib*)
  57686. + func_stripname 'lib' '.la' "$outputname"
  57687. + name=$func_stripname_result
  57688. + eval shared_ext=\"$shrext_cmds\"
  57689. + eval libname=\"$libname_spec\"
  57690. + ;;
  57691. + *)
  57692. + test "$module" = no && \
  57693. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  57694. +
  57695. + if test "$need_lib_prefix" != no; then
  57696. + # Add the "lib" prefix for modules if required
  57697. + func_stripname '' '.la' "$outputname"
  57698. + name=$func_stripname_result
  57699. + eval shared_ext=\"$shrext_cmds\"
  57700. + eval libname=\"$libname_spec\"
  57701. + else
  57702. + func_stripname '' '.la' "$outputname"
  57703. + libname=$func_stripname_result
  57704. + fi
  57705. + ;;
  57706. + esac
  57707. +
  57708. + if test -n "$objs"; then
  57709. + if test "$deplibs_check_method" != pass_all; then
  57710. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  57711. + else
  57712. + $ECHO
  57713. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  57714. + $ECHO "*** objects $objs is not portable!"
  57715. + libobjs="$libobjs $objs"
  57716. + fi
  57717. + fi
  57718. +
  57719. + test "$dlself" != no && \
  57720. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  57721. +
  57722. + set dummy $rpath
  57723. + shift
  57724. + test "$#" -gt 1 && \
  57725. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  57726. +
  57727. + install_libdir="$1"
  57728. +
  57729. + oldlibs=
  57730. + if test -z "$rpath"; then
  57731. + if test "$build_libtool_libs" = yes; then
  57732. + # Building a libtool convenience library.
  57733. + # Some compilers have problems with a `.al' extension so
  57734. + # convenience libraries should have the same extension an
  57735. + # archive normally would.
  57736. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  57737. + build_libtool_libs=convenience
  57738. + build_old_libs=yes
  57739. + fi
  57740. +
  57741. + test -n "$vinfo" && \
  57742. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  57743. +
  57744. + test -n "$release" && \
  57745. + func_warning "\`-release' is ignored for convenience libraries"
  57746. + else
  57747. +
  57748. + # Parse the version information argument.
  57749. + save_ifs="$IFS"; IFS=':'
  57750. + set dummy $vinfo 0 0 0
  57751. + shift
  57752. + IFS="$save_ifs"
  57753. +
  57754. + test -n "$7" && \
  57755. + func_fatal_help "too many parameters to \`-version-info'"
  57756. +
  57757. + # convert absolute version numbers to libtool ages
  57758. + # this retains compatibility with .la files and attempts
  57759. + # to make the code below a bit more comprehensible
  57760. +
  57761. + case $vinfo_number in
  57762. + yes)
  57763. + number_major="$1"
  57764. + number_minor="$2"
  57765. + number_revision="$3"
  57766. + #
  57767. + # There are really only two kinds -- those that
  57768. + # use the current revision as the major version
  57769. + # and those that subtract age and use age as
  57770. + # a minor version. But, then there is irix
  57771. + # which has an extra 1 added just for fun
  57772. + #
  57773. + case $version_type in
  57774. + darwin|linux|osf|windows|none)
  57775. + func_arith $number_major + $number_minor
  57776. + current=$func_arith_result
  57777. + age="$number_minor"
  57778. + revision="$number_revision"
  57779. + ;;
  57780. + freebsd-aout|freebsd-elf|sunos)
  57781. + current="$number_major"
  57782. + revision="$number_minor"
  57783. + age="0"
  57784. + ;;
  57785. + irix|nonstopux)
  57786. + func_arith $number_major + $number_minor
  57787. + current=$func_arith_result
  57788. + age="$number_minor"
  57789. + revision="$number_minor"
  57790. + lt_irix_increment=no
  57791. + ;;
  57792. + *)
  57793. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  57794. + ;;
  57795. + esac
  57796. + ;;
  57797. + no)
  57798. + current="$1"
  57799. + revision="$2"
  57800. + age="$3"
  57801. + ;;
  57802. + esac
  57803. +
  57804. + # Check that each of the things are valid numbers.
  57805. + case $current in
  57806. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  57807. + *)
  57808. + func_error "CURRENT \`$current' must be a nonnegative integer"
  57809. + func_fatal_error "\`$vinfo' is not valid version information"
  57810. + ;;
  57811. + esac
  57812. +
  57813. + case $revision in
  57814. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  57815. + *)
  57816. + func_error "REVISION \`$revision' must be a nonnegative integer"
  57817. + func_fatal_error "\`$vinfo' is not valid version information"
  57818. + ;;
  57819. + esac
  57820. +
  57821. + case $age in
  57822. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  57823. + *)
  57824. + func_error "AGE \`$age' must be a nonnegative integer"
  57825. + func_fatal_error "\`$vinfo' is not valid version information"
  57826. + ;;
  57827. + esac
  57828. +
  57829. + if test "$age" -gt "$current"; then
  57830. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  57831. + func_fatal_error "\`$vinfo' is not valid version information"
  57832. + fi
  57833. +
  57834. + # Calculate the version variables.
  57835. + major=
  57836. + versuffix=
  57837. + verstring=
  57838. + case $version_type in
  57839. + none) ;;
  57840. +
  57841. + darwin)
  57842. + # Like Linux, but with the current version available in
  57843. + # verstring for coding it into the library header
  57844. + func_arith $current - $age
  57845. + major=.$func_arith_result
  57846. + versuffix="$major.$age.$revision"
  57847. + # Darwin ld doesn't like 0 for these options...
  57848. + func_arith $current + 1
  57849. + minor_current=$func_arith_result
  57850. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  57851. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  57852. + ;;
  57853. +
  57854. + freebsd-aout)
  57855. + major=".$current"
  57856. + versuffix=".$current.$revision";
  57857. + ;;
  57858. +
  57859. + freebsd-elf)
  57860. + major=".$current"
  57861. + versuffix=".$current"
  57862. + ;;
  57863. +
  57864. + irix | nonstopux)
  57865. + if test "X$lt_irix_increment" = "Xno"; then
  57866. + func_arith $current - $age
  57867. + else
  57868. + func_arith $current - $age + 1
  57869. + fi
  57870. + major=$func_arith_result
  57871. +
  57872. + case $version_type in
  57873. + nonstopux) verstring_prefix=nonstopux ;;
  57874. + *) verstring_prefix=sgi ;;
  57875. + esac
  57876. + verstring="$verstring_prefix$major.$revision"
  57877. +
  57878. + # Add in all the interfaces that we are compatible with.
  57879. + loop=$revision
  57880. + while test "$loop" -ne 0; do
  57881. + func_arith $revision - $loop
  57882. + iface=$func_arith_result
  57883. + func_arith $loop - 1
  57884. + loop=$func_arith_result
  57885. + verstring="$verstring_prefix$major.$iface:$verstring"
  57886. + done
  57887. +
  57888. + # Before this point, $major must not contain `.'.
  57889. + major=.$major
  57890. + versuffix="$major.$revision"
  57891. + ;;
  57892. +
  57893. + linux)
  57894. + func_arith $current - $age
  57895. + major=.$func_arith_result
  57896. + versuffix="$major.$age.$revision"
  57897. + ;;
  57898. +
  57899. + osf)
  57900. + func_arith $current - $age
  57901. + major=.$func_arith_result
  57902. + versuffix=".$current.$age.$revision"
  57903. + verstring="$current.$age.$revision"
  57904. +
  57905. + # Add in all the interfaces that we are compatible with.
  57906. + loop=$age
  57907. + while test "$loop" -ne 0; do
  57908. + func_arith $current - $loop
  57909. + iface=$func_arith_result
  57910. + func_arith $loop - 1
  57911. + loop=$func_arith_result
  57912. + verstring="$verstring:${iface}.0"
  57913. + done
  57914. +
  57915. + # Make executables depend on our current version.
  57916. + verstring="$verstring:${current}.0"
  57917. + ;;
  57918. +
  57919. + qnx)
  57920. + major=".$current"
  57921. + versuffix=".$current"
  57922. + ;;
  57923. +
  57924. + sunos)
  57925. + major=".$current"
  57926. + versuffix=".$current.$revision"
  57927. + ;;
  57928. +
  57929. + windows)
  57930. + # Use '-' rather than '.', since we only want one
  57931. + # extension on DOS 8.3 filesystems.
  57932. + func_arith $current - $age
  57933. + major=$func_arith_result
  57934. + versuffix="-$major"
  57935. + ;;
  57936. +
  57937. + *)
  57938. + func_fatal_configuration "unknown library version type \`$version_type'"
  57939. + ;;
  57940. + esac
  57941. +
  57942. + # Clear the version info if we defaulted, and they specified a release.
  57943. + if test -z "$vinfo" && test -n "$release"; then
  57944. + major=
  57945. + case $version_type in
  57946. + darwin)
  57947. + # we can't check for "0.0" in archive_cmds due to quoting
  57948. + # problems, so we reset it completely
  57949. + verstring=
  57950. + ;;
  57951. + *)
  57952. + verstring="0.0"
  57953. + ;;
  57954. + esac
  57955. + if test "$need_version" = no; then
  57956. + versuffix=
  57957. + else
  57958. + versuffix=".0.0"
  57959. + fi
  57960. + fi
  57961. +
  57962. + # Remove version info from name if versioning should be avoided
  57963. + if test "$avoid_version" = yes && test "$need_version" = no; then
  57964. + major=
  57965. + versuffix=
  57966. + verstring=""
  57967. + fi
  57968. +
  57969. + # Check to see if the archive will have undefined symbols.
  57970. + if test "$allow_undefined" = yes; then
  57971. + if test "$allow_undefined_flag" = unsupported; then
  57972. + func_warning "undefined symbols not allowed in $host shared libraries"
  57973. + build_libtool_libs=no
  57974. + build_old_libs=yes
  57975. + fi
  57976. + else
  57977. + # Don't allow undefined symbols.
  57978. + allow_undefined_flag="$no_undefined_flag"
  57979. + fi
  57980. +
  57981. + fi
  57982. +
  57983. + func_generate_dlsyms "$libname" "$libname" "yes"
  57984. + libobjs="$libobjs $symfileobj"
  57985. + test "X$libobjs" = "X " && libobjs=
  57986. +
  57987. + if test "$mode" != relink; then
  57988. + # Remove our outputs, but don't remove object files since they
  57989. + # may have been created when compiling PIC objects.
  57990. + removelist=
  57991. + tempremovelist=`$ECHO "$output_objdir/*"`
  57992. + for p in $tempremovelist; do
  57993. + case $p in
  57994. + *.$objext | *.gcno)
  57995. + ;;
  57996. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  57997. + if test "X$precious_files_regex" != "X"; then
  57998. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  57999. + then
  58000. + continue
  58001. + fi
  58002. + fi
  58003. + removelist="$removelist $p"
  58004. + ;;
  58005. + *) ;;
  58006. + esac
  58007. + done
  58008. + test -n "$removelist" && \
  58009. + func_show_eval "${RM}r \$removelist"
  58010. + fi
  58011. +
  58012. + # Now set the variables for building old libraries.
  58013. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  58014. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  58015. +
  58016. + # Transform .lo files to .o files.
  58017. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  58018. + fi
  58019. +
  58020. + # Eliminate all temporary directories.
  58021. + #for path in $notinst_path; do
  58022. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  58023. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  58024. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  58025. + #done
  58026. +
  58027. + if test -n "$xrpath"; then
  58028. + # If the user specified any rpath flags, then add them.
  58029. + temp_xrpath=
  58030. + for libdir in $xrpath; do
  58031. + temp_xrpath="$temp_xrpath -R$libdir"
  58032. + case "$finalize_rpath " in
  58033. + *" $libdir "*) ;;
  58034. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  58035. + esac
  58036. + done
  58037. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  58038. + dependency_libs="$temp_xrpath $dependency_libs"
  58039. + fi
  58040. + fi
  58041. +
  58042. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  58043. + old_dlfiles="$dlfiles"
  58044. + dlfiles=
  58045. + for lib in $old_dlfiles; do
  58046. + case " $dlprefiles $dlfiles " in
  58047. + *" $lib "*) ;;
  58048. + *) dlfiles="$dlfiles $lib" ;;
  58049. + esac
  58050. + done
  58051. +
  58052. + # Make sure dlprefiles contains only unique files
  58053. + old_dlprefiles="$dlprefiles"
  58054. + dlprefiles=
  58055. + for lib in $old_dlprefiles; do
  58056. + case "$dlprefiles " in
  58057. + *" $lib "*) ;;
  58058. + *) dlprefiles="$dlprefiles $lib" ;;
  58059. + esac
  58060. + done
  58061. +
  58062. + if test "$build_libtool_libs" = yes; then
  58063. + if test -n "$rpath"; then
  58064. + case $host in
  58065. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  58066. + # these systems don't actually have a c library (as such)!
  58067. + ;;
  58068. + *-*-rhapsody* | *-*-darwin1.[012])
  58069. + # Rhapsody C library is in the System framework
  58070. + deplibs="$deplibs System.ltframework"
  58071. + ;;
  58072. + *-*-netbsd*)
  58073. + # Don't link with libc until the a.out ld.so is fixed.
  58074. + ;;
  58075. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  58076. + # Do not include libc due to us having libc/libc_r.
  58077. + ;;
  58078. + *-*-sco3.2v5* | *-*-sco5v6*)
  58079. + # Causes problems with __ctype
  58080. + ;;
  58081. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  58082. + # Compiler inserts libc in the correct place for threads to work
  58083. + ;;
  58084. + *)
  58085. + # Add libc to deplibs on all other systems if necessary.
  58086. + if test "$build_libtool_need_lc" = "yes"; then
  58087. + deplibs="$deplibs -lc"
  58088. + fi
  58089. + ;;
  58090. + esac
  58091. + fi
  58092. +
  58093. + # Transform deplibs into only deplibs that can be linked in shared.
  58094. + name_save=$name
  58095. + libname_save=$libname
  58096. + release_save=$release
  58097. + versuffix_save=$versuffix
  58098. + major_save=$major
  58099. + # I'm not sure if I'm treating the release correctly. I think
  58100. + # release should show up in the -l (ie -lgmp5) so we don't want to
  58101. + # add it in twice. Is that correct?
  58102. + release=""
  58103. + versuffix=""
  58104. + major=""
  58105. + newdeplibs=
  58106. + droppeddeps=no
  58107. + case $deplibs_check_method in
  58108. + pass_all)
  58109. + # Don't check for shared/static. Everything works.
  58110. + # This might be a little naive. We might want to check
  58111. + # whether the library exists or not. But this is on
  58112. + # osf3 & osf4 and I'm not really sure... Just
  58113. + # implementing what was already the behavior.
  58114. + newdeplibs=$deplibs
  58115. + ;;
  58116. + test_compile)
  58117. + # This code stresses the "libraries are programs" paradigm to its
  58118. + # limits. Maybe even breaks it. We compile a program, linking it
  58119. + # against the deplibs as a proxy for the library. Then we can check
  58120. + # whether they linked in statically or dynamically with ldd.
  58121. + $opt_dry_run || $RM conftest.c
  58122. + cat > conftest.c <<EOF
  58123. + int main() { return 0; }
  58124. +EOF
  58125. + $opt_dry_run || $RM conftest
  58126. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  58127. + ldd_output=`ldd conftest`
  58128. + for i in $deplibs; do
  58129. + case $i in
  58130. + -l*)
  58131. + func_stripname -l '' "$i"
  58132. + name=$func_stripname_result
  58133. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58134. + case " $predeps $postdeps " in
  58135. + *" $i "*)
  58136. + newdeplibs="$newdeplibs $i"
  58137. + i=""
  58138. + ;;
  58139. + esac
  58140. + fi
  58141. + if test -n "$i" ; then
  58142. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58143. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58144. + set dummy $deplib_matches; shift
  58145. + deplib_match=$1
  58146. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58147. + newdeplibs="$newdeplibs $i"
  58148. + else
  58149. + droppeddeps=yes
  58150. + $ECHO
  58151. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58152. + $ECHO "*** I have the capability to make that library automatically link in when"
  58153. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58154. + $ECHO "*** shared version of the library, which I believe you do not have"
  58155. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  58156. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  58157. + fi
  58158. + fi
  58159. + ;;
  58160. + *)
  58161. + newdeplibs="$newdeplibs $i"
  58162. + ;;
  58163. + esac
  58164. + done
  58165. + else
  58166. + # Error occurred in the first compile. Let's try to salvage
  58167. + # the situation: Compile a separate program for each library.
  58168. + for i in $deplibs; do
  58169. + case $i in
  58170. + -l*)
  58171. + func_stripname -l '' "$i"
  58172. + name=$func_stripname_result
  58173. + $opt_dry_run || $RM conftest
  58174. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  58175. + ldd_output=`ldd conftest`
  58176. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58177. + case " $predeps $postdeps " in
  58178. + *" $i "*)
  58179. + newdeplibs="$newdeplibs $i"
  58180. + i=""
  58181. + ;;
  58182. + esac
  58183. + fi
  58184. + if test -n "$i" ; then
  58185. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58186. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58187. + set dummy $deplib_matches; shift
  58188. + deplib_match=$1
  58189. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58190. + newdeplibs="$newdeplibs $i"
  58191. + else
  58192. + droppeddeps=yes
  58193. + $ECHO
  58194. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58195. + $ECHO "*** I have the capability to make that library automatically link in when"
  58196. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58197. + $ECHO "*** shared version of the library, which you do not appear to have"
  58198. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  58199. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  58200. + fi
  58201. + fi
  58202. + else
  58203. + droppeddeps=yes
  58204. + $ECHO
  58205. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  58206. + $ECHO "*** make it link in! You will probably need to install it or some"
  58207. + $ECHO "*** library that it depends on before this library will be fully"
  58208. + $ECHO "*** functional. Installing it before continuing would be even better."
  58209. + fi
  58210. + ;;
  58211. + *)
  58212. + newdeplibs="$newdeplibs $i"
  58213. + ;;
  58214. + esac
  58215. + done
  58216. + fi
  58217. + ;;
  58218. + file_magic*)
  58219. + set dummy $deplibs_check_method; shift
  58220. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58221. + for a_deplib in $deplibs; do
  58222. + case $a_deplib in
  58223. + -l*)
  58224. + func_stripname -l '' "$a_deplib"
  58225. + name=$func_stripname_result
  58226. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58227. + case " $predeps $postdeps " in
  58228. + *" $a_deplib "*)
  58229. + newdeplibs="$newdeplibs $a_deplib"
  58230. + a_deplib=""
  58231. + ;;
  58232. + esac
  58233. + fi
  58234. + if test -n "$a_deplib" ; then
  58235. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58236. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58237. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58238. + for potent_lib in $potential_libs; do
  58239. + # Follow soft links.
  58240. + if ls -lLd "$potent_lib" 2>/dev/null |
  58241. + $GREP " -> " >/dev/null; then
  58242. + continue
  58243. + fi
  58244. + # The statement above tries to avoid entering an
  58245. + # endless loop below, in case of cyclic links.
  58246. + # We might still enter an endless loop, since a link
  58247. + # loop can be closed while we follow links,
  58248. + # but so what?
  58249. + potlib="$potent_lib"
  58250. + while test -h "$potlib" 2>/dev/null; do
  58251. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  58252. + case $potliblink in
  58253. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  58254. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  58255. + esac
  58256. + done
  58257. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  58258. + $SED -e 10q |
  58259. + $EGREP "$file_magic_regex" > /dev/null; then
  58260. + newdeplibs="$newdeplibs $a_deplib"
  58261. + a_deplib=""
  58262. + break 2
  58263. + fi
  58264. + done
  58265. + done
  58266. + fi
  58267. + if test -n "$a_deplib" ; then
  58268. + droppeddeps=yes
  58269. + $ECHO
  58270. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  58271. + $ECHO "*** I have the capability to make that library automatically link in when"
  58272. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58273. + $ECHO "*** shared version of the library, which you do not appear to have"
  58274. + $ECHO "*** because I did check the linker path looking for a file starting"
  58275. + if test -z "$potlib" ; then
  58276. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  58277. + else
  58278. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  58279. + $ECHO "*** using a file magic. Last file checked: $potlib"
  58280. + fi
  58281. + fi
  58282. + ;;
  58283. + *)
  58284. + # Add a -L argument.
  58285. + newdeplibs="$newdeplibs $a_deplib"
  58286. + ;;
  58287. + esac
  58288. + done # Gone through all deplibs.
  58289. + ;;
  58290. + match_pattern*)
  58291. + set dummy $deplibs_check_method; shift
  58292. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58293. + for a_deplib in $deplibs; do
  58294. + case $a_deplib in
  58295. + -l*)
  58296. + func_stripname -l '' "$a_deplib"
  58297. + name=$func_stripname_result
  58298. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58299. + case " $predeps $postdeps " in
  58300. + *" $a_deplib "*)
  58301. + newdeplibs="$newdeplibs $a_deplib"
  58302. + a_deplib=""
  58303. + ;;
  58304. + esac
  58305. + fi
  58306. + if test -n "$a_deplib" ; then
  58307. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58308. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58309. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58310. + for potent_lib in $potential_libs; do
  58311. + potlib="$potent_lib" # see symlink-check above in file_magic test
  58312. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  58313. + $EGREP "$match_pattern_regex" > /dev/null; then
  58314. + newdeplibs="$newdeplibs $a_deplib"
  58315. + a_deplib=""
  58316. + break 2
  58317. + fi
  58318. + done
  58319. + done
  58320. + fi
  58321. + if test -n "$a_deplib" ; then
  58322. + droppeddeps=yes
  58323. + $ECHO
  58324. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  58325. + $ECHO "*** I have the capability to make that library automatically link in when"
  58326. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58327. + $ECHO "*** shared version of the library, which you do not appear to have"
  58328. + $ECHO "*** because I did check the linker path looking for a file starting"
  58329. + if test -z "$potlib" ; then
  58330. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  58331. + else
  58332. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  58333. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  58334. + fi
  58335. + fi
  58336. + ;;
  58337. + *)
  58338. + # Add a -L argument.
  58339. + newdeplibs="$newdeplibs $a_deplib"
  58340. + ;;
  58341. + esac
  58342. + done # Gone through all deplibs.
  58343. + ;;
  58344. + none | unknown | *)
  58345. + newdeplibs=""
  58346. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  58347. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  58348. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58349. + for i in $predeps $postdeps ; do
  58350. + # can't use Xsed below, because $i might contain '/'
  58351. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  58352. + done
  58353. + fi
  58354. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  58355. + $GREP . >/dev/null; then
  58356. + $ECHO
  58357. + if test "X$deplibs_check_method" = "Xnone"; then
  58358. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  58359. + else
  58360. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  58361. + fi
  58362. + $ECHO "*** All declared inter-library dependencies are being dropped."
  58363. + droppeddeps=yes
  58364. + fi
  58365. + ;;
  58366. + esac
  58367. + versuffix=$versuffix_save
  58368. + major=$major_save
  58369. + release=$release_save
  58370. + libname=$libname_save
  58371. + name=$name_save
  58372. +
  58373. + case $host in
  58374. + *-*-rhapsody* | *-*-darwin1.[012])
  58375. + # On Rhapsody replace the C library with the System framework
  58376. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  58377. + ;;
  58378. + esac
  58379. +
  58380. + if test "$droppeddeps" = yes; then
  58381. + if test "$module" = yes; then
  58382. + $ECHO
  58383. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  58384. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  58385. + $ECHO "*** a static module, that should work as long as the dlopening"
  58386. + $ECHO "*** application is linked with the -dlopen flag."
  58387. + if test -z "$global_symbol_pipe"; then
  58388. + $ECHO
  58389. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  58390. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  58391. + $ECHO "*** not find such a program. So, this module is probably useless."
  58392. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  58393. + fi
  58394. + if test "$build_old_libs" = no; then
  58395. + oldlibs="$output_objdir/$libname.$libext"
  58396. + build_libtool_libs=module
  58397. + build_old_libs=yes
  58398. + else
  58399. + build_libtool_libs=no
  58400. + fi
  58401. + else
  58402. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  58403. + $ECHO "*** automatically added whenever a program is linked with this library"
  58404. + $ECHO "*** or is declared to -dlopen it."
  58405. +
  58406. + if test "$allow_undefined" = no; then
  58407. + $ECHO
  58408. + $ECHO "*** Since this library must not contain undefined symbols,"
  58409. + $ECHO "*** because either the platform does not support them or"
  58410. + $ECHO "*** it was explicitly requested with -no-undefined,"
  58411. + $ECHO "*** libtool will only create a static version of it."
  58412. + if test "$build_old_libs" = no; then
  58413. + oldlibs="$output_objdir/$libname.$libext"
  58414. + build_libtool_libs=module
  58415. + build_old_libs=yes
  58416. + else
  58417. + build_libtool_libs=no
  58418. + fi
  58419. + fi
  58420. + fi
  58421. + fi
  58422. + # Done checking deplibs!
  58423. + deplibs=$newdeplibs
  58424. + fi
  58425. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  58426. + case $host in
  58427. + *-*-darwin*)
  58428. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58429. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58430. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58431. + ;;
  58432. esac
  58433. - fi
  58434. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  58435. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  58436. - done
  58437. + # move library search paths that coincide with paths to not yet
  58438. + # installed libraries to the beginning of the library search list
  58439. + new_libs=
  58440. + for path in $notinst_path; do
  58441. + case " $new_libs " in
  58442. + *" -L$path/$objdir "*) ;;
  58443. + *)
  58444. + case " $deplibs " in
  58445. + *" -L$path/$objdir "*)
  58446. + new_libs="$new_libs -L$path/$objdir" ;;
  58447. + esac
  58448. + ;;
  58449. + esac
  58450. + done
  58451. + for deplib in $deplibs; do
  58452. + case $deplib in
  58453. + -L*)
  58454. + case " $new_libs " in
  58455. + *" $deplib "*) ;;
  58456. + *) new_libs="$new_libs $deplib" ;;
  58457. + esac
  58458. + ;;
  58459. + *) new_libs="$new_libs $deplib" ;;
  58460. + esac
  58461. + done
  58462. + deplibs="$new_libs"
  58463. +
  58464. + # All the library-specific variables (install_libdir is set above).
  58465. + library_names=
  58466. + old_library=
  58467. + dlname=
  58468. +
  58469. + # Test again, we may have decided not to build it any more
  58470. + if test "$build_libtool_libs" = yes; then
  58471. + if test "$hardcode_into_libs" = yes; then
  58472. + # Hardcode the library paths
  58473. + hardcode_libdirs=
  58474. + dep_rpath=
  58475. + rpath="$finalize_rpath"
  58476. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  58477. + for libdir in $rpath; do
  58478. + if test -n "$hardcode_libdir_flag_spec"; then
  58479. + if test -n "$hardcode_libdir_separator"; then
  58480. + if test -z "$hardcode_libdirs"; then
  58481. + hardcode_libdirs="$libdir"
  58482. + else
  58483. + # Just accumulate the unique libdirs.
  58484. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  58485. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  58486. + ;;
  58487. + *)
  58488. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  58489. + ;;
  58490. + esac
  58491. + fi
  58492. + else
  58493. + eval flag=\"$hardcode_libdir_flag_spec\"
  58494. + dep_rpath="$dep_rpath $flag"
  58495. + fi
  58496. + elif test -n "$runpath_var"; then
  58497. + case "$perm_rpath " in
  58498. + *" $libdir "*) ;;
  58499. + *) perm_rpath="$perm_rpath $libdir" ;;
  58500. + esac
  58501. + fi
  58502. + done
  58503. + # Substitute the hardcoded libdirs into the rpath.
  58504. + if test -n "$hardcode_libdir_separator" &&
  58505. + test -n "$hardcode_libdirs"; then
  58506. + libdir="$hardcode_libdirs"
  58507. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  58508. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  58509. + else
  58510. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  58511. + fi
  58512. + fi
  58513. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  58514. + # We should set the runpath_var.
  58515. + rpath=
  58516. + for dir in $perm_rpath; do
  58517. + rpath="$rpath$dir:"
  58518. + done
  58519. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  58520. + fi
  58521. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  58522. + fi
  58523. - # Try to get the absolute directory name.
  58524. - absdir=\`cd \"\$thisdir\" && pwd\`
  58525. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  58526. -"
  58527. + shlibpath="$finalize_shlibpath"
  58528. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  58529. + if test -n "$shlibpath"; then
  58530. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  58531. + fi
  58532. - if test "$fast_install" = yes; then
  58533. - $echo >> $output "\
  58534. - program=lt-'$outputname'$exeext
  58535. - progdir=\"\$thisdir/$objdir\"
  58536. + # Get the real and link names of the library.
  58537. + eval shared_ext=\"$shrext_cmds\"
  58538. + eval library_names=\"$library_names_spec\"
  58539. + set dummy $library_names
  58540. + shift
  58541. + realname="$1"
  58542. + shift
  58543. - if test ! -f \"\$progdir/\$program\" || \\
  58544. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  58545. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  58546. + if test -n "$soname_spec"; then
  58547. + eval soname=\"$soname_spec\"
  58548. + else
  58549. + soname="$realname"
  58550. + fi
  58551. + if test -z "$dlname"; then
  58552. + dlname=$soname
  58553. + fi
  58554. - file=\"\$\$-\$program\"
  58555. + lib="$output_objdir/$realname"
  58556. + linknames=
  58557. + for link
  58558. + do
  58559. + linknames="$linknames $link"
  58560. + done
  58561. - if test ! -d \"\$progdir\"; then
  58562. - $mkdir \"\$progdir\"
  58563. - else
  58564. - $rm \"\$progdir/\$file\"
  58565. - fi"
  58566. + # Use standard objects if they are pic
  58567. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  58568. + test "X$libobjs" = "X " && libobjs=
  58569. - $echo >> $output "\
  58570. + delfiles=
  58571. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58572. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  58573. + export_symbols="$output_objdir/$libname.uexp"
  58574. + delfiles="$delfiles $export_symbols"
  58575. + fi
  58576. +
  58577. + orig_export_symbols=
  58578. + case $host_os in
  58579. + cygwin* | mingw* | cegcc*)
  58580. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  58581. + # exporting using user supplied symfile
  58582. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  58583. + # and it's NOT already a .def file. Must figure out
  58584. + # which of the given symbols are data symbols and tag
  58585. + # them as such. So, trigger use of export_symbols_cmds.
  58586. + # export_symbols gets reassigned inside the "prepare
  58587. + # the list of exported symbols" if statement, so the
  58588. + # include_expsyms logic still works.
  58589. + orig_export_symbols="$export_symbols"
  58590. + export_symbols=
  58591. + always_export_symbols=yes
  58592. + fi
  58593. + fi
  58594. + ;;
  58595. + esac
  58596. - # relink executable if necessary
  58597. - if test -n \"\$relink_command\"; then
  58598. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  58599. - else
  58600. - $echo \"\$relink_command_output\" >&2
  58601. - $rm \"\$progdir/\$file\"
  58602. - exit $EXIT_FAILURE
  58603. - fi
  58604. - fi
  58605. + # Prepare the list of exported symbols
  58606. + if test -z "$export_symbols"; then
  58607. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  58608. + func_verbose "generating symbol list for \`$libname.la'"
  58609. + export_symbols="$output_objdir/$libname.exp"
  58610. + $opt_dry_run || $RM $export_symbols
  58611. + cmds=$export_symbols_cmds
  58612. + save_ifs="$IFS"; IFS='~'
  58613. + for cmd in $cmds; do
  58614. + IFS="$save_ifs"
  58615. + eval cmd=\"$cmd\"
  58616. + func_len " $cmd"
  58617. + len=$func_len_result
  58618. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58619. + func_show_eval "$cmd" 'exit $?'
  58620. + skipped_export=false
  58621. + else
  58622. + # The command line is too long to execute in one step.
  58623. + func_verbose "using reloadable object file for export list..."
  58624. + skipped_export=:
  58625. + # Break out early, otherwise skipped_export may be
  58626. + # set to false by a later but shorter cmd.
  58627. + break
  58628. + fi
  58629. + done
  58630. + IFS="$save_ifs"
  58631. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  58632. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  58633. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  58634. + fi
  58635. + fi
  58636. + fi
  58637. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  58638. - { $rm \"\$progdir/\$program\";
  58639. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  58640. - $rm \"\$progdir/\$file\"
  58641. - fi"
  58642. - else
  58643. - $echo >> $output "\
  58644. - program='$outputname'
  58645. - progdir=\"\$thisdir/$objdir\"
  58646. -"
  58647. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58648. + tmp_export_symbols="$export_symbols"
  58649. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  58650. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  58651. + fi
  58652. +
  58653. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  58654. + # The given exports_symbols file has to be filtered, so filter it.
  58655. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  58656. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  58657. + # 's' commands which not all seds can handle. GNU sed should be fine
  58658. + # though. Also, the filter scales superlinearly with the number of
  58659. + # global variables. join(1) would be nice here, but unfortunately
  58660. + # isn't a blessed tool.
  58661. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  58662. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  58663. + export_symbols=$output_objdir/$libname.def
  58664. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  58665. fi
  58666. - $echo >> $output "\
  58667. + tmp_deplibs=
  58668. + for test_deplib in $deplibs; do
  58669. + case " $convenience " in
  58670. + *" $test_deplib "*) ;;
  58671. + *)
  58672. + tmp_deplibs="$tmp_deplibs $test_deplib"
  58673. + ;;
  58674. + esac
  58675. + done
  58676. + deplibs="$tmp_deplibs"
  58677. - if test -f \"\$progdir/\$program\"; then"
  58678. + if test -n "$convenience"; then
  58679. + if test -n "$whole_archive_flag_spec" &&
  58680. + test "$compiler_needs_object" = yes &&
  58681. + test -z "$libobjs"; then
  58682. + # extract the archives, so we have objects to list.
  58683. + # TODO: could optimize this to just extract one archive.
  58684. + whole_archive_flag_spec=
  58685. + fi
  58686. + if test -n "$whole_archive_flag_spec"; then
  58687. + save_libobjs=$libobjs
  58688. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  58689. + test "X$libobjs" = "X " && libobjs=
  58690. + else
  58691. + gentop="$output_objdir/${outputname}x"
  58692. + generated="$generated $gentop"
  58693. - # Export our shlibpath_var if we have one.
  58694. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  58695. - $echo >> $output "\
  58696. - # Add our own library path to $shlibpath_var
  58697. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  58698. + func_extract_archives $gentop $convenience
  58699. + libobjs="$libobjs $func_extract_archives_result"
  58700. + test "X$libobjs" = "X " && libobjs=
  58701. + fi
  58702. + fi
  58703. - # Some systems cannot cope with colon-terminated $shlibpath_var
  58704. - # The second colon is a workaround for a bug in BeOS R4 sed
  58705. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  58706. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  58707. + eval flag=\"$thread_safe_flag_spec\"
  58708. + linker_flags="$linker_flags $flag"
  58709. + fi
  58710. - export $shlibpath_var
  58711. -"
  58712. + # Make a backup of the uninstalled library when relinking
  58713. + if test "$mode" = relink; then
  58714. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  58715. fi
  58716. - # fixup the dll searchpath if we need to.
  58717. - if test -n "$dllsearchpath"; then
  58718. - $echo >> $output "\
  58719. - # Add the dll search path components to the executable PATH
  58720. - PATH=$dllsearchpath:\$PATH
  58721. -"
  58722. + # Do each of the archive commands.
  58723. + if test "$module" = yes && test -n "$module_cmds" ; then
  58724. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  58725. + eval test_cmds=\"$module_expsym_cmds\"
  58726. + cmds=$module_expsym_cmds
  58727. + else
  58728. + eval test_cmds=\"$module_cmds\"
  58729. + cmds=$module_cmds
  58730. + fi
  58731. + else
  58732. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  58733. + eval test_cmds=\"$archive_expsym_cmds\"
  58734. + cmds=$archive_expsym_cmds
  58735. + else
  58736. + eval test_cmds=\"$archive_cmds\"
  58737. + cmds=$archive_cmds
  58738. + fi
  58739. fi
  58740. - $echo >> $output "\
  58741. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58742. - # Run the actual program with our arguments.
  58743. -"
  58744. - case $host in
  58745. - # Backslashes separate directories on plain windows
  58746. - *-*-mingw | *-*-os2*)
  58747. - $echo >> $output "\
  58748. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  58749. -"
  58750. - ;;
  58751. + if test "X$skipped_export" != "X:" &&
  58752. + func_len " $test_cmds" &&
  58753. + len=$func_len_result &&
  58754. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58755. + :
  58756. + else
  58757. + # The command line is too long to link in one step, link piecewise
  58758. + # or, if using GNU ld and skipped_export is not :, use a linker
  58759. + # script.
  58760. - *)
  58761. - $echo >> $output "\
  58762. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  58763. -"
  58764. - ;;
  58765. - esac
  58766. - $echo >> $output "\
  58767. - \$echo \"\$0: cannot exec \$program \$*\"
  58768. - exit $EXIT_FAILURE
  58769. - fi
  58770. - else
  58771. - # The program doesn't exist.
  58772. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  58773. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  58774. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  58775. - exit $EXIT_FAILURE
  58776. - fi
  58777. -fi\
  58778. -"
  58779. - chmod +x $output
  58780. - fi
  58781. - exit $EXIT_SUCCESS
  58782. - ;;
  58783. - esac
  58784. + # Save the value of $output and $libobjs because we want to
  58785. + # use them later. If we have whole_archive_flag_spec, we
  58786. + # want to use save_libobjs as it was before
  58787. + # whole_archive_flag_spec was expanded, because we can't
  58788. + # assume the linker understands whole_archive_flag_spec.
  58789. + # This may have to be revisited, in case too many
  58790. + # convenience libraries get linked in and end up exceeding
  58791. + # the spec.
  58792. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  58793. + save_libobjs=$libobjs
  58794. + fi
  58795. + save_output=$output
  58796. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  58797. - # See if we need to build an old-fashioned archive.
  58798. - for oldlib in $oldlibs; do
  58799. + # Clear the reloadable object creation command queue and
  58800. + # initialize k to one.
  58801. + test_cmds=
  58802. + concat_cmds=
  58803. + objlist=
  58804. + last_robj=
  58805. + k=1
  58806. - if test "$build_libtool_libs" = convenience; then
  58807. - oldobjs="$libobjs_save"
  58808. - addlibs="$convenience"
  58809. - build_libtool_libs=no
  58810. - else
  58811. - if test "$build_libtool_libs" = module; then
  58812. - oldobjs="$libobjs_save"
  58813. - build_libtool_libs=no
  58814. - else
  58815. - oldobjs="$old_deplibs $non_pic_objects"
  58816. - fi
  58817. - addlibs="$old_convenience"
  58818. - fi
  58819. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  58820. + output=${output_objdir}/${output_la}.lnkscript
  58821. + func_verbose "creating GNU ld script: $output"
  58822. + $ECHO 'INPUT (' > $output
  58823. + for obj in $save_libobjs
  58824. + do
  58825. + $ECHO "$obj" >> $output
  58826. + done
  58827. + $ECHO ')' >> $output
  58828. + delfiles="$delfiles $output"
  58829. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  58830. + output=${output_objdir}/${output_la}.lnk
  58831. + func_verbose "creating linker input file list: $output"
  58832. + : > $output
  58833. + set x $save_libobjs
  58834. + shift
  58835. + firstobj=
  58836. + if test "$compiler_needs_object" = yes; then
  58837. + firstobj="$1 "
  58838. + shift
  58839. + fi
  58840. + for obj
  58841. + do
  58842. + $ECHO "$obj" >> $output
  58843. + done
  58844. + delfiles="$delfiles $output"
  58845. + output=$firstobj\"$file_list_spec$output\"
  58846. + else
  58847. + if test -n "$save_libobjs"; then
  58848. + func_verbose "creating reloadable object files..."
  58849. + output=$output_objdir/$output_la-${k}.$objext
  58850. + eval test_cmds=\"$reload_cmds\"
  58851. + func_len " $test_cmds"
  58852. + len0=$func_len_result
  58853. + len=$len0
  58854. +
  58855. + # Loop over the list of objects to be linked.
  58856. + for obj in $save_libobjs
  58857. + do
  58858. + func_len " $obj"
  58859. + func_arith $len + $func_len_result
  58860. + len=$func_arith_result
  58861. + if test "X$objlist" = X ||
  58862. + test "$len" -lt "$max_cmd_len"; then
  58863. + func_append objlist " $obj"
  58864. + else
  58865. + # The command $test_cmds is almost too long, add a
  58866. + # command to the queue.
  58867. + if test "$k" -eq 1 ; then
  58868. + # The first file doesn't have a previous command to add.
  58869. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  58870. + else
  58871. + # All subsequent reloadable object files will link in
  58872. + # the last one created.
  58873. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  58874. + fi
  58875. + last_robj=$output_objdir/$output_la-${k}.$objext
  58876. + func_arith $k + 1
  58877. + k=$func_arith_result
  58878. + output=$output_objdir/$output_la-${k}.$objext
  58879. + objlist=$obj
  58880. + func_len " $last_robj"
  58881. + func_arith $len0 + $func_len_result
  58882. + len=$func_arith_result
  58883. + fi
  58884. + done
  58885. + # Handle the remaining objects by creating one last
  58886. + # reloadable object file. All subsequent reloadable object
  58887. + # files will link in the last one created.
  58888. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58889. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  58890. + if test -n "$last_robj"; then
  58891. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  58892. + fi
  58893. + delfiles="$delfiles $output"
  58894. - if test -n "$addlibs"; then
  58895. - gentop="$output_objdir/${outputname}x"
  58896. - generated="$generated $gentop"
  58897. + else
  58898. + output=
  58899. + fi
  58900. - func_extract_archives $gentop $addlibs
  58901. - oldobjs="$oldobjs $func_extract_archives_result"
  58902. - fi
  58903. + if ${skipped_export-false}; then
  58904. + func_verbose "generating symbol list for \`$libname.la'"
  58905. + export_symbols="$output_objdir/$libname.exp"
  58906. + $opt_dry_run || $RM $export_symbols
  58907. + libobjs=$output
  58908. + # Append the command to create the export file.
  58909. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58910. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  58911. + if test -n "$last_robj"; then
  58912. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  58913. + fi
  58914. + fi
  58915. - # Do each command in the archive commands.
  58916. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  58917. - cmds=$old_archive_from_new_cmds
  58918. - else
  58919. - # POSIX demands no paths to be encoded in archives. We have
  58920. - # to avoid creating archives with duplicate basenames if we
  58921. - # might have to extract them afterwards, e.g., when creating a
  58922. - # static archive out of a convenience library, or when linking
  58923. - # the entirety of a libtool archive into another (currently
  58924. - # not supported by libtool).
  58925. - if (for obj in $oldobjs
  58926. - do
  58927. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  58928. - done | sort | sort -uc >/dev/null 2>&1); then
  58929. - :
  58930. - else
  58931. - $echo "copying selected object files to avoid basename conflicts..."
  58932. + test -n "$save_libobjs" &&
  58933. + func_verbose "creating a temporary reloadable object file: $output"
  58934. - if test -z "$gentop"; then
  58935. - gentop="$output_objdir/${outputname}x"
  58936. - generated="$generated $gentop"
  58937. + # Loop through the commands generated above and execute them.
  58938. + save_ifs="$IFS"; IFS='~'
  58939. + for cmd in $concat_cmds; do
  58940. + IFS="$save_ifs"
  58941. + $opt_silent || {
  58942. + func_quote_for_expand "$cmd"
  58943. + eval "func_echo $func_quote_for_expand_result"
  58944. + }
  58945. + $opt_dry_run || eval "$cmd" || {
  58946. + lt_exit=$?
  58947. +
  58948. + # Restore the uninstalled library and exit
  58949. + if test "$mode" = relink; then
  58950. + ( cd "$output_objdir" && \
  58951. + $RM "${realname}T" && \
  58952. + $MV "${realname}U" "$realname" )
  58953. + fi
  58954. - $show "${rm}r $gentop"
  58955. - $run ${rm}r "$gentop"
  58956. - $show "$mkdir $gentop"
  58957. - $run $mkdir "$gentop"
  58958. - exit_status=$?
  58959. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  58960. - exit $exit_status
  58961. + exit $lt_exit
  58962. + }
  58963. + done
  58964. + IFS="$save_ifs"
  58965. +
  58966. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  58967. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  58968. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  58969. fi
  58970. fi
  58971. - save_oldobjs=$oldobjs
  58972. - oldobjs=
  58973. - counter=1
  58974. - for obj in $save_oldobjs
  58975. - do
  58976. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  58977. - case " $oldobjs " in
  58978. - " ") oldobjs=$obj ;;
  58979. - *[\ /]"$objbase "*)
  58980. - while :; do
  58981. - # Make sure we don't pick an alternate name that also
  58982. - # overlaps.
  58983. - newobj=lt$counter-$objbase
  58984. - counter=`expr $counter + 1`
  58985. - case " $oldobjs " in
  58986. - *[\ /]"$newobj "*) ;;
  58987. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  58988. - esac
  58989. - done
  58990. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  58991. - $run ln "$obj" "$gentop/$newobj" ||
  58992. - $run cp "$obj" "$gentop/$newobj"
  58993. - oldobjs="$oldobjs $gentop/$newobj"
  58994. - ;;
  58995. - *) oldobjs="$oldobjs $obj" ;;
  58996. - esac
  58997. - done
  58998. - fi
  58999. + if ${skipped_export-false}; then
  59000. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  59001. + tmp_export_symbols="$export_symbols"
  59002. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  59003. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  59004. + fi
  59005. +
  59006. + if test -n "$orig_export_symbols"; then
  59007. + # The given exports_symbols file has to be filtered, so filter it.
  59008. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  59009. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  59010. + # 's' commands which not all seds can handle. GNU sed should be fine
  59011. + # though. Also, the filter scales superlinearly with the number of
  59012. + # global variables. join(1) would be nice here, but unfortunately
  59013. + # isn't a blessed tool.
  59014. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  59015. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  59016. + export_symbols=$output_objdir/$libname.def
  59017. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  59018. + fi
  59019. + fi
  59020. - eval cmds=\"$old_archive_cmds\"
  59021. + libobjs=$output
  59022. + # Restore the value of output.
  59023. + output=$save_output
  59024. - if len=`expr "X$cmds" : ".*"` &&
  59025. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59026. - cmds=$old_archive_cmds
  59027. - else
  59028. - # the command line is too long to link in one step, link in parts
  59029. - $echo "using piecewise archive linking..."
  59030. - save_RANLIB=$RANLIB
  59031. - RANLIB=:
  59032. - objlist=
  59033. - concat_cmds=
  59034. - save_oldobjs=$oldobjs
  59035. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  59036. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  59037. + test "X$libobjs" = "X " && libobjs=
  59038. + fi
  59039. + # Expand the library linking commands again to reset the
  59040. + # value of $libobjs for piecewise linking.
  59041. - # Is there a better way of finding the last object in the list?
  59042. - for obj in $save_oldobjs
  59043. - do
  59044. - last_oldobj=$obj
  59045. - done
  59046. - for obj in $save_oldobjs
  59047. - do
  59048. - oldobjs="$objlist $obj"
  59049. - objlist="$objlist $obj"
  59050. - eval test_cmds=\"$old_archive_cmds\"
  59051. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  59052. - test "$len" -le "$max_cmd_len"; then
  59053. - :
  59054. + # Do each of the archive commands.
  59055. + if test "$module" = yes && test -n "$module_cmds" ; then
  59056. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  59057. + cmds=$module_expsym_cmds
  59058. else
  59059. - # the above command should be used before it gets too long
  59060. - oldobjs=$objlist
  59061. - if test "$obj" = "$last_oldobj" ; then
  59062. - RANLIB=$save_RANLIB
  59063. - fi
  59064. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59065. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  59066. - objlist=
  59067. + cmds=$module_cmds
  59068. fi
  59069. - done
  59070. - RANLIB=$save_RANLIB
  59071. - oldobjs=$objlist
  59072. - if test "X$oldobjs" = "X" ; then
  59073. - eval cmds=\"\$concat_cmds\"
  59074. else
  59075. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  59076. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  59077. + cmds=$archive_expsym_cmds
  59078. + else
  59079. + cmds=$archive_cmds
  59080. + fi
  59081. fi
  59082. fi
  59083. - fi
  59084. - save_ifs="$IFS"; IFS='~'
  59085. - for cmd in $cmds; do
  59086. - eval cmd=\"$cmd\"
  59087. - IFS="$save_ifs"
  59088. - $show "$cmd"
  59089. - $run eval "$cmd" || exit $?
  59090. - done
  59091. - IFS="$save_ifs"
  59092. - done
  59093. - if test -n "$generated"; then
  59094. - $show "${rm}r$generated"
  59095. - $run ${rm}r$generated
  59096. - fi
  59097. + if test -n "$delfiles"; then
  59098. + # Append the command to remove temporary files to $cmds.
  59099. + eval cmds=\"\$cmds~\$RM $delfiles\"
  59100. + fi
  59101. - # Now create the libtool archive.
  59102. - case $output in
  59103. - *.la)
  59104. - old_library=
  59105. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  59106. - $show "creating $output"
  59107. + # Add any objects from preloaded convenience libraries
  59108. + if test -n "$dlprefiles"; then
  59109. + gentop="$output_objdir/${outputname}x"
  59110. + generated="$generated $gentop"
  59111. - # Preserve any variables that may affect compiler behavior
  59112. - for var in $variables_saved_for_relink; do
  59113. - if eval test -z \"\${$var+set}\"; then
  59114. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  59115. - elif eval var_value=\$$var; test -z "$var_value"; then
  59116. - relink_command="$var=; export $var; $relink_command"
  59117. - else
  59118. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  59119. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  59120. + func_extract_archives $gentop $dlprefiles
  59121. + libobjs="$libobjs $func_extract_archives_result"
  59122. + test "X$libobjs" = "X " && libobjs=
  59123. fi
  59124. - done
  59125. - # Quote the link command for shipping.
  59126. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  59127. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  59128. - if test "$hardcode_automatic" = yes ; then
  59129. - relink_command=
  59130. - fi
  59131. + save_ifs="$IFS"; IFS='~'
  59132. + for cmd in $cmds; do
  59133. + IFS="$save_ifs"
  59134. + eval cmd=\"$cmd\"
  59135. + $opt_silent || {
  59136. + func_quote_for_expand "$cmd"
  59137. + eval "func_echo $func_quote_for_expand_result"
  59138. + }
  59139. + $opt_dry_run || eval "$cmd" || {
  59140. + lt_exit=$?
  59141. - # Only create the output if not a dry run.
  59142. - if test -z "$run"; then
  59143. - for installed in no yes; do
  59144. - if test "$installed" = yes; then
  59145. - if test -z "$install_libdir"; then
  59146. - break
  59147. + # Restore the uninstalled library and exit
  59148. + if test "$mode" = relink; then
  59149. + ( cd "$output_objdir" && \
  59150. + $RM "${realname}T" && \
  59151. + $MV "${realname}U" "$realname" )
  59152. fi
  59153. - output="$output_objdir/$outputname"i
  59154. - # Replace all uninstalled libtool libraries with the installed ones
  59155. - newdependency_libs=
  59156. - for deplib in $dependency_libs; do
  59157. - case $deplib in
  59158. - *.la)
  59159. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  59160. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  59161. - if test -z "$libdir"; then
  59162. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  59163. - exit $EXIT_FAILURE
  59164. - fi
  59165. - newdependency_libs="$newdependency_libs $libdir/$name"
  59166. - ;;
  59167. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  59168. - esac
  59169. - done
  59170. - dependency_libs="$newdependency_libs"
  59171. - newdlfiles=
  59172. - for lib in $dlfiles; do
  59173. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  59174. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  59175. - if test -z "$libdir"; then
  59176. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  59177. - exit $EXIT_FAILURE
  59178. - fi
  59179. - newdlfiles="$newdlfiles $libdir/$name"
  59180. - done
  59181. - dlfiles="$newdlfiles"
  59182. - newdlprefiles=
  59183. - for lib in $dlprefiles; do
  59184. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  59185. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  59186. - if test -z "$libdir"; then
  59187. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  59188. - exit $EXIT_FAILURE
  59189. - fi
  59190. - newdlprefiles="$newdlprefiles $libdir/$name"
  59191. - done
  59192. - dlprefiles="$newdlprefiles"
  59193. - else
  59194. - newdlfiles=
  59195. - for lib in $dlfiles; do
  59196. - case $lib in
  59197. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59198. - *) abs=`pwd`"/$lib" ;;
  59199. - esac
  59200. - newdlfiles="$newdlfiles $abs"
  59201. - done
  59202. - dlfiles="$newdlfiles"
  59203. - newdlprefiles=
  59204. - for lib in $dlprefiles; do
  59205. - case $lib in
  59206. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59207. - *) abs=`pwd`"/$lib" ;;
  59208. - esac
  59209. - newdlprefiles="$newdlprefiles $abs"
  59210. - done
  59211. - dlprefiles="$newdlprefiles"
  59212. - fi
  59213. - $rm $output
  59214. - # place dlname in correct position for cygwin
  59215. - tdlname=$dlname
  59216. - case $host,$output,$installed,$module,$dlname in
  59217. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  59218. - esac
  59219. - $echo > $output "\
  59220. -# $outputname - a libtool library file
  59221. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  59222. -#
  59223. -# Please DO NOT delete this file!
  59224. -# It is necessary for linking the library.
  59225. -
  59226. -# The name that we can dlopen(3).
  59227. -dlname='$tdlname'
  59228. -
  59229. -# Names of this library.
  59230. -library_names='$library_names'
  59231. -
  59232. -# The name of the static archive.
  59233. -old_library='$old_library'
  59234. -
  59235. -# Libraries that this one depends upon.
  59236. -dependency_libs='$dependency_libs'
  59237. -# Version information for $libname.
  59238. -current=$current
  59239. -age=$age
  59240. -revision=$revision
  59241. + exit $lt_exit
  59242. + }
  59243. + done
  59244. + IFS="$save_ifs"
  59245. -# Is this an already installed library?
  59246. -installed=$installed
  59247. + # Restore the uninstalled library and exit
  59248. + if test "$mode" = relink; then
  59249. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  59250. -# Should we warn about portability when linking against -modules?
  59251. -shouldnotlink=$module
  59252. + if test -n "$convenience"; then
  59253. + if test -z "$whole_archive_flag_spec"; then
  59254. + func_show_eval '${RM}r "$gentop"'
  59255. + fi
  59256. + fi
  59257. -# Files to dlopen/dlpreopen
  59258. -dlopen='$dlfiles'
  59259. -dlpreopen='$dlprefiles'
  59260. + exit $EXIT_SUCCESS
  59261. + fi
  59262. -# Directory that this library needs to be installed in:
  59263. -libdir='$install_libdir'"
  59264. - if test "$installed" = no && test "$need_relink" = yes; then
  59265. - $echo >> $output "\
  59266. -relink_command=\"$relink_command\""
  59267. + # Create links to the real library.
  59268. + for linkname in $linknames; do
  59269. + if test "$realname" != "$linkname"; then
  59270. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  59271. fi
  59272. done
  59273. - fi
  59274. - # Do a symbolic link so that the libtool archive can be found in
  59275. - # LD_LIBRARY_PATH before the program is installed.
  59276. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  59277. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  59278. + # If -module or -export-dynamic was specified, set the dlname.
  59279. + if test "$module" = yes || test "$export_dynamic" = yes; then
  59280. + # On all known operating systems, these are identical.
  59281. + dlname="$soname"
  59282. + fi
  59283. + fi
  59284. ;;
  59285. - esac
  59286. - exit $EXIT_SUCCESS
  59287. - ;;
  59288. - # libtool install mode
  59289. - install)
  59290. - modename="$modename: install"
  59291. + obj)
  59292. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  59293. + func_warning "\`-dlopen' is ignored for objects"
  59294. + fi
  59295. - # There may be an optional sh(1) argument at the beginning of
  59296. - # install_prog (especially on Windows NT).
  59297. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  59298. - # Allow the use of GNU shtool's install command.
  59299. - $echo "X$nonopt" | grep shtool > /dev/null; then
  59300. - # Aesthetically quote it.
  59301. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  59302. - case $arg in
  59303. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  59304. - arg="\"$arg\""
  59305. - ;;
  59306. + case " $deplibs" in
  59307. + *\ -l* | *\ -L*)
  59308. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  59309. esac
  59310. - install_prog="$arg "
  59311. - arg="$1"
  59312. - shift
  59313. - else
  59314. - install_prog=
  59315. - arg=$nonopt
  59316. - fi
  59317. - # The real first argument should be the name of the installation program.
  59318. - # Aesthetically quote it.
  59319. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  59320. - case $arg in
  59321. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  59322. - arg="\"$arg\""
  59323. - ;;
  59324. - esac
  59325. - install_prog="$install_prog$arg"
  59326. + test -n "$rpath" && \
  59327. + func_warning "\`-rpath' is ignored for objects"
  59328. +
  59329. + test -n "$xrpath" && \
  59330. + func_warning "\`-R' is ignored for objects"
  59331. +
  59332. + test -n "$vinfo" && \
  59333. + func_warning "\`-version-info' is ignored for objects"
  59334. +
  59335. + test -n "$release" && \
  59336. + func_warning "\`-release' is ignored for objects"
  59337. - # We need to accept at least all the BSD install flags.
  59338. - dest=
  59339. - files=
  59340. - opts=
  59341. - prev=
  59342. - install_type=
  59343. - isdir=no
  59344. - stripme=
  59345. - for arg
  59346. - do
  59347. - if test -n "$dest"; then
  59348. - files="$files $dest"
  59349. - dest=$arg
  59350. - continue
  59351. - fi
  59352. + case $output in
  59353. + *.lo)
  59354. + test -n "$objs$old_deplibs" && \
  59355. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  59356. - case $arg in
  59357. - -d) isdir=yes ;;
  59358. - -f)
  59359. - case " $install_prog " in
  59360. - *[\\\ /]cp\ *) ;;
  59361. - *) prev=$arg ;;
  59362. - esac
  59363. - ;;
  59364. - -g | -m | -o) prev=$arg ;;
  59365. - -s)
  59366. - stripme=" -s"
  59367. - continue
  59368. - ;;
  59369. - -*)
  59370. + libobj=$output
  59371. + func_lo2o "$libobj"
  59372. + obj=$func_lo2o_result
  59373. ;;
  59374. *)
  59375. - # If the previous option needed an argument, then skip it.
  59376. - if test -n "$prev"; then
  59377. - prev=
  59378. - else
  59379. - dest=$arg
  59380. - continue
  59381. - fi
  59382. + libobj=
  59383. + obj="$output"
  59384. ;;
  59385. esac
  59386. - # Aesthetically quote the argument.
  59387. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  59388. - case $arg in
  59389. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  59390. - arg="\"$arg\""
  59391. - ;;
  59392. - esac
  59393. - install_prog="$install_prog $arg"
  59394. - done
  59395. + # Delete the old objects.
  59396. + $opt_dry_run || $RM $obj $libobj
  59397. - if test -z "$install_prog"; then
  59398. - $echo "$modename: you must specify an install program" 1>&2
  59399. - $echo "$help" 1>&2
  59400. - exit $EXIT_FAILURE
  59401. - fi
  59402. + # Objects from convenience libraries. This assumes
  59403. + # single-version convenience libraries. Whenever we create
  59404. + # different ones for PIC/non-PIC, this we'll have to duplicate
  59405. + # the extraction.
  59406. + reload_conv_objs=
  59407. + gentop=
  59408. + # reload_cmds runs $LD directly, so let us get rid of
  59409. + # -Wl from whole_archive_flag_spec and hope we can get by with
  59410. + # turning comma into space..
  59411. + wl=
  59412. - if test -n "$prev"; then
  59413. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  59414. - $echo "$help" 1>&2
  59415. - exit $EXIT_FAILURE
  59416. - fi
  59417. + if test -n "$convenience"; then
  59418. + if test -n "$whole_archive_flag_spec"; then
  59419. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  59420. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  59421. + else
  59422. + gentop="$output_objdir/${obj}x"
  59423. + generated="$generated $gentop"
  59424. - if test -z "$files"; then
  59425. - if test -z "$dest"; then
  59426. - $echo "$modename: no file or destination specified" 1>&2
  59427. - else
  59428. - $echo "$modename: you must specify a destination" 1>&2
  59429. + func_extract_archives $gentop $convenience
  59430. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  59431. + fi
  59432. fi
  59433. - $echo "$help" 1>&2
  59434. - exit $EXIT_FAILURE
  59435. - fi
  59436. - # Strip any trailing slash from the destination.
  59437. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  59438. + # Create the old-style object.
  59439. + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  59440. - # Check to see that the destination is a directory.
  59441. - test -d "$dest" && isdir=yes
  59442. - if test "$isdir" = yes; then
  59443. - destdir="$dest"
  59444. - destname=
  59445. - else
  59446. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  59447. - test "X$destdir" = "X$dest" && destdir=.
  59448. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  59449. + output="$obj"
  59450. + func_execute_cmds "$reload_cmds" 'exit $?'
  59451. - # Not a directory, so check to see that there is only one file specified.
  59452. - set dummy $files
  59453. - if test "$#" -gt 2; then
  59454. - $echo "$modename: \`$dest' is not a directory" 1>&2
  59455. - $echo "$help" 1>&2
  59456. - exit $EXIT_FAILURE
  59457. + # Exit if we aren't doing a library object file.
  59458. + if test -z "$libobj"; then
  59459. + if test -n "$gentop"; then
  59460. + func_show_eval '${RM}r "$gentop"'
  59461. + fi
  59462. +
  59463. + exit $EXIT_SUCCESS
  59464. fi
  59465. - fi
  59466. - case $destdir in
  59467. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  59468. - *)
  59469. - for file in $files; do
  59470. - case $file in
  59471. - *.lo) ;;
  59472. - *)
  59473. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  59474. - $echo "$help" 1>&2
  59475. - exit $EXIT_FAILURE
  59476. - ;;
  59477. - esac
  59478. - done
  59479. +
  59480. + if test "$build_libtool_libs" != yes; then
  59481. + if test -n "$gentop"; then
  59482. + func_show_eval '${RM}r "$gentop"'
  59483. + fi
  59484. +
  59485. + # Create an invalid libtool object if no PIC, so that we don't
  59486. + # accidentally link it into a program.
  59487. + # $show "echo timestamp > $libobj"
  59488. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  59489. + exit $EXIT_SUCCESS
  59490. + fi
  59491. +
  59492. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  59493. + # Only do commands if we really have different PIC objects.
  59494. + reload_objs="$libobjs $reload_conv_objs"
  59495. + output="$libobj"
  59496. + func_execute_cmds "$reload_cmds" 'exit $?'
  59497. + fi
  59498. +
  59499. + if test -n "$gentop"; then
  59500. + func_show_eval '${RM}r "$gentop"'
  59501. + fi
  59502. +
  59503. + exit $EXIT_SUCCESS
  59504. ;;
  59505. - esac
  59506. - # This variable tells wrapper scripts just to set variables rather
  59507. - # than running their programs.
  59508. - libtool_install_magic="$magic"
  59509. + prog)
  59510. + case $host in
  59511. + *cygwin*) func_stripname '' '.exe' "$output"
  59512. + output=$func_stripname_result.exe;;
  59513. + esac
  59514. + test -n "$vinfo" && \
  59515. + func_warning "\`-version-info' is ignored for programs"
  59516. - staticlibs=
  59517. - future_libdirs=
  59518. - current_libdirs=
  59519. - for file in $files; do
  59520. + test -n "$release" && \
  59521. + func_warning "\`-release' is ignored for programs"
  59522. - # Do each installation.
  59523. - case $file in
  59524. - *.$libext)
  59525. - # Do the static libraries later.
  59526. - staticlibs="$staticlibs $file"
  59527. + test "$preload" = yes \
  59528. + && test "$dlopen_support" = unknown \
  59529. + && test "$dlopen_self" = unknown \
  59530. + && test "$dlopen_self_static" = unknown && \
  59531. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  59532. +
  59533. + case $host in
  59534. + *-*-rhapsody* | *-*-darwin1.[012])
  59535. + # On Rhapsody replace the C library is the System framework
  59536. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59537. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59538. ;;
  59539. + esac
  59540. - *.la)
  59541. - # Check to see that this really is a libtool archive.
  59542. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  59543. - else
  59544. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  59545. - $echo "$help" 1>&2
  59546. - exit $EXIT_FAILURE
  59547. + case $host in
  59548. + *-*-darwin*)
  59549. + # Don't allow lazy linking, it breaks C++ global constructors
  59550. + # But is supposedly fixed on 10.4 or later (yay!).
  59551. + if test "$tagname" = CXX ; then
  59552. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  59553. + 10.[0123])
  59554. + compile_command="$compile_command ${wl}-bind_at_load"
  59555. + finalize_command="$finalize_command ${wl}-bind_at_load"
  59556. + ;;
  59557. + esac
  59558. fi
  59559. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  59560. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59561. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59562. + ;;
  59563. + esac
  59564. - library_names=
  59565. - old_library=
  59566. - relink_command=
  59567. - # If there is no directory component, then add one.
  59568. - case $file in
  59569. - */* | *\\*) . $file ;;
  59570. - *) . ./$file ;;
  59571. - esac
  59572. - # Add the libdir to current_libdirs if it is the destination.
  59573. - if test "X$destdir" = "X$libdir"; then
  59574. - case "$current_libdirs " in
  59575. - *" $libdir "*) ;;
  59576. - *) current_libdirs="$current_libdirs $libdir" ;;
  59577. + # move library search paths that coincide with paths to not yet
  59578. + # installed libraries to the beginning of the library search list
  59579. + new_libs=
  59580. + for path in $notinst_path; do
  59581. + case " $new_libs " in
  59582. + *" -L$path/$objdir "*) ;;
  59583. + *)
  59584. + case " $compile_deplibs " in
  59585. + *" -L$path/$objdir "*)
  59586. + new_libs="$new_libs -L$path/$objdir" ;;
  59587. esac
  59588. - else
  59589. - # Note the libdir as a future libdir.
  59590. - case "$future_libdirs " in
  59591. - *" $libdir "*) ;;
  59592. - *) future_libdirs="$future_libdirs $libdir" ;;
  59593. + ;;
  59594. + esac
  59595. + done
  59596. + for deplib in $compile_deplibs; do
  59597. + case $deplib in
  59598. + -L*)
  59599. + case " $new_libs " in
  59600. + *" $deplib "*) ;;
  59601. + *) new_libs="$new_libs $deplib" ;;
  59602. esac
  59603. - fi
  59604. + ;;
  59605. + *) new_libs="$new_libs $deplib" ;;
  59606. + esac
  59607. + done
  59608. + compile_deplibs="$new_libs"
  59609. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  59610. - test "X$dir" = "X$file/" && dir=
  59611. - dir="$dir$objdir"
  59612. - if test -n "$relink_command"; then
  59613. - # Determine the prefix the user has applied to our future dir.
  59614. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  59615. + compile_command="$compile_command $compile_deplibs"
  59616. + finalize_command="$finalize_command $finalize_deplibs"
  59617. - # Don't allow the user to place us outside of our expected
  59618. - # location b/c this prevents finding dependent libraries that
  59619. - # are installed to the same prefix.
  59620. - # At present, this check doesn't affect windows .dll's that
  59621. - # are installed into $libdir/../bin (currently, that works fine)
  59622. - # but it's something to keep an eye on.
  59623. - if test "$inst_prefix_dir" = "$destdir"; then
  59624. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  59625. - exit $EXIT_FAILURE
  59626. - fi
  59627. + if test -n "$rpath$xrpath"; then
  59628. + # If the user specified any rpath flags, then add them.
  59629. + for libdir in $rpath $xrpath; do
  59630. + # This is the magic to use -rpath.
  59631. + case "$finalize_rpath " in
  59632. + *" $libdir "*) ;;
  59633. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  59634. + esac
  59635. + done
  59636. + fi
  59637. - if test -n "$inst_prefix_dir"; then
  59638. - # Stick the inst_prefix_dir data into the link command.
  59639. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  59640. + # Now hardcode the library paths
  59641. + rpath=
  59642. + hardcode_libdirs=
  59643. + for libdir in $compile_rpath $finalize_rpath; do
  59644. + if test -n "$hardcode_libdir_flag_spec"; then
  59645. + if test -n "$hardcode_libdir_separator"; then
  59646. + if test -z "$hardcode_libdirs"; then
  59647. + hardcode_libdirs="$libdir"
  59648. + else
  59649. + # Just accumulate the unique libdirs.
  59650. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59651. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59652. + ;;
  59653. + *)
  59654. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59655. + ;;
  59656. + esac
  59657. + fi
  59658. else
  59659. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  59660. + eval flag=\"$hardcode_libdir_flag_spec\"
  59661. + rpath="$rpath $flag"
  59662. fi
  59663. + elif test -n "$runpath_var"; then
  59664. + case "$perm_rpath " in
  59665. + *" $libdir "*) ;;
  59666. + *) perm_rpath="$perm_rpath $libdir" ;;
  59667. + esac
  59668. + fi
  59669. + case $host in
  59670. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  59671. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  59672. + case :$dllsearchpath: in
  59673. + *":$libdir:"*) ;;
  59674. + ::) dllsearchpath=$libdir;;
  59675. + *) dllsearchpath="$dllsearchpath:$libdir";;
  59676. + esac
  59677. + case :$dllsearchpath: in
  59678. + *":$testbindir:"*) ;;
  59679. + ::) dllsearchpath=$testbindir;;
  59680. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  59681. + esac
  59682. + ;;
  59683. + esac
  59684. + done
  59685. + # Substitute the hardcoded libdirs into the rpath.
  59686. + if test -n "$hardcode_libdir_separator" &&
  59687. + test -n "$hardcode_libdirs"; then
  59688. + libdir="$hardcode_libdirs"
  59689. + eval rpath=\" $hardcode_libdir_flag_spec\"
  59690. + fi
  59691. + compile_rpath="$rpath"
  59692. - $echo "$modename: warning: relinking \`$file'" 1>&2
  59693. - $show "$relink_command"
  59694. - if $run eval "$relink_command"; then :
  59695. + rpath=
  59696. + hardcode_libdirs=
  59697. + for libdir in $finalize_rpath; do
  59698. + if test -n "$hardcode_libdir_flag_spec"; then
  59699. + if test -n "$hardcode_libdir_separator"; then
  59700. + if test -z "$hardcode_libdirs"; then
  59701. + hardcode_libdirs="$libdir"
  59702. + else
  59703. + # Just accumulate the unique libdirs.
  59704. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59705. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59706. + ;;
  59707. + *)
  59708. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59709. + ;;
  59710. + esac
  59711. + fi
  59712. else
  59713. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  59714. - exit $EXIT_FAILURE
  59715. + eval flag=\"$hardcode_libdir_flag_spec\"
  59716. + rpath="$rpath $flag"
  59717. fi
  59718. + elif test -n "$runpath_var"; then
  59719. + case "$finalize_perm_rpath " in
  59720. + *" $libdir "*) ;;
  59721. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  59722. + esac
  59723. fi
  59724. + done
  59725. + # Substitute the hardcoded libdirs into the rpath.
  59726. + if test -n "$hardcode_libdir_separator" &&
  59727. + test -n "$hardcode_libdirs"; then
  59728. + libdir="$hardcode_libdirs"
  59729. + eval rpath=\" $hardcode_libdir_flag_spec\"
  59730. + fi
  59731. + finalize_rpath="$rpath"
  59732. - # See the names of the shared library.
  59733. - set dummy $library_names
  59734. - if test -n "$2"; then
  59735. - realname="$2"
  59736. - shift
  59737. - shift
  59738. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  59739. + # Transform all the library objects into standard objects.
  59740. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59741. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59742. + fi
  59743. - srcname="$realname"
  59744. - test -n "$relink_command" && srcname="$realname"T
  59745. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  59746. - # Install the shared library and build the symlinks.
  59747. - $show "$install_prog $dir/$srcname $destdir/$realname"
  59748. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  59749. - if test -n "$stripme" && test -n "$striplib"; then
  59750. - $show "$striplib $destdir/$realname"
  59751. - $run eval "$striplib $destdir/$realname" || exit $?
  59752. - fi
  59753. + # template prelinking step
  59754. + if test -n "$prelink_cmds"; then
  59755. + func_execute_cmds "$prelink_cmds" 'exit $?'
  59756. + fi
  59757. - if test "$#" -gt 0; then
  59758. - # Delete the old symlinks, and create new ones.
  59759. - # Try `ln -sf' first, because the `ln' binary might depend on
  59760. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  59761. - # so we also need to try rm && ln -s.
  59762. - for linkname
  59763. - do
  59764. - if test "$linkname" != "$realname"; then
  59765. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  59766. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  59767. - fi
  59768. - done
  59769. - fi
  59770. + wrappers_required=yes
  59771. + case $host in
  59772. + *cygwin* | *mingw* )
  59773. + if test "$build_libtool_libs" != yes; then
  59774. + wrappers_required=no
  59775. + fi
  59776. + ;;
  59777. + *cegcc)
  59778. + # Disable wrappers for cegcc, we are cross compiling anyway.
  59779. + wrappers_required=no
  59780. + ;;
  59781. + *)
  59782. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  59783. + wrappers_required=no
  59784. + fi
  59785. + ;;
  59786. + esac
  59787. + if test "$wrappers_required" = no; then
  59788. + # Replace the output file specification.
  59789. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  59790. + link_command="$compile_command$compile_rpath"
  59791. - # Do each command in the postinstall commands.
  59792. - lib="$destdir/$realname"
  59793. - cmds=$postinstall_cmds
  59794. - save_ifs="$IFS"; IFS='~'
  59795. - for cmd in $cmds; do
  59796. - IFS="$save_ifs"
  59797. - eval cmd=\"$cmd\"
  59798. - $show "$cmd"
  59799. - $run eval "$cmd" || {
  59800. - lt_exit=$?
  59801. -
  59802. - # Restore the uninstalled library and exit
  59803. - if test "$mode" = relink; then
  59804. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  59805. - fi
  59806. + # We have no uninstalled library dependencies, so finalize right now.
  59807. + exit_status=0
  59808. + func_show_eval "$link_command" 'exit_status=$?'
  59809. - exit $lt_exit
  59810. - }
  59811. - done
  59812. - IFS="$save_ifs"
  59813. + # Delete the generated files.
  59814. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  59815. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  59816. fi
  59817. - # Install the pseudo-library for information purposes.
  59818. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59819. - instname="$dir/$name"i
  59820. - $show "$install_prog $instname $destdir/$name"
  59821. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  59822. -
  59823. - # Maybe install the static library, too.
  59824. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  59825. - ;;
  59826. + exit $exit_status
  59827. + fi
  59828. - *.lo)
  59829. - # Install (i.e. copy) a libtool object.
  59830. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  59831. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  59832. + fi
  59833. + if test -n "$finalize_shlibpath"; then
  59834. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  59835. + fi
  59836. - # Figure out destination file name, if it wasn't already specified.
  59837. - if test -n "$destname"; then
  59838. - destfile="$destdir/$destname"
  59839. - else
  59840. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59841. - destfile="$destdir/$destfile"
  59842. + compile_var=
  59843. + finalize_var=
  59844. + if test -n "$runpath_var"; then
  59845. + if test -n "$perm_rpath"; then
  59846. + # We should set the runpath_var.
  59847. + rpath=
  59848. + for dir in $perm_rpath; do
  59849. + rpath="$rpath$dir:"
  59850. + done
  59851. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  59852. fi
  59853. -
  59854. - # Deduce the name of the destination old-style object file.
  59855. - case $destfile in
  59856. - *.lo)
  59857. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  59858. - ;;
  59859. - *.$objext)
  59860. - staticdest="$destfile"
  59861. - destfile=
  59862. - ;;
  59863. - *)
  59864. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  59865. - $echo "$help" 1>&2
  59866. - exit $EXIT_FAILURE
  59867. - ;;
  59868. - esac
  59869. -
  59870. - # Install the libtool object if requested.
  59871. - if test -n "$destfile"; then
  59872. - $show "$install_prog $file $destfile"
  59873. - $run eval "$install_prog $file $destfile" || exit $?
  59874. + if test -n "$finalize_perm_rpath"; then
  59875. + # We should set the runpath_var.
  59876. + rpath=
  59877. + for dir in $finalize_perm_rpath; do
  59878. + rpath="$rpath$dir:"
  59879. + done
  59880. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  59881. fi
  59882. + fi
  59883. - # Install the old object if enabled.
  59884. - if test "$build_old_libs" = yes; then
  59885. - # Deduce the name of the old-style object file.
  59886. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  59887. -
  59888. - $show "$install_prog $staticobj $staticdest"
  59889. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  59890. - fi
  59891. + if test "$no_install" = yes; then
  59892. + # We don't need to create a wrapper script.
  59893. + link_command="$compile_var$compile_command$compile_rpath"
  59894. + # Replace the output file specification.
  59895. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  59896. + # Delete the old output file.
  59897. + $opt_dry_run || $RM $output
  59898. + # Link the executable and exit
  59899. + func_show_eval "$link_command" 'exit $?'
  59900. exit $EXIT_SUCCESS
  59901. - ;;
  59902. + fi
  59903. - *)
  59904. - # Figure out destination file name, if it wasn't already specified.
  59905. - if test -n "$destname"; then
  59906. - destfile="$destdir/$destname"
  59907. + if test "$hardcode_action" = relink; then
  59908. + # Fast installation is not supported
  59909. + link_command="$compile_var$compile_command$compile_rpath"
  59910. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  59911. +
  59912. + func_warning "this platform does not like uninstalled shared libraries"
  59913. + func_warning "\`$output' will be relinked during installation"
  59914. + else
  59915. + if test "$fast_install" != no; then
  59916. + link_command="$finalize_var$compile_command$finalize_rpath"
  59917. + if test "$fast_install" = yes; then
  59918. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  59919. + else
  59920. + # fast_install is set to needless
  59921. + relink_command=
  59922. + fi
  59923. else
  59924. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59925. - destfile="$destdir/$destfile"
  59926. + link_command="$compile_var$compile_command$compile_rpath"
  59927. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  59928. fi
  59929. + fi
  59930. - # If the file is missing, and there is a .exe on the end, strip it
  59931. - # because it is most likely a libtool script we actually want to
  59932. - # install
  59933. - stripped_ext=""
  59934. - case $file in
  59935. - *.exe)
  59936. - if test ! -f "$file"; then
  59937. - file=`$echo $file|${SED} 's,.exe$,,'`
  59938. - stripped_ext=".exe"
  59939. - fi
  59940. - ;;
  59941. - esac
  59942. -
  59943. - # Do a test to see if this is really a libtool program.
  59944. - case $host in
  59945. - *cygwin*|*mingw*)
  59946. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  59947. - ;;
  59948. - *)
  59949. - wrapper=$file
  59950. - ;;
  59951. - esac
  59952. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  59953. - notinst_deplibs=
  59954. - relink_command=
  59955. -
  59956. - # Note that it is not necessary on cygwin/mingw to append a dot to
  59957. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  59958. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  59959. - # `FILE.' does not work on cygwin managed mounts.
  59960. - #
  59961. - # If there is no directory component, then add one.
  59962. - case $wrapper in
  59963. - */* | *\\*) . ${wrapper} ;;
  59964. - *) . ./${wrapper} ;;
  59965. - esac
  59966. -
  59967. - # Check the variables that should have been set.
  59968. - if test -z "$notinst_deplibs"; then
  59969. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  59970. - exit $EXIT_FAILURE
  59971. - fi
  59972. + # Replace the output file specification.
  59973. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  59974. - finalize=yes
  59975. - for lib in $notinst_deplibs; do
  59976. - # Check to see that each library is installed.
  59977. - libdir=
  59978. - if test -f "$lib"; then
  59979. - # If there is no directory component, then add one.
  59980. - case $lib in
  59981. - */* | *\\*) . $lib ;;
  59982. - *) . ./$lib ;;
  59983. - esac
  59984. - fi
  59985. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  59986. - if test -n "$libdir" && test ! -f "$libfile"; then
  59987. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  59988. - finalize=no
  59989. - fi
  59990. - done
  59991. + # Delete the old output files.
  59992. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  59993. - relink_command=
  59994. - # Note that it is not necessary on cygwin/mingw to append a dot to
  59995. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  59996. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  59997. - # `FILE.' does not work on cygwin managed mounts.
  59998. - #
  59999. - # If there is no directory component, then add one.
  60000. - case $wrapper in
  60001. - */* | *\\*) . ${wrapper} ;;
  60002. - *) . ./${wrapper} ;;
  60003. - esac
  60004. + func_show_eval "$link_command" 'exit $?'
  60005. - outputname=
  60006. - if test "$fast_install" = no && test -n "$relink_command"; then
  60007. - if test "$finalize" = yes && test -z "$run"; then
  60008. - tmpdir=`func_mktempdir`
  60009. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  60010. - outputname="$tmpdir/$file"
  60011. - # Replace the output file specification.
  60012. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  60013. + # Now create the wrapper script.
  60014. + func_verbose "creating $output"
  60015. - $show "$relink_command"
  60016. - if $run eval "$relink_command"; then :
  60017. - else
  60018. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  60019. - ${rm}r "$tmpdir"
  60020. - continue
  60021. - fi
  60022. - file="$outputname"
  60023. - else
  60024. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  60025. - fi
  60026. + # Quote the relink command for shipping.
  60027. + if test -n "$relink_command"; then
  60028. + # Preserve any variables that may affect compiler behavior
  60029. + for var in $variables_saved_for_relink; do
  60030. + if eval test -z \"\${$var+set}\"; then
  60031. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  60032. + elif eval var_value=\$$var; test -z "$var_value"; then
  60033. + relink_command="$var=; export $var; $relink_command"
  60034. else
  60035. - # Install the binary that we compiled earlier.
  60036. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  60037. + func_quote_for_eval "$var_value"
  60038. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  60039. fi
  60040. - fi
  60041. + done
  60042. + relink_command="(cd `pwd`; $relink_command)"
  60043. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60044. + fi
  60045. - # remove .exe since cygwin /usr/bin/install will append another
  60046. - # one anyway
  60047. - case $install_prog,$host in
  60048. - */usr/bin/install*,*cygwin*)
  60049. - case $file:$destfile in
  60050. - *.exe:*.exe)
  60051. - # this is ok
  60052. - ;;
  60053. - *.exe:*)
  60054. - destfile=$destfile.exe
  60055. - ;;
  60056. - *:*.exe)
  60057. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  60058. - ;;
  60059. - esac
  60060. - ;;
  60061. + # Quote $ECHO for shipping.
  60062. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  60063. + case $progpath in
  60064. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  60065. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  60066. + esac
  60067. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  60068. + else
  60069. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  60070. + fi
  60071. +
  60072. + # Only actually do things if not in dry run mode.
  60073. + $opt_dry_run || {
  60074. + # win32 will think the script is a binary if it has
  60075. + # a .exe suffix, so we strip it off here.
  60076. + case $output in
  60077. + *.exe) func_stripname '' '.exe' "$output"
  60078. + output=$func_stripname_result ;;
  60079. + esac
  60080. + # test for cygwin because mv fails w/o .exe extensions
  60081. + case $host in
  60082. + *cygwin*)
  60083. + exeext=.exe
  60084. + func_stripname '' '.exe' "$outputname"
  60085. + outputname=$func_stripname_result ;;
  60086. + *) exeext= ;;
  60087. esac
  60088. - $show "$install_prog$stripme $file $destfile"
  60089. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  60090. - test -n "$outputname" && ${rm}r "$tmpdir"
  60091. - ;;
  60092. - esac
  60093. - done
  60094. + case $host in
  60095. + *cygwin* | *mingw* )
  60096. + func_dirname_and_basename "$output" "" "."
  60097. + output_name=$func_basename_result
  60098. + output_path=$func_dirname_result
  60099. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  60100. + cwrapper="$output_path/$output_name.exe"
  60101. + $RM $cwrappersource $cwrapper
  60102. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  60103. +
  60104. + func_emit_cwrapperexe_src > $cwrappersource
  60105. +
  60106. + # The wrapper executable is built using the $host compiler,
  60107. + # because it contains $host paths and files. If cross-
  60108. + # compiling, it, like the target executable, must be
  60109. + # executed on the $host or under an emulation environment.
  60110. + $opt_dry_run || {
  60111. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  60112. + $STRIP $cwrapper
  60113. + }
  60114. - for file in $staticlibs; do
  60115. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60116. + # Now, create the wrapper script for func_source use:
  60117. + func_ltwrapper_scriptname $cwrapper
  60118. + $RM $func_ltwrapper_scriptname_result
  60119. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  60120. + $opt_dry_run || {
  60121. + # note: this script will not be executed, so do not chmod.
  60122. + if test "x$build" = "x$host" ; then
  60123. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  60124. + else
  60125. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  60126. + fi
  60127. + }
  60128. + ;;
  60129. + * )
  60130. + $RM $output
  60131. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  60132. - # Set up the ranlib parameters.
  60133. - oldlib="$destdir/$name"
  60134. + func_emit_wrapper no > $output
  60135. + chmod +x $output
  60136. + ;;
  60137. + esac
  60138. + }
  60139. + exit $EXIT_SUCCESS
  60140. + ;;
  60141. + esac
  60142. - $show "$install_prog $file $oldlib"
  60143. - $run eval "$install_prog \$file \$oldlib" || exit $?
  60144. + # See if we need to build an old-fashioned archive.
  60145. + for oldlib in $oldlibs; do
  60146. - if test -n "$stripme" && test -n "$old_striplib"; then
  60147. - $show "$old_striplib $oldlib"
  60148. - $run eval "$old_striplib $oldlib" || exit $?
  60149. + if test "$build_libtool_libs" = convenience; then
  60150. + oldobjs="$libobjs_save $symfileobj"
  60151. + addlibs="$convenience"
  60152. + build_libtool_libs=no
  60153. + else
  60154. + if test "$build_libtool_libs" = module; then
  60155. + oldobjs="$libobjs_save"
  60156. + build_libtool_libs=no
  60157. + else
  60158. + oldobjs="$old_deplibs $non_pic_objects"
  60159. + if test "$preload" = yes && test -f "$symfileobj"; then
  60160. + oldobjs="$oldobjs $symfileobj"
  60161. + fi
  60162. + fi
  60163. + addlibs="$old_convenience"
  60164. fi
  60165. - # Do each command in the postinstall commands.
  60166. - cmds=$old_postinstall_cmds
  60167. - save_ifs="$IFS"; IFS='~'
  60168. - for cmd in $cmds; do
  60169. - IFS="$save_ifs"
  60170. - eval cmd=\"$cmd\"
  60171. - $show "$cmd"
  60172. - $run eval "$cmd" || exit $?
  60173. - done
  60174. - IFS="$save_ifs"
  60175. - done
  60176. + if test -n "$addlibs"; then
  60177. + gentop="$output_objdir/${outputname}x"
  60178. + generated="$generated $gentop"
  60179. - if test -n "$future_libdirs"; then
  60180. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  60181. - fi
  60182. + func_extract_archives $gentop $addlibs
  60183. + oldobjs="$oldobjs $func_extract_archives_result"
  60184. + fi
  60185. - if test -n "$current_libdirs"; then
  60186. - # Maybe just do a dry run.
  60187. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  60188. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  60189. - else
  60190. - exit $EXIT_SUCCESS
  60191. - fi
  60192. - ;;
  60193. + # Do each command in the archive commands.
  60194. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  60195. + cmds=$old_archive_from_new_cmds
  60196. + else
  60197. - # libtool finish mode
  60198. - finish)
  60199. - modename="$modename: finish"
  60200. - libdirs="$nonopt"
  60201. - admincmds=
  60202. + # Add any objects from preloaded convenience libraries
  60203. + if test -n "$dlprefiles"; then
  60204. + gentop="$output_objdir/${outputname}x"
  60205. + generated="$generated $gentop"
  60206. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  60207. - for dir
  60208. - do
  60209. - libdirs="$libdirs $dir"
  60210. - done
  60211. + func_extract_archives $gentop $dlprefiles
  60212. + oldobjs="$oldobjs $func_extract_archives_result"
  60213. + fi
  60214. - for libdir in $libdirs; do
  60215. - if test -n "$finish_cmds"; then
  60216. - # Do each command in the finish commands.
  60217. - cmds=$finish_cmds
  60218. - save_ifs="$IFS"; IFS='~'
  60219. - for cmd in $cmds; do
  60220. - IFS="$save_ifs"
  60221. - eval cmd=\"$cmd\"
  60222. - $show "$cmd"
  60223. - $run eval "$cmd" || admincmds="$admincmds
  60224. - $cmd"
  60225. + # POSIX demands no paths to be encoded in archives. We have
  60226. + # to avoid creating archives with duplicate basenames if we
  60227. + # might have to extract them afterwards, e.g., when creating a
  60228. + # static archive out of a convenience library, or when linking
  60229. + # the entirety of a libtool archive into another (currently
  60230. + # not supported by libtool).
  60231. + if (for obj in $oldobjs
  60232. + do
  60233. + func_basename "$obj"
  60234. + $ECHO "$func_basename_result"
  60235. + done | sort | sort -uc >/dev/null 2>&1); then
  60236. + :
  60237. + else
  60238. + $ECHO "copying selected object files to avoid basename conflicts..."
  60239. + gentop="$output_objdir/${outputname}x"
  60240. + generated="$generated $gentop"
  60241. + func_mkdir_p "$gentop"
  60242. + save_oldobjs=$oldobjs
  60243. + oldobjs=
  60244. + counter=1
  60245. + for obj in $save_oldobjs
  60246. + do
  60247. + func_basename "$obj"
  60248. + objbase="$func_basename_result"
  60249. + case " $oldobjs " in
  60250. + " ") oldobjs=$obj ;;
  60251. + *[\ /]"$objbase "*)
  60252. + while :; do
  60253. + # Make sure we don't pick an alternate name that also
  60254. + # overlaps.
  60255. + newobj=lt$counter-$objbase
  60256. + func_arith $counter + 1
  60257. + counter=$func_arith_result
  60258. + case " $oldobjs " in
  60259. + *[\ /]"$newobj "*) ;;
  60260. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  60261. + esac
  60262. + done
  60263. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  60264. + oldobjs="$oldobjs $gentop/$newobj"
  60265. + ;;
  60266. + *) oldobjs="$oldobjs $obj" ;;
  60267. + esac
  60268. done
  60269. - IFS="$save_ifs"
  60270. fi
  60271. - if test -n "$finish_eval"; then
  60272. - # Do the single finish_eval.
  60273. - eval cmds=\"$finish_eval\"
  60274. - $run eval "$cmds" || admincmds="$admincmds
  60275. - $cmds"
  60276. - fi
  60277. - done
  60278. - fi
  60279. -
  60280. - # Exit here if they wanted silent mode.
  60281. - test "$show" = : && exit $EXIT_SUCCESS
  60282. + eval cmds=\"$old_archive_cmds\"
  60283. - $echo "X----------------------------------------------------------------------" | $Xsed
  60284. - $echo "Libraries have been installed in:"
  60285. - for libdir in $libdirs; do
  60286. - $echo " $libdir"
  60287. + func_len " $cmds"
  60288. + len=$func_len_result
  60289. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  60290. + cmds=$old_archive_cmds
  60291. + else
  60292. + # the command line is too long to link in one step, link in parts
  60293. + func_verbose "using piecewise archive linking..."
  60294. + save_RANLIB=$RANLIB
  60295. + RANLIB=:
  60296. + objlist=
  60297. + concat_cmds=
  60298. + save_oldobjs=$oldobjs
  60299. + oldobjs=
  60300. + # Is there a better way of finding the last object in the list?
  60301. + for obj in $save_oldobjs
  60302. + do
  60303. + last_oldobj=$obj
  60304. + done
  60305. + eval test_cmds=\"$old_archive_cmds\"
  60306. + func_len " $test_cmds"
  60307. + len0=$func_len_result
  60308. + len=$len0
  60309. + for obj in $save_oldobjs
  60310. + do
  60311. + func_len " $obj"
  60312. + func_arith $len + $func_len_result
  60313. + len=$func_arith_result
  60314. + func_append objlist " $obj"
  60315. + if test "$len" -lt "$max_cmd_len"; then
  60316. + :
  60317. + else
  60318. + # the above command should be used before it gets too long
  60319. + oldobjs=$objlist
  60320. + if test "$obj" = "$last_oldobj" ; then
  60321. + RANLIB=$save_RANLIB
  60322. + fi
  60323. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  60324. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  60325. + objlist=
  60326. + len=$len0
  60327. + fi
  60328. + done
  60329. + RANLIB=$save_RANLIB
  60330. + oldobjs=$objlist
  60331. + if test "X$oldobjs" = "X" ; then
  60332. + eval cmds=\"\$concat_cmds\"
  60333. + else
  60334. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  60335. + fi
  60336. + fi
  60337. + fi
  60338. + func_execute_cmds "$cmds" 'exit $?'
  60339. done
  60340. - $echo
  60341. - $echo "If you ever happen to want to link against installed libraries"
  60342. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  60343. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  60344. - $echo "flag during linking and do at least one of the following:"
  60345. - if test -n "$shlibpath_var"; then
  60346. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  60347. - $echo " during execution"
  60348. - fi
  60349. - if test -n "$runpath_var"; then
  60350. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  60351. - $echo " during linking"
  60352. - fi
  60353. - if test -n "$hardcode_libdir_flag_spec"; then
  60354. - libdir=LIBDIR
  60355. - eval flag=\"$hardcode_libdir_flag_spec\"
  60356. -
  60357. - $echo " - use the \`$flag' linker flag"
  60358. - fi
  60359. - if test -n "$admincmds"; then
  60360. - $echo " - have your system administrator run these commands:$admincmds"
  60361. - fi
  60362. - if test -f /etc/ld.so.conf; then
  60363. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  60364. - fi
  60365. - $echo
  60366. - $echo "See any operating system documentation about shared libraries for"
  60367. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  60368. - $echo "X----------------------------------------------------------------------" | $Xsed
  60369. - exit $EXIT_SUCCESS
  60370. - ;;
  60371. - # libtool execute mode
  60372. - execute)
  60373. - modename="$modename: execute"
  60374. -
  60375. - # The first argument is the command name.
  60376. - cmd="$nonopt"
  60377. - if test -z "$cmd"; then
  60378. - $echo "$modename: you must specify a COMMAND" 1>&2
  60379. - $echo "$help"
  60380. - exit $EXIT_FAILURE
  60381. - fi
  60382. + test -n "$generated" && \
  60383. + func_show_eval "${RM}r$generated"
  60384. - # Handle -dlopen flags immediately.
  60385. - for file in $execute_dlfiles; do
  60386. - if test ! -f "$file"; then
  60387. - $echo "$modename: \`$file' is not a file" 1>&2
  60388. - $echo "$help" 1>&2
  60389. - exit $EXIT_FAILURE
  60390. - fi
  60391. + # Now create the libtool archive.
  60392. + case $output in
  60393. + *.la)
  60394. + old_library=
  60395. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  60396. + func_verbose "creating $output"
  60397. - dir=
  60398. - case $file in
  60399. - *.la)
  60400. - # Check to see that this really is a libtool archive.
  60401. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  60402. + # Preserve any variables that may affect compiler behavior
  60403. + for var in $variables_saved_for_relink; do
  60404. + if eval test -z \"\${$var+set}\"; then
  60405. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  60406. + elif eval var_value=\$$var; test -z "$var_value"; then
  60407. + relink_command="$var=; export $var; $relink_command"
  60408. else
  60409. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  60410. - $echo "$help" 1>&2
  60411. - exit $EXIT_FAILURE
  60412. + func_quote_for_eval "$var_value"
  60413. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  60414. fi
  60415. + done
  60416. + # Quote the link command for shipping.
  60417. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  60418. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60419. + if test "$hardcode_automatic" = yes ; then
  60420. + relink_command=
  60421. + fi
  60422. - # Read the libtool library.
  60423. - dlname=
  60424. - library_names=
  60425. + # Only create the output if not a dry run.
  60426. + $opt_dry_run || {
  60427. + for installed in no yes; do
  60428. + if test "$installed" = yes; then
  60429. + if test -z "$install_libdir"; then
  60430. + break
  60431. + fi
  60432. + output="$output_objdir/$outputname"i
  60433. + # Replace all uninstalled libtool libraries with the installed ones
  60434. + newdependency_libs=
  60435. + for deplib in $dependency_libs; do
  60436. + case $deplib in
  60437. + *.la)
  60438. + func_basename "$deplib"
  60439. + name="$func_basename_result"
  60440. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  60441. + test -z "$libdir" && \
  60442. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  60443. + newdependency_libs="$newdependency_libs $libdir/$name"
  60444. + ;;
  60445. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  60446. + esac
  60447. + done
  60448. + dependency_libs="$newdependency_libs"
  60449. + newdlfiles=
  60450. +
  60451. + for lib in $dlfiles; do
  60452. + case $lib in
  60453. + *.la)
  60454. + func_basename "$lib"
  60455. + name="$func_basename_result"
  60456. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60457. + test -z "$libdir" && \
  60458. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60459. + newdlfiles="$newdlfiles $libdir/$name"
  60460. + ;;
  60461. + *) newdlfiles="$newdlfiles $lib" ;;
  60462. + esac
  60463. + done
  60464. + dlfiles="$newdlfiles"
  60465. + newdlprefiles=
  60466. + for lib in $dlprefiles; do
  60467. + case $lib in
  60468. + *.la)
  60469. + # Only pass preopened files to the pseudo-archive (for
  60470. + # eventual linking with the app. that links it) if we
  60471. + # didn't already link the preopened objects directly into
  60472. + # the library:
  60473. + func_basename "$lib"
  60474. + name="$func_basename_result"
  60475. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60476. + test -z "$libdir" && \
  60477. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60478. + newdlprefiles="$newdlprefiles $libdir/$name"
  60479. + ;;
  60480. + esac
  60481. + done
  60482. + dlprefiles="$newdlprefiles"
  60483. + else
  60484. + newdlfiles=
  60485. + for lib in $dlfiles; do
  60486. + case $lib in
  60487. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60488. + *) abs=`pwd`"/$lib" ;;
  60489. + esac
  60490. + newdlfiles="$newdlfiles $abs"
  60491. + done
  60492. + dlfiles="$newdlfiles"
  60493. + newdlprefiles=
  60494. + for lib in $dlprefiles; do
  60495. + case $lib in
  60496. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60497. + *) abs=`pwd`"/$lib" ;;
  60498. + esac
  60499. + newdlprefiles="$newdlprefiles $abs"
  60500. + done
  60501. + dlprefiles="$newdlprefiles"
  60502. + fi
  60503. + $RM $output
  60504. + # place dlname in correct position for cygwin
  60505. + tdlname=$dlname
  60506. + case $host,$output,$installed,$module,$dlname in
  60507. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  60508. + esac
  60509. + $ECHO > $output "\
  60510. +# $outputname - a libtool library file
  60511. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  60512. +#
  60513. +# Please DO NOT delete this file!
  60514. +# It is necessary for linking the library.
  60515. - # If there is no directory component, then add one.
  60516. - case $file in
  60517. - */* | *\\*) . $file ;;
  60518. - *) . ./$file ;;
  60519. - esac
  60520. +# The name that we can dlopen(3).
  60521. +dlname='$tdlname'
  60522. - # Skip this library if it cannot be dlopened.
  60523. - if test -z "$dlname"; then
  60524. - # Warn if it was a shared library.
  60525. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  60526. - continue
  60527. - fi
  60528. +# Names of this library.
  60529. +library_names='$library_names'
  60530. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60531. - test "X$dir" = "X$file" && dir=.
  60532. +# The name of the static archive.
  60533. +old_library='$old_library'
  60534. - if test -f "$dir/$objdir/$dlname"; then
  60535. - dir="$dir/$objdir"
  60536. - else
  60537. - if test ! -f "$dir/$dlname"; then
  60538. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  60539. - exit $EXIT_FAILURE
  60540. - fi
  60541. - fi
  60542. - ;;
  60543. +# Linker flags that can not go in dependency_libs.
  60544. +inherited_linker_flags='$new_inherited_linker_flags'
  60545. - *.lo)
  60546. - # Just add the directory containing the .lo file.
  60547. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60548. - test "X$dir" = "X$file" && dir=.
  60549. - ;;
  60550. +# Libraries that this one depends upon.
  60551. +dependency_libs='$dependency_libs'
  60552. - *)
  60553. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  60554. - continue
  60555. - ;;
  60556. - esac
  60557. +# Names of additional weak libraries provided by this library
  60558. +weak_library_names='$weak_libs'
  60559. - # Get the absolute pathname.
  60560. - absdir=`cd "$dir" && pwd`
  60561. - test -n "$absdir" && dir="$absdir"
  60562. +# Version information for $libname.
  60563. +current=$current
  60564. +age=$age
  60565. +revision=$revision
  60566. - # Now add the directory to shlibpath_var.
  60567. - if eval "test -z \"\$$shlibpath_var\""; then
  60568. - eval "$shlibpath_var=\"\$dir\""
  60569. - else
  60570. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  60571. - fi
  60572. - done
  60573. +# Is this an already installed library?
  60574. +installed=$installed
  60575. - # This variable tells wrapper scripts just to set shlibpath_var
  60576. - # rather than running their programs.
  60577. - libtool_execute_magic="$magic"
  60578. +# Should we warn about portability when linking against -modules?
  60579. +shouldnotlink=$module
  60580. - # Check if any of the arguments is a wrapper script.
  60581. - args=
  60582. - for file
  60583. - do
  60584. - case $file in
  60585. - -*) ;;
  60586. - *)
  60587. - # Do a test to see if this is really a libtool program.
  60588. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60589. - # If there is no directory component, then add one.
  60590. - case $file in
  60591. - */* | *\\*) . $file ;;
  60592. - *) . ./$file ;;
  60593. - esac
  60594. +# Files to dlopen/dlpreopen
  60595. +dlopen='$dlfiles'
  60596. +dlpreopen='$dlprefiles'
  60597. - # Transform arg to wrapped name.
  60598. - file="$progdir/$program"
  60599. - fi
  60600. - ;;
  60601. - esac
  60602. - # Quote arguments (to preserve shell metacharacters).
  60603. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  60604. - args="$args \"$file\""
  60605. - done
  60606. +# Directory that this library needs to be installed in:
  60607. +libdir='$install_libdir'"
  60608. + if test "$installed" = no && test "$need_relink" = yes; then
  60609. + $ECHO >> $output "\
  60610. +relink_command=\"$relink_command\""
  60611. + fi
  60612. + done
  60613. + }
  60614. - if test -z "$run"; then
  60615. - if test -n "$shlibpath_var"; then
  60616. - # Export the shlibpath_var.
  60617. - eval "export $shlibpath_var"
  60618. - fi
  60619. + # Do a symbolic link so that the libtool archive can be found in
  60620. + # LD_LIBRARY_PATH before the program is installed.
  60621. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  60622. + ;;
  60623. + esac
  60624. + exit $EXIT_SUCCESS
  60625. +}
  60626. - # Restore saved environment variables
  60627. - for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  60628. - do
  60629. - eval "if test \"\${save_$lt_var+set}\" = set; then
  60630. - $lt_var=\$save_$lt_var; export $lt_var
  60631. - fi"
  60632. - done
  60633. +{ test "$mode" = link || test "$mode" = relink; } &&
  60634. + func_mode_link ${1+"$@"}
  60635. - # Now prepare to actually exec the command.
  60636. - exec_cmd="\$cmd$args"
  60637. - else
  60638. - # Display what would be done.
  60639. - if test -n "$shlibpath_var"; then
  60640. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  60641. - $echo "export $shlibpath_var"
  60642. - fi
  60643. - $echo "$cmd$args"
  60644. - exit $EXIT_SUCCESS
  60645. - fi
  60646. - ;;
  60647. - # libtool clean and uninstall mode
  60648. - clean | uninstall)
  60649. - modename="$modename: $mode"
  60650. - rm="$nonopt"
  60651. +# func_mode_uninstall arg...
  60652. +func_mode_uninstall ()
  60653. +{
  60654. + $opt_debug
  60655. + RM="$nonopt"
  60656. files=
  60657. rmforce=
  60658. exit_status=0
  60659. @@ -6521,30 +8209,28 @@
  60660. for arg
  60661. do
  60662. case $arg in
  60663. - -f) rm="$rm $arg"; rmforce=yes ;;
  60664. - -*) rm="$rm $arg" ;;
  60665. + -f) RM="$RM $arg"; rmforce=yes ;;
  60666. + -*) RM="$RM $arg" ;;
  60667. *) files="$files $arg" ;;
  60668. esac
  60669. done
  60670. - if test -z "$rm"; then
  60671. - $echo "$modename: you must specify an RM program" 1>&2
  60672. - $echo "$help" 1>&2
  60673. - exit $EXIT_FAILURE
  60674. - fi
  60675. + test -z "$RM" && \
  60676. + func_fatal_help "you must specify an RM program"
  60677. rmdirs=
  60678. origobjdir="$objdir"
  60679. for file in $files; do
  60680. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60681. - if test "X$dir" = "X$file"; then
  60682. - dir=.
  60683. + func_dirname "$file" "" "."
  60684. + dir="$func_dirname_result"
  60685. + if test "X$dir" = X.; then
  60686. objdir="$origobjdir"
  60687. else
  60688. objdir="$dir/$origobjdir"
  60689. fi
  60690. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60691. + func_basename "$file"
  60692. + name="$func_basename_result"
  60693. test "$mode" = uninstall && objdir="$dir"
  60694. # Remember objdir for removal later, being careful to avoid duplicates
  60695. @@ -6556,9 +8242,9 @@
  60696. fi
  60697. # Don't error if the file doesn't exist and rm -f was used.
  60698. - if (test -L "$file") >/dev/null 2>&1 \
  60699. - || (test -h "$file") >/dev/null 2>&1 \
  60700. - || test -f "$file"; then
  60701. + if { test -L "$file"; } >/dev/null 2>&1 ||
  60702. + { test -h "$file"; } >/dev/null 2>&1 ||
  60703. + test -f "$file"; then
  60704. :
  60705. elif test -d "$file"; then
  60706. exit_status=1
  60707. @@ -6572,8 +8258,8 @@
  60708. case $name in
  60709. *.la)
  60710. # Possibly a libtool archive, so verify it.
  60711. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60712. - . $dir/$name
  60713. + if func_lalib_p "$file"; then
  60714. + func_source $dir/$name
  60715. # Delete the libtool libraries and symlinks.
  60716. for n in $library_names; do
  60717. @@ -6588,39 +8274,17 @@
  60718. *" $dlname "*) ;;
  60719. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  60720. esac
  60721. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  60722. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  60723. ;;
  60724. uninstall)
  60725. if test -n "$library_names"; then
  60726. # Do each command in the postuninstall commands.
  60727. - cmds=$postuninstall_cmds
  60728. - save_ifs="$IFS"; IFS='~'
  60729. - for cmd in $cmds; do
  60730. - IFS="$save_ifs"
  60731. - eval cmd=\"$cmd\"
  60732. - $show "$cmd"
  60733. - $run eval "$cmd"
  60734. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  60735. - exit_status=1
  60736. - fi
  60737. - done
  60738. - IFS="$save_ifs"
  60739. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  60740. fi
  60741. if test -n "$old_library"; then
  60742. # Do each command in the old_postuninstall commands.
  60743. - cmds=$old_postuninstall_cmds
  60744. - save_ifs="$IFS"; IFS='~'
  60745. - for cmd in $cmds; do
  60746. - IFS="$save_ifs"
  60747. - eval cmd=\"$cmd\"
  60748. - $show "$cmd"
  60749. - $run eval "$cmd"
  60750. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  60751. - exit_status=1
  60752. - fi
  60753. - done
  60754. - IFS="$save_ifs"
  60755. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  60756. fi
  60757. # FIXME: should reinstall the best remaining shared library.
  60758. ;;
  60759. @@ -6630,20 +8294,20 @@
  60760. *.lo)
  60761. # Possibly a libtool object, so verify it.
  60762. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60763. + if func_lalib_p "$file"; then
  60764. # Read the .lo file
  60765. - . $dir/$name
  60766. + func_source $dir/$name
  60767. # Add PIC object to the list of files to remove.
  60768. - if test -n "$pic_object" \
  60769. - && test "$pic_object" != none; then
  60770. + if test -n "$pic_object" &&
  60771. + test "$pic_object" != none; then
  60772. rmfiles="$rmfiles $dir/$pic_object"
  60773. fi
  60774. # Add non-PIC object to the list of files to remove.
  60775. - if test -n "$non_pic_object" \
  60776. - && test "$non_pic_object" != none; then
  60777. + if test -n "$non_pic_object" &&
  60778. + test "$non_pic_object" != none; then
  60779. rmfiles="$rmfiles $dir/$non_pic_object"
  60780. fi
  60781. fi
  60782. @@ -6654,17 +8318,26 @@
  60783. noexename=$name
  60784. case $file in
  60785. *.exe)
  60786. - file=`$echo $file|${SED} 's,.exe$,,'`
  60787. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  60788. + func_stripname '' '.exe' "$file"
  60789. + file=$func_stripname_result
  60790. + func_stripname '' '.exe' "$name"
  60791. + noexename=$func_stripname_result
  60792. # $file with .exe has already been added to rmfiles,
  60793. # add $file without .exe
  60794. rmfiles="$rmfiles $file"
  60795. ;;
  60796. esac
  60797. # Do a test to see if this is a libtool program.
  60798. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60799. - relink_command=
  60800. - . $dir/$noexename
  60801. + if func_ltwrapper_p "$file"; then
  60802. + if func_ltwrapper_executable_p "$file"; then
  60803. + func_ltwrapper_scriptname "$file"
  60804. + relink_command=
  60805. + func_source $func_ltwrapper_scriptname_result
  60806. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  60807. + else
  60808. + relink_command=
  60809. + func_source $dir/$noexename
  60810. + fi
  60811. # note $name still contains .exe if it was in $file originally
  60812. # as does the version of $file that was added into $rmfiles
  60813. @@ -6679,239 +8352,38 @@
  60814. fi
  60815. ;;
  60816. esac
  60817. - $show "$rm $rmfiles"
  60818. - $run $rm $rmfiles || exit_status=1
  60819. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  60820. done
  60821. objdir="$origobjdir"
  60822. # Try to remove the ${objdir}s in the directories where we deleted files
  60823. for dir in $rmdirs; do
  60824. if test -d "$dir"; then
  60825. - $show "rmdir $dir"
  60826. - $run rmdir $dir >/dev/null 2>&1
  60827. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  60828. fi
  60829. done
  60830. exit $exit_status
  60831. - ;;
  60832. +}
  60833. - "")
  60834. - $echo "$modename: you must specify a MODE" 1>&2
  60835. - $echo "$generic_help" 1>&2
  60836. - exit $EXIT_FAILURE
  60837. - ;;
  60838. - esac
  60839. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  60840. + func_mode_uninstall ${1+"$@"}
  60841. - if test -z "$exec_cmd"; then
  60842. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  60843. - $echo "$generic_help" 1>&2
  60844. - exit $EXIT_FAILURE
  60845. - fi
  60846. -fi # test -z "$show_help"
  60847. +test -z "$mode" && {
  60848. + help="$generic_help"
  60849. + func_fatal_help "you must specify a MODE"
  60850. +}
  60851. +
  60852. +test -z "$exec_cmd" && \
  60853. + func_fatal_help "invalid operation mode \`$mode'"
  60854. if test -n "$exec_cmd"; then
  60855. - eval exec $exec_cmd
  60856. + eval exec "$exec_cmd"
  60857. exit $EXIT_FAILURE
  60858. fi
  60859. -# We need to display help for each of the modes.
  60860. -case $mode in
  60861. -"") $echo \
  60862. -"Usage: $modename [OPTION]... [MODE-ARG]...
  60863. -
  60864. -Provide generalized library-building support services.
  60865. -
  60866. - --config show all configuration variables
  60867. - --debug enable verbose shell tracing
  60868. --n, --dry-run display commands without modifying any files
  60869. - --features display basic configuration information and exit
  60870. - --finish same as \`--mode=finish'
  60871. - --help display this help message and exit
  60872. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  60873. - --quiet same as \`--silent'
  60874. - --silent don't print informational messages
  60875. - --tag=TAG use configuration variables from tag TAG
  60876. - --version print version information
  60877. -
  60878. -MODE must be one of the following:
  60879. -
  60880. - clean remove files from the build directory
  60881. - compile compile a source file into a libtool object
  60882. - execute automatically set library path, then run a program
  60883. - finish complete the installation of libtool libraries
  60884. - install install libraries or executables
  60885. - link create a library or an executable
  60886. - uninstall remove libraries from an installed directory
  60887. -
  60888. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  60889. -a more detailed description of MODE.
  60890. -
  60891. -Report bugs to <bug-libtool@gnu.org>."
  60892. - exit $EXIT_SUCCESS
  60893. - ;;
  60894. -
  60895. -clean)
  60896. - $echo \
  60897. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  60898. -
  60899. -Remove files from the build directory.
  60900. -
  60901. -RM is the name of the program to use to delete files associated with each FILE
  60902. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  60903. -to RM.
  60904. -
  60905. -If FILE is a libtool library, object or program, all the files associated
  60906. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  60907. - ;;
  60908. -
  60909. -compile)
  60910. - $echo \
  60911. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  60912. -
  60913. -Compile a source file into a libtool library object.
  60914. -
  60915. -This mode accepts the following additional options:
  60916. -
  60917. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  60918. - -prefer-pic try to building PIC objects only
  60919. - -prefer-non-pic try to building non-PIC objects only
  60920. - -static always build a \`.o' file suitable for static linking
  60921. -
  60922. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  60923. -from the given SOURCEFILE.
  60924. -
  60925. -The output file name is determined by removing the directory component from
  60926. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  60927. -library object suffix, \`.lo'."
  60928. - ;;
  60929. -
  60930. -execute)
  60931. - $echo \
  60932. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  60933. -
  60934. -Automatically set library path, then run a program.
  60935. -
  60936. -This mode accepts the following additional options:
  60937. -
  60938. - -dlopen FILE add the directory containing FILE to the library path
  60939. -
  60940. -This mode sets the library path environment variable according to \`-dlopen'
  60941. -flags.
  60942. -
  60943. -If any of the ARGS are libtool executable wrappers, then they are translated
  60944. -into their corresponding uninstalled binary, and any of their required library
  60945. -directories are added to the library path.
  60946. -
  60947. -Then, COMMAND is executed, with ARGS as arguments."
  60948. - ;;
  60949. -
  60950. -finish)
  60951. - $echo \
  60952. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  60953. -
  60954. -Complete the installation of libtool libraries.
  60955. -
  60956. -Each LIBDIR is a directory that contains libtool libraries.
  60957. -
  60958. -The commands that this mode executes may require superuser privileges. Use
  60959. -the \`--dry-run' option if you just want to see what would be executed."
  60960. - ;;
  60961. -
  60962. -install)
  60963. - $echo \
  60964. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  60965. -
  60966. -Install executables or libraries.
  60967. -
  60968. -INSTALL-COMMAND is the installation command. The first component should be
  60969. -either the \`install' or \`cp' program.
  60970. -
  60971. -The rest of the components are interpreted as arguments to that command (only
  60972. -BSD-compatible install options are recognized)."
  60973. - ;;
  60974. -
  60975. -link)
  60976. - $echo \
  60977. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  60978. -
  60979. -Link object files or libraries together to form another library, or to
  60980. -create an executable program.
  60981. +exit $exit_status
  60982. -LINK-COMMAND is a command using the C compiler that you would use to create
  60983. -a program from several object files.
  60984. -
  60985. -The following components of LINK-COMMAND are treated specially:
  60986. -
  60987. - -all-static do not do any dynamic linking at all
  60988. - -avoid-version do not add a version suffix if possible
  60989. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  60990. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  60991. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  60992. - -export-symbols SYMFILE
  60993. - try to export only the symbols listed in SYMFILE
  60994. - -export-symbols-regex REGEX
  60995. - try to export only the symbols matching REGEX
  60996. - -LLIBDIR search LIBDIR for required installed libraries
  60997. - -lNAME OUTPUT-FILE requires the installed library libNAME
  60998. - -module build a library that can dlopened
  60999. - -no-fast-install disable the fast-install mode
  61000. - -no-install link a not-installable executable
  61001. - -no-undefined declare that a library does not refer to external symbols
  61002. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  61003. - -objectlist FILE Use a list of object files found in FILE to specify objects
  61004. - -precious-files-regex REGEX
  61005. - don't remove output files matching REGEX
  61006. - -release RELEASE specify package release information
  61007. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  61008. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  61009. - -static do not do any dynamic linking of uninstalled libtool libraries
  61010. - -static-libtool-libs
  61011. - do not do any dynamic linking of libtool libraries
  61012. - -version-info CURRENT[:REVISION[:AGE]]
  61013. - specify library version info [each variable defaults to 0]
  61014. -
  61015. -All other options (arguments beginning with \`-') are ignored.
  61016. -
  61017. -Every other argument is treated as a filename. Files ending in \`.la' are
  61018. -treated as uninstalled libtool libraries, other files are standard or library
  61019. -object files.
  61020. -
  61021. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  61022. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  61023. -required, except when creating a convenience library.
  61024. -
  61025. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  61026. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  61027. -
  61028. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  61029. -is created, otherwise an executable program is created."
  61030. - ;;
  61031. -
  61032. -uninstall)
  61033. - $echo \
  61034. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  61035. -
  61036. -Remove libraries from an installation directory.
  61037. -
  61038. -RM is the name of the program to use to delete files associated with each FILE
  61039. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  61040. -to RM.
  61041. -
  61042. -If FILE is a libtool library, all the files associated with it are deleted.
  61043. -Otherwise, only FILE itself is deleted using RM."
  61044. - ;;
  61045. -
  61046. -*)
  61047. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  61048. - $echo "$help" 1>&2
  61049. - exit $EXIT_FAILURE
  61050. - ;;
  61051. -esac
  61052. -
  61053. -$echo
  61054. -$echo "Try \`$modename --help' for more information about other modes."
  61055. -
  61056. -exit $?
  61057. # The TAGs below are defined such that we never get into a situation
  61058. # in which we disable both kinds of libraries. Given conflicting
  61059. @@ -6925,14 +8397,17 @@
  61060. # configuration. But we'll never go from static-only to shared-only.
  61061. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  61062. -disable_libs=shared
  61063. +build_libtool_libs=no
  61064. +build_old_libs=yes
  61065. # ### END LIBTOOL TAG CONFIG: disable-shared
  61066. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  61067. -disable_libs=static
  61068. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  61069. # ### END LIBTOOL TAG CONFIG: disable-static
  61070. # Local Variables:
  61071. # mode:shell-script
  61072. # sh-indentation:2
  61073. # End:
  61074. +# vi:sw=2
  61075. +
  61076. diff -Nur libnet-1.1.5.orig/m4/libtool.m4 libnet-1.1.5/m4/libtool.m4
  61077. --- libnet-1.1.5.orig/m4/libtool.m4 1970-01-01 01:00:00.000000000 +0100
  61078. +++ libnet-1.1.5/m4/libtool.m4 2011-02-24 19:45:49.073551697 +0100
  61079. @@ -0,0 +1,7377 @@
  61080. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  61081. +#
  61082. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  61083. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  61084. +# Written by Gordon Matzigkeit, 1996
  61085. +#
  61086. +# This file is free software; the Free Software Foundation gives
  61087. +# unlimited permission to copy and/or distribute it, with or without
  61088. +# modifications, as long as this notice is preserved.
  61089. +
  61090. +m4_define([_LT_COPYING], [dnl
  61091. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  61092. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  61093. +# Written by Gordon Matzigkeit, 1996
  61094. +#
  61095. +# This file is part of GNU Libtool.
  61096. +#
  61097. +# GNU Libtool is free software; you can redistribute it and/or
  61098. +# modify it under the terms of the GNU General Public License as
  61099. +# published by the Free Software Foundation; either version 2 of
  61100. +# the License, or (at your option) any later version.
  61101. +#
  61102. +# As a special exception to the GNU General Public License,
  61103. +# if you distribute this file as part of a program or library that
  61104. +# is built using GNU Libtool, you may include this file under the
  61105. +# same distribution terms that you use for the rest of that program.
  61106. +#
  61107. +# GNU Libtool is distributed in the hope that it will be useful,
  61108. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  61109. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  61110. +# GNU General Public License for more details.
  61111. +#
  61112. +# You should have received a copy of the GNU General Public License
  61113. +# along with GNU Libtool; see the file COPYING. If not, a copy
  61114. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  61115. +# obtained by writing to the Free Software Foundation, Inc.,
  61116. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  61117. +])
  61118. +
  61119. +# serial 56 LT_INIT
  61120. +
  61121. +
  61122. +# LT_PREREQ(VERSION)
  61123. +# ------------------
  61124. +# Complain and exit if this libtool version is less that VERSION.
  61125. +m4_defun([LT_PREREQ],
  61126. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  61127. + [m4_default([$3],
  61128. + [m4_fatal([Libtool version $1 or higher is required],
  61129. + 63)])],
  61130. + [$2])])
  61131. +
  61132. +
  61133. +# _LT_CHECK_BUILDDIR
  61134. +# ------------------
  61135. +# Complain if the absolute build directory name contains unusual characters
  61136. +m4_defun([_LT_CHECK_BUILDDIR],
  61137. +[case `pwd` in
  61138. + *\ * | *\ *)
  61139. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  61140. +esac
  61141. +])
  61142. +
  61143. +
  61144. +# LT_INIT([OPTIONS])
  61145. +# ------------------
  61146. +AC_DEFUN([LT_INIT],
  61147. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  61148. +AC_BEFORE([$0], [LT_LANG])dnl
  61149. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  61150. +AC_BEFORE([$0], [LTDL_INIT])dnl
  61151. +m4_require([_LT_CHECK_BUILDDIR])dnl
  61152. +
  61153. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  61154. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  61155. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  61156. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  61157. +dnl unless we require an AC_DEFUNed macro:
  61158. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  61159. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  61160. +AC_REQUIRE([LTVERSION_VERSION])dnl
  61161. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  61162. +m4_require([_LT_PROG_LTMAIN])dnl
  61163. +
  61164. +dnl Parse OPTIONS
  61165. +_LT_SET_OPTIONS([$0], [$1])
  61166. +
  61167. +# This can be used to rebuild libtool when needed
  61168. +LIBTOOL_DEPS="$ltmain"
  61169. +
  61170. +# Always use our own libtool.
  61171. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  61172. +AC_SUBST(LIBTOOL)dnl
  61173. +
  61174. +_LT_SETUP
  61175. +
  61176. +# Only expand once:
  61177. +m4_define([LT_INIT])
  61178. +])# LT_INIT
  61179. +
  61180. +# Old names:
  61181. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  61182. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  61183. +dnl aclocal-1.4 backwards compatibility:
  61184. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  61185. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  61186. +
  61187. +
  61188. +# _LT_CC_BASENAME(CC)
  61189. +# -------------------
  61190. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  61191. +m4_defun([_LT_CC_BASENAME],
  61192. +[for cc_temp in $1""; do
  61193. + case $cc_temp in
  61194. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  61195. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  61196. + \-*) ;;
  61197. + *) break;;
  61198. + esac
  61199. +done
  61200. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  61201. +])
  61202. +
  61203. +
  61204. +# _LT_FILEUTILS_DEFAULTS
  61205. +# ----------------------
  61206. +# It is okay to use these file commands and assume they have been set
  61207. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  61208. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  61209. +[: ${CP="cp -f"}
  61210. +: ${MV="mv -f"}
  61211. +: ${RM="rm -f"}
  61212. +])# _LT_FILEUTILS_DEFAULTS
  61213. +
  61214. +
  61215. +# _LT_SETUP
  61216. +# ---------
  61217. +m4_defun([_LT_SETUP],
  61218. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  61219. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  61220. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  61221. +_LT_DECL([], [host], [0])dnl
  61222. +_LT_DECL([], [host_os], [0])dnl
  61223. +dnl
  61224. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  61225. +_LT_DECL([], [build], [0])dnl
  61226. +_LT_DECL([], [build_os], [0])dnl
  61227. +dnl
  61228. +AC_REQUIRE([AC_PROG_CC])dnl
  61229. +AC_REQUIRE([LT_PATH_LD])dnl
  61230. +AC_REQUIRE([LT_PATH_NM])dnl
  61231. +dnl
  61232. +AC_REQUIRE([AC_PROG_LN_S])dnl
  61233. +test -z "$LN_S" && LN_S="ln -s"
  61234. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  61235. +dnl
  61236. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  61237. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  61238. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  61239. +dnl
  61240. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  61241. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  61242. +m4_require([_LT_CMD_RELOAD])dnl
  61243. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  61244. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  61245. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  61246. +
  61247. +_LT_CONFIG_LIBTOOL_INIT([
  61248. +# See if we are running on zsh, and set the options which allow our
  61249. +# commands through without removal of \ escapes INIT.
  61250. +if test -n "\${ZSH_VERSION+set}" ; then
  61251. + setopt NO_GLOB_SUBST
  61252. +fi
  61253. +])
  61254. +if test -n "${ZSH_VERSION+set}" ; then
  61255. + setopt NO_GLOB_SUBST
  61256. +fi
  61257. +
  61258. +_LT_CHECK_OBJDIR
  61259. +
  61260. +m4_require([_LT_TAG_COMPILER])dnl
  61261. +_LT_PROG_ECHO_BACKSLASH
  61262. +
  61263. +case $host_os in
  61264. +aix3*)
  61265. + # AIX sometimes has problems with the GCC collect2 program. For some
  61266. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  61267. + # vanish in a puff of smoke.
  61268. + if test "X${COLLECT_NAMES+set}" != Xset; then
  61269. + COLLECT_NAMES=
  61270. + export COLLECT_NAMES
  61271. + fi
  61272. + ;;
  61273. +esac
  61274. +
  61275. +# Sed substitution that helps us do robust quoting. It backslashifies
  61276. +# metacharacters that are still active within double-quoted strings.
  61277. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  61278. +
  61279. +# Same as above, but do not quote variable references.
  61280. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  61281. +
  61282. +# Sed substitution to delay expansion of an escaped shell variable in a
  61283. +# double_quote_subst'ed string.
  61284. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  61285. +
  61286. +# Sed substitution to delay expansion of an escaped single quote.
  61287. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  61288. +
  61289. +# Sed substitution to avoid accidental globbing in evaled expressions
  61290. +no_glob_subst='s/\*/\\\*/g'
  61291. +
  61292. +# Global variables:
  61293. +ofile=libtool
  61294. +can_build_shared=yes
  61295. +
  61296. +# All known linkers require a `.a' archive for static linking (except MSVC,
  61297. +# which needs '.lib').
  61298. +libext=a
  61299. +
  61300. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  61301. +
  61302. +old_CC="$CC"
  61303. +old_CFLAGS="$CFLAGS"
  61304. +
  61305. +# Set sane defaults for various variables
  61306. +test -z "$CC" && CC=cc
  61307. +test -z "$LTCC" && LTCC=$CC
  61308. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  61309. +test -z "$LD" && LD=ld
  61310. +test -z "$ac_objext" && ac_objext=o
  61311. +
  61312. +_LT_CC_BASENAME([$compiler])
  61313. +
  61314. +# Only perform the check for file, if the check method requires it
  61315. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  61316. +case $deplibs_check_method in
  61317. +file_magic*)
  61318. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  61319. + _LT_PATH_MAGIC
  61320. + fi
  61321. + ;;
  61322. +esac
  61323. +
  61324. +# Use C for the default configuration in the libtool script
  61325. +LT_SUPPORTED_TAG([CC])
  61326. +_LT_LANG_C_CONFIG
  61327. +_LT_LANG_DEFAULT_CONFIG
  61328. +_LT_CONFIG_COMMANDS
  61329. +])# _LT_SETUP
  61330. +
  61331. +
  61332. +# _LT_PROG_LTMAIN
  61333. +# ---------------
  61334. +# Note that this code is called both from `configure', and `config.status'
  61335. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  61336. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  61337. +# so we pass a copy along to make sure it has a sensible value anyway.
  61338. +m4_defun([_LT_PROG_LTMAIN],
  61339. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  61340. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  61341. +ltmain="$ac_aux_dir/ltmain.sh"
  61342. +])# _LT_PROG_LTMAIN
  61343. +
  61344. +
  61345. +## ------------------------------------- ##
  61346. +## Accumulate code for creating libtool. ##
  61347. +## ------------------------------------- ##
  61348. +
  61349. +# So that we can recreate a full libtool script including additional
  61350. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  61351. +# in macros and then make a single call at the end using the `libtool'
  61352. +# label.
  61353. +
  61354. +
  61355. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  61356. +# ----------------------------------------
  61357. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  61358. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  61359. +[m4_ifval([$1],
  61360. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  61361. + [$1
  61362. +])])])
  61363. +
  61364. +# Initialize.
  61365. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  61366. +
  61367. +
  61368. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  61369. +# ------------------------------
  61370. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  61371. +m4_define([_LT_CONFIG_LIBTOOL],
  61372. +[m4_ifval([$1],
  61373. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  61374. + [$1
  61375. +])])])
  61376. +
  61377. +# Initialize.
  61378. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  61379. +
  61380. +
  61381. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  61382. +# -----------------------------------------------------
  61383. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  61384. +[_LT_CONFIG_LIBTOOL([$1])
  61385. +_LT_CONFIG_LIBTOOL_INIT([$2])
  61386. +])
  61387. +
  61388. +
  61389. +# _LT_FORMAT_COMMENT([COMMENT])
  61390. +# -----------------------------
  61391. +# Add leading comment marks to the start of each line, and a trailing
  61392. +# full-stop to the whole comment if one is not present already.
  61393. +m4_define([_LT_FORMAT_COMMENT],
  61394. +[m4_ifval([$1], [
  61395. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  61396. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  61397. +)])
  61398. +
  61399. +
  61400. +
  61401. +## ------------------------ ##
  61402. +## FIXME: Eliminate VARNAME ##
  61403. +## ------------------------ ##
  61404. +
  61405. +
  61406. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  61407. +# -------------------------------------------------------------------
  61408. +# CONFIGNAME is the name given to the value in the libtool script.
  61409. +# VARNAME is the (base) name used in the configure script.
  61410. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  61411. +# VARNAME. Any other value will be used directly.
  61412. +m4_define([_LT_DECL],
  61413. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  61414. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  61415. + [m4_ifval([$1], [$1], [$2])])
  61416. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  61417. + m4_ifval([$4],
  61418. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  61419. + lt_dict_add_subkey([lt_decl_dict], [$2],
  61420. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  61421. +])
  61422. +
  61423. +
  61424. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  61425. +# --------------------------------------------------------
  61426. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  61427. +
  61428. +
  61429. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  61430. +# ------------------------------------------------
  61431. +m4_define([lt_decl_tag_varnames],
  61432. +[_lt_decl_filter([tagged?], [yes], $@)])
  61433. +
  61434. +
  61435. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  61436. +# ---------------------------------------------------------
  61437. +m4_define([_lt_decl_filter],
  61438. +[m4_case([$#],
  61439. + [0], [m4_fatal([$0: too few arguments: $#])],
  61440. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  61441. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  61442. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  61443. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  61444. +])
  61445. +
  61446. +
  61447. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  61448. +# --------------------------------------------------
  61449. +m4_define([lt_decl_quote_varnames],
  61450. +[_lt_decl_filter([value], [1], $@)])
  61451. +
  61452. +
  61453. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  61454. +# ---------------------------------------------------
  61455. +m4_define([lt_decl_dquote_varnames],
  61456. +[_lt_decl_filter([value], [2], $@)])
  61457. +
  61458. +
  61459. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  61460. +# ---------------------------------------------------
  61461. +m4_define([lt_decl_varnames_tagged],
  61462. +[m4_assert([$# <= 2])dnl
  61463. +_$0(m4_quote(m4_default([$1], [[, ]])),
  61464. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  61465. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  61466. +m4_define([_lt_decl_varnames_tagged],
  61467. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  61468. +
  61469. +
  61470. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  61471. +# ------------------------------------------------
  61472. +m4_define([lt_decl_all_varnames],
  61473. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  61474. + m4_if([$2], [],
  61475. + m4_quote(lt_decl_varnames),
  61476. + m4_quote(m4_shift($@))))[]dnl
  61477. +])
  61478. +m4_define([_lt_decl_all_varnames],
  61479. +[lt_join($@, lt_decl_varnames_tagged([$1],
  61480. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  61481. +])
  61482. +
  61483. +
  61484. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  61485. +# ------------------------------------
  61486. +# Quote a variable value, and forward it to `config.status' so that its
  61487. +# declaration there will have the same value as in `configure'. VARNAME
  61488. +# must have a single quote delimited value for this to work.
  61489. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  61490. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  61491. +
  61492. +
  61493. +# _LT_CONFIG_STATUS_DECLARATIONS
  61494. +# ------------------------------
  61495. +# We delimit libtool config variables with single quotes, so when
  61496. +# we write them to config.status, we have to be sure to quote all
  61497. +# embedded single quotes properly. In configure, this macro expands
  61498. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  61499. +#
  61500. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  61501. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  61502. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  61503. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  61504. +
  61505. +
  61506. +# _LT_LIBTOOL_TAGS
  61507. +# ----------------
  61508. +# Output comment and list of tags supported by the script
  61509. +m4_defun([_LT_LIBTOOL_TAGS],
  61510. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  61511. +available_tags="_LT_TAGS"dnl
  61512. +])
  61513. +
  61514. +
  61515. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  61516. +# -----------------------------------
  61517. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  61518. +# expand to a commented shell variable setting:
  61519. +#
  61520. +# # Some comment about what VAR is for.
  61521. +# visible_name=$lt_internal_name
  61522. +m4_define([_LT_LIBTOOL_DECLARE],
  61523. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  61524. + [description])))[]dnl
  61525. +m4_pushdef([_libtool_name],
  61526. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  61527. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  61528. + [0], [_libtool_name=[$]$1],
  61529. + [1], [_libtool_name=$lt_[]$1],
  61530. + [2], [_libtool_name=$lt_[]$1],
  61531. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  61532. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  61533. +])
  61534. +
  61535. +
  61536. +# _LT_LIBTOOL_CONFIG_VARS
  61537. +# -----------------------
  61538. +# Produce commented declarations of non-tagged libtool config variables
  61539. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  61540. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  61541. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  61542. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  61543. +[m4_foreach([_lt_var],
  61544. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  61545. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  61546. +
  61547. +
  61548. +# _LT_LIBTOOL_TAG_VARS(TAG)
  61549. +# -------------------------
  61550. +m4_define([_LT_LIBTOOL_TAG_VARS],
  61551. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  61552. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  61553. +
  61554. +
  61555. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  61556. +# ------------------------------
  61557. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  61558. +
  61559. +
  61560. +# _LT_CONFIG_COMMANDS
  61561. +# -------------------
  61562. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  61563. +# variables for single and double quote escaping we saved from calls
  61564. +# to _LT_DECL, we can put quote escaped variables declarations
  61565. +# into `config.status', and then the shell code to quote escape them in
  61566. +# for loops in `config.status'. Finally, any additional code accumulated
  61567. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  61568. +m4_defun([_LT_CONFIG_COMMANDS],
  61569. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  61570. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  61571. + dnl instead of duplicating it all over again into config.status,
  61572. + dnl then we will have config.status run $CONFIG_LT later, so it
  61573. + dnl needs to know what name is stored there:
  61574. + [AC_CONFIG_COMMANDS([libtool],
  61575. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  61576. + dnl If the libtool generation code is destined for config.status,
  61577. + dnl expand the accumulated commands and init code now:
  61578. + [AC_CONFIG_COMMANDS([libtool],
  61579. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  61580. +])#_LT_CONFIG_COMMANDS
  61581. +
  61582. +
  61583. +# Initialize.
  61584. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  61585. +[
  61586. +
  61587. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  61588. +# if CDPATH is set.
  61589. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  61590. +
  61591. +sed_quote_subst='$sed_quote_subst'
  61592. +double_quote_subst='$double_quote_subst'
  61593. +delay_variable_subst='$delay_variable_subst'
  61594. +_LT_CONFIG_STATUS_DECLARATIONS
  61595. +LTCC='$LTCC'
  61596. +LTCFLAGS='$LTCFLAGS'
  61597. +compiler='$compiler_DEFAULT'
  61598. +
  61599. +# Quote evaled strings.
  61600. +for var in lt_decl_all_varnames([[ \
  61601. +]], lt_decl_quote_varnames); do
  61602. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  61603. + *[[\\\\\\\`\\"\\\$]]*)
  61604. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  61605. + ;;
  61606. + *)
  61607. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  61608. + ;;
  61609. + esac
  61610. +done
  61611. +
  61612. +# Double-quote double-evaled strings.
  61613. +for var in lt_decl_all_varnames([[ \
  61614. +]], lt_decl_dquote_varnames); do
  61615. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  61616. + *[[\\\\\\\`\\"\\\$]]*)
  61617. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  61618. + ;;
  61619. + *)
  61620. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  61621. + ;;
  61622. + esac
  61623. +done
  61624. +
  61625. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  61626. +case \$lt_ECHO in
  61627. +*'\\\[$]0 --fallback-echo"')dnl "
  61628. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  61629. + ;;
  61630. +esac
  61631. +
  61632. +_LT_OUTPUT_LIBTOOL_INIT
  61633. +])
  61634. +
  61635. +
  61636. +# LT_OUTPUT
  61637. +# ---------
  61638. +# This macro allows early generation of the libtool script (before
  61639. +# AC_OUTPUT is called), incase it is used in configure for compilation
  61640. +# tests.
  61641. +AC_DEFUN([LT_OUTPUT],
  61642. +[: ${CONFIG_LT=./config.lt}
  61643. +AC_MSG_NOTICE([creating $CONFIG_LT])
  61644. +cat >"$CONFIG_LT" <<_LTEOF
  61645. +#! $SHELL
  61646. +# Generated by $as_me.
  61647. +# Run this file to recreate a libtool stub with the current configuration.
  61648. +
  61649. +lt_cl_silent=false
  61650. +SHELL=\${CONFIG_SHELL-$SHELL}
  61651. +_LTEOF
  61652. +
  61653. +cat >>"$CONFIG_LT" <<\_LTEOF
  61654. +AS_SHELL_SANITIZE
  61655. +_AS_PREPARE
  61656. +
  61657. +exec AS_MESSAGE_FD>&1
  61658. +exec AS_MESSAGE_LOG_FD>>config.log
  61659. +{
  61660. + echo
  61661. + AS_BOX([Running $as_me.])
  61662. +} >&AS_MESSAGE_LOG_FD
  61663. +
  61664. +lt_cl_help="\
  61665. +\`$as_me' creates a local libtool stub from the current configuration,
  61666. +for use in further configure time tests before the real libtool is
  61667. +generated.
  61668. +
  61669. +Usage: $[0] [[OPTIONS]]
  61670. +
  61671. + -h, --help print this help, then exit
  61672. + -V, --version print version number, then exit
  61673. + -q, --quiet do not print progress messages
  61674. + -d, --debug don't remove temporary files
  61675. +
  61676. +Report bugs to <bug-libtool@gnu.org>."
  61677. +
  61678. +lt_cl_version="\
  61679. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  61680. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  61681. +configured by $[0], generated by m4_PACKAGE_STRING.
  61682. +
  61683. +Copyright (C) 2008 Free Software Foundation, Inc.
  61684. +This config.lt script is free software; the Free Software Foundation
  61685. +gives unlimited permision to copy, distribute and modify it."
  61686. +
  61687. +while test $[#] != 0
  61688. +do
  61689. + case $[1] in
  61690. + --version | --v* | -V )
  61691. + echo "$lt_cl_version"; exit 0 ;;
  61692. + --help | --h* | -h )
  61693. + echo "$lt_cl_help"; exit 0 ;;
  61694. + --debug | --d* | -d )
  61695. + debug=: ;;
  61696. + --quiet | --q* | --silent | --s* | -q )
  61697. + lt_cl_silent=: ;;
  61698. +
  61699. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  61700. +Try \`$[0] --help' for more information.]) ;;
  61701. +
  61702. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  61703. +Try \`$[0] --help' for more information.]) ;;
  61704. + esac
  61705. + shift
  61706. +done
  61707. +
  61708. +if $lt_cl_silent; then
  61709. + exec AS_MESSAGE_FD>/dev/null
  61710. +fi
  61711. +_LTEOF
  61712. +
  61713. +cat >>"$CONFIG_LT" <<_LTEOF
  61714. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  61715. +_LTEOF
  61716. +
  61717. +cat >>"$CONFIG_LT" <<\_LTEOF
  61718. +AC_MSG_NOTICE([creating $ofile])
  61719. +_LT_OUTPUT_LIBTOOL_COMMANDS
  61720. +AS_EXIT(0)
  61721. +_LTEOF
  61722. +chmod +x "$CONFIG_LT"
  61723. +
  61724. +# configure is writing to config.log, but config.lt does its own redirection,
  61725. +# appending to config.log, which fails on DOS, as config.log is still kept
  61726. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  61727. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  61728. +if test "$no_create" != yes; then
  61729. + lt_cl_success=:
  61730. + test "$silent" = yes &&
  61731. + lt_config_lt_args="$lt_config_lt_args --quiet"
  61732. + exec AS_MESSAGE_LOG_FD>/dev/null
  61733. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  61734. + exec AS_MESSAGE_LOG_FD>>config.log
  61735. + $lt_cl_success || AS_EXIT(1)
  61736. +fi
  61737. +])# LT_OUTPUT
  61738. +
  61739. +
  61740. +# _LT_CONFIG(TAG)
  61741. +# ---------------
  61742. +# If TAG is the built-in tag, create an initial libtool script with a
  61743. +# default configuration from the untagged config vars. Otherwise add code
  61744. +# to config.status for appending the configuration named by TAG from the
  61745. +# matching tagged config vars.
  61746. +m4_defun([_LT_CONFIG],
  61747. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  61748. +_LT_CONFIG_SAVE_COMMANDS([
  61749. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  61750. + m4_if(_LT_TAG, [C], [
  61751. + # See if we are running on zsh, and set the options which allow our
  61752. + # commands through without removal of \ escapes.
  61753. + if test -n "${ZSH_VERSION+set}" ; then
  61754. + setopt NO_GLOB_SUBST
  61755. + fi
  61756. +
  61757. + cfgfile="${ofile}T"
  61758. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  61759. + $RM "$cfgfile"
  61760. +
  61761. + cat <<_LT_EOF >> "$cfgfile"
  61762. +#! $SHELL
  61763. +
  61764. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  61765. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  61766. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  61767. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  61768. +#
  61769. +_LT_COPYING
  61770. +_LT_LIBTOOL_TAGS
  61771. +
  61772. +# ### BEGIN LIBTOOL CONFIG
  61773. +_LT_LIBTOOL_CONFIG_VARS
  61774. +_LT_LIBTOOL_TAG_VARS
  61775. +# ### END LIBTOOL CONFIG
  61776. +
  61777. +_LT_EOF
  61778. +
  61779. + case $host_os in
  61780. + aix3*)
  61781. + cat <<\_LT_EOF >> "$cfgfile"
  61782. +# AIX sometimes has problems with the GCC collect2 program. For some
  61783. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  61784. +# vanish in a puff of smoke.
  61785. +if test "X${COLLECT_NAMES+set}" != Xset; then
  61786. + COLLECT_NAMES=
  61787. + export COLLECT_NAMES
  61788. +fi
  61789. +_LT_EOF
  61790. + ;;
  61791. + esac
  61792. +
  61793. + _LT_PROG_LTMAIN
  61794. +
  61795. + # We use sed instead of cat because bash on DJGPP gets confused if
  61796. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  61797. + # text mode, it properly converts lines to CR/LF. This bash problem
  61798. + # is reportedly fixed, but why not run on old versions too?
  61799. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  61800. + || (rm -f "$cfgfile"; exit 1)
  61801. +
  61802. + _LT_PROG_XSI_SHELLFNS
  61803. +
  61804. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  61805. + || (rm -f "$cfgfile"; exit 1)
  61806. +
  61807. + mv -f "$cfgfile" "$ofile" ||
  61808. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  61809. + chmod +x "$ofile"
  61810. +],
  61811. +[cat <<_LT_EOF >> "$ofile"
  61812. +
  61813. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  61814. +dnl in a comment (ie after a #).
  61815. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  61816. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  61817. +# ### END LIBTOOL TAG CONFIG: $1
  61818. +_LT_EOF
  61819. +])dnl /m4_if
  61820. +],
  61821. +[m4_if([$1], [], [
  61822. + PACKAGE='$PACKAGE'
  61823. + VERSION='$VERSION'
  61824. + TIMESTAMP='$TIMESTAMP'
  61825. + RM='$RM'
  61826. + ofile='$ofile'], [])
  61827. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  61828. +])# _LT_CONFIG
  61829. +
  61830. +
  61831. +# LT_SUPPORTED_TAG(TAG)
  61832. +# ---------------------
  61833. +# Trace this macro to discover what tags are supported by the libtool
  61834. +# --tag option, using:
  61835. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  61836. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  61837. +
  61838. +
  61839. +# C support is built-in for now
  61840. +m4_define([_LT_LANG_C_enabled], [])
  61841. +m4_define([_LT_TAGS], [])
  61842. +
  61843. +
  61844. +# LT_LANG(LANG)
  61845. +# -------------
  61846. +# Enable libtool support for the given language if not already enabled.
  61847. +AC_DEFUN([LT_LANG],
  61848. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  61849. +m4_case([$1],
  61850. + [C], [_LT_LANG(C)],
  61851. + [C++], [_LT_LANG(CXX)],
  61852. + [Java], [_LT_LANG(GCJ)],
  61853. + [Fortran 77], [_LT_LANG(F77)],
  61854. + [Fortran], [_LT_LANG(FC)],
  61855. + [Windows Resource], [_LT_LANG(RC)],
  61856. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  61857. + [_LT_LANG($1)],
  61858. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  61859. +])# LT_LANG
  61860. +
  61861. +
  61862. +# _LT_LANG(LANGNAME)
  61863. +# ------------------
  61864. +m4_defun([_LT_LANG],
  61865. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  61866. + [LT_SUPPORTED_TAG([$1])dnl
  61867. + m4_append([_LT_TAGS], [$1 ])dnl
  61868. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  61869. + _LT_LANG_$1_CONFIG($1)])dnl
  61870. +])# _LT_LANG
  61871. +
  61872. +
  61873. +# _LT_LANG_DEFAULT_CONFIG
  61874. +# -----------------------
  61875. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  61876. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  61877. + [LT_LANG(CXX)],
  61878. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  61879. +
  61880. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  61881. + [LT_LANG(F77)],
  61882. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  61883. +
  61884. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  61885. + [LT_LANG(FC)],
  61886. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  61887. +
  61888. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  61889. +dnl pulling things in needlessly.
  61890. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  61891. + [LT_LANG(GCJ)],
  61892. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  61893. + [LT_LANG(GCJ)],
  61894. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  61895. + [LT_LANG(GCJ)],
  61896. + [m4_ifdef([AC_PROG_GCJ],
  61897. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  61898. + m4_ifdef([A][M_PROG_GCJ],
  61899. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  61900. + m4_ifdef([LT_PROG_GCJ],
  61901. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  61902. +
  61903. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  61904. + [LT_LANG(RC)],
  61905. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  61906. +])# _LT_LANG_DEFAULT_CONFIG
  61907. +
  61908. +# Obsolete macros:
  61909. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  61910. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  61911. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  61912. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  61913. +dnl aclocal-1.4 backwards compatibility:
  61914. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  61915. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  61916. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  61917. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  61918. +
  61919. +
  61920. +# _LT_TAG_COMPILER
  61921. +# ----------------
  61922. +m4_defun([_LT_TAG_COMPILER],
  61923. +[AC_REQUIRE([AC_PROG_CC])dnl
  61924. +
  61925. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  61926. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  61927. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  61928. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  61929. +
  61930. +# If no C compiler was specified, use CC.
  61931. +LTCC=${LTCC-"$CC"}
  61932. +
  61933. +# If no C compiler flags were specified, use CFLAGS.
  61934. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  61935. +
  61936. +# Allow CC to be a program name with arguments.
  61937. +compiler=$CC
  61938. +])# _LT_TAG_COMPILER
  61939. +
  61940. +
  61941. +# _LT_COMPILER_BOILERPLATE
  61942. +# ------------------------
  61943. +# Check for compiler boilerplate output or warnings with
  61944. +# the simple compiler test code.
  61945. +m4_defun([_LT_COMPILER_BOILERPLATE],
  61946. +[m4_require([_LT_DECL_SED])dnl
  61947. +ac_outfile=conftest.$ac_objext
  61948. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  61949. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  61950. +_lt_compiler_boilerplate=`cat conftest.err`
  61951. +$RM conftest*
  61952. +])# _LT_COMPILER_BOILERPLATE
  61953. +
  61954. +
  61955. +# _LT_LINKER_BOILERPLATE
  61956. +# ----------------------
  61957. +# Check for linker boilerplate output or warnings with
  61958. +# the simple link test code.
  61959. +m4_defun([_LT_LINKER_BOILERPLATE],
  61960. +[m4_require([_LT_DECL_SED])dnl
  61961. +ac_outfile=conftest.$ac_objext
  61962. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  61963. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  61964. +_lt_linker_boilerplate=`cat conftest.err`
  61965. +$RM -r conftest*
  61966. +])# _LT_LINKER_BOILERPLATE
  61967. +
  61968. +# _LT_REQUIRED_DARWIN_CHECKS
  61969. +# -------------------------
  61970. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  61971. + case $host_os in
  61972. + rhapsody* | darwin*)
  61973. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  61974. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  61975. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  61976. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  61977. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  61978. + _LT_DECL([], [DSYMUTIL], [1],
  61979. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  61980. + _LT_DECL([], [NMEDIT], [1],
  61981. + [Tool to change global to local symbols on Mac OS X])
  61982. + _LT_DECL([], [LIPO], [1],
  61983. + [Tool to manipulate fat objects and archives on Mac OS X])
  61984. + _LT_DECL([], [OTOOL], [1],
  61985. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  61986. + _LT_DECL([], [OTOOL64], [1],
  61987. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  61988. +
  61989. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  61990. + [lt_cv_apple_cc_single_mod=no
  61991. + if test -z "${LT_MULTI_MODULE}"; then
  61992. + # By default we will add the -single_module flag. You can override
  61993. + # by either setting the environment variable LT_MULTI_MODULE
  61994. + # non-empty at configure time, or by adding -multi_module to the
  61995. + # link flags.
  61996. + rm -rf libconftest.dylib*
  61997. + echo "int foo(void){return 1;}" > conftest.c
  61998. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  61999. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  62000. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  62001. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  62002. + _lt_result=$?
  62003. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  62004. + lt_cv_apple_cc_single_mod=yes
  62005. + else
  62006. + cat conftest.err >&AS_MESSAGE_LOG_FD
  62007. + fi
  62008. + rm -rf libconftest.dylib*
  62009. + rm -f conftest.*
  62010. + fi])
  62011. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  62012. + [lt_cv_ld_exported_symbols_list],
  62013. + [lt_cv_ld_exported_symbols_list=no
  62014. + save_LDFLAGS=$LDFLAGS
  62015. + echo "_main" > conftest.sym
  62016. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  62017. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  62018. + [lt_cv_ld_exported_symbols_list=yes],
  62019. + [lt_cv_ld_exported_symbols_list=no])
  62020. + LDFLAGS="$save_LDFLAGS"
  62021. + ])
  62022. + case $host_os in
  62023. + rhapsody* | darwin1.[[012]])
  62024. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  62025. + darwin1.*)
  62026. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  62027. + darwin*) # darwin 5.x on
  62028. + # if running on 10.5 or later, the deployment target defaults
  62029. + # to the OS version, if on x86, and 10.4, the deployment
  62030. + # target defaults to 10.4. Don't you love it?
  62031. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  62032. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  62033. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  62034. + 10.[[012]]*)
  62035. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  62036. + 10.*)
  62037. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  62038. + esac
  62039. + ;;
  62040. + esac
  62041. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  62042. + _lt_dar_single_mod='$single_module'
  62043. + fi
  62044. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  62045. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  62046. + else
  62047. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  62048. + fi
  62049. + if test "$DSYMUTIL" != ":"; then
  62050. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  62051. + else
  62052. + _lt_dsymutil=
  62053. + fi
  62054. + ;;
  62055. + esac
  62056. +])
  62057. +
  62058. +
  62059. +# _LT_DARWIN_LINKER_FEATURES
  62060. +# --------------------------
  62061. +# Checks for linker and compiler features on darwin
  62062. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  62063. +[
  62064. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  62065. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  62066. + _LT_TAGVAR(hardcode_direct, $1)=no
  62067. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  62068. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  62069. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  62070. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  62071. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  62072. + case $cc_basename in
  62073. + ifort*) _lt_dar_can_shared=yes ;;
  62074. + *) _lt_dar_can_shared=$GCC ;;
  62075. + esac
  62076. + if test "$_lt_dar_can_shared" = "yes"; then
  62077. + output_verbose_link_cmd=echo
  62078. + _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}"
  62079. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  62080. + _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}"
  62081. + _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}"
  62082. + m4_if([$1], [CXX],
  62083. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  62084. + _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}"
  62085. + _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}"
  62086. + fi
  62087. +],[])
  62088. + else
  62089. + _LT_TAGVAR(ld_shlibs, $1)=no
  62090. + fi
  62091. +])
  62092. +
  62093. +# _LT_SYS_MODULE_PATH_AIX
  62094. +# -----------------------
  62095. +# Links a minimal program and checks the executable
  62096. +# for the system default hardcoded library path. In most cases,
  62097. +# this is /usr/lib:/lib, but when the MPI compilers are used
  62098. +# the location of the communication and MPI libs are included too.
  62099. +# If we don't find anything, use the default library path according
  62100. +# to the aix ld manual.
  62101. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  62102. +[m4_require([_LT_DECL_SED])dnl
  62103. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  62104. +lt_aix_libpath_sed='
  62105. + /Import File Strings/,/^$/ {
  62106. + /^0/ {
  62107. + s/^0 *\(.*\)$/\1/
  62108. + p
  62109. + }
  62110. + }'
  62111. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  62112. +# Check for a 64-bit object if we didn't find anything.
  62113. +if test -z "$aix_libpath"; then
  62114. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  62115. +fi],[])
  62116. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  62117. +])# _LT_SYS_MODULE_PATH_AIX
  62118. +
  62119. +
  62120. +# _LT_SHELL_INIT(ARG)
  62121. +# -------------------
  62122. +m4_define([_LT_SHELL_INIT],
  62123. +[ifdef([AC_DIVERSION_NOTICE],
  62124. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  62125. + [AC_DIVERT_PUSH(NOTICE)])
  62126. +$1
  62127. +AC_DIVERT_POP
  62128. +])# _LT_SHELL_INIT
  62129. +
  62130. +
  62131. +# _LT_PROG_ECHO_BACKSLASH
  62132. +# -----------------------
  62133. +# Add some code to the start of the generated configure script which
  62134. +# will find an echo command which doesn't interpret backslashes.
  62135. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  62136. +[_LT_SHELL_INIT([
  62137. +# Check that we are running under the correct shell.
  62138. +SHELL=${CONFIG_SHELL-/bin/sh}
  62139. +
  62140. +case X$lt_ECHO in
  62141. +X*--fallback-echo)
  62142. + # Remove one level of quotation (which was required for Make).
  62143. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  62144. + ;;
  62145. +esac
  62146. +
  62147. +ECHO=${lt_ECHO-echo}
  62148. +if test "X[$]1" = X--no-reexec; then
  62149. + # Discard the --no-reexec flag, and continue.
  62150. + shift
  62151. +elif test "X[$]1" = X--fallback-echo; then
  62152. + # Avoid inline document here, it may be left over
  62153. + :
  62154. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  62155. + # Yippee, $ECHO works!
  62156. + :
  62157. +else
  62158. + # Restart under the correct shell.
  62159. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  62160. +fi
  62161. +
  62162. +if test "X[$]1" = X--fallback-echo; then
  62163. + # used as fallback echo
  62164. + shift
  62165. + cat <<_LT_EOF
  62166. +[$]*
  62167. +_LT_EOF
  62168. + exit 0
  62169. +fi
  62170. +
  62171. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  62172. +# if CDPATH is set.
  62173. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  62174. +
  62175. +if test -z "$lt_ECHO"; then
  62176. + if test "X${echo_test_string+set}" != Xset; then
  62177. + # find a string as large as possible, as long as the shell can cope with it
  62178. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  62179. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  62180. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  62181. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  62182. + then
  62183. + break
  62184. + fi
  62185. + done
  62186. + fi
  62187. +
  62188. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  62189. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  62190. + test "X$echo_testing_string" = "X$echo_test_string"; then
  62191. + :
  62192. + else
  62193. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  62194. + # backslashes. This makes it impossible to quote backslashes using
  62195. + # echo "$something" | sed 's/\\/\\\\/g'
  62196. + #
  62197. + # So, first we look for a working echo in the user's PATH.
  62198. +
  62199. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  62200. + for dir in $PATH /usr/ucb; do
  62201. + IFS="$lt_save_ifs"
  62202. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  62203. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  62204. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  62205. + test "X$echo_testing_string" = "X$echo_test_string"; then
  62206. + ECHO="$dir/echo"
  62207. + break
  62208. + fi
  62209. + done
  62210. + IFS="$lt_save_ifs"
  62211. +
  62212. + if test "X$ECHO" = Xecho; then
  62213. + # We didn't find a better echo, so look for alternatives.
  62214. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  62215. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  62216. + test "X$echo_testing_string" = "X$echo_test_string"; then
  62217. + # This shell has a builtin print -r that does the trick.
  62218. + ECHO='print -r'
  62219. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  62220. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  62221. + # If we have ksh, try running configure again with it.
  62222. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  62223. + export ORIGINAL_CONFIG_SHELL
  62224. + CONFIG_SHELL=/bin/ksh
  62225. + export CONFIG_SHELL
  62226. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  62227. + else
  62228. + # Try using printf.
  62229. + ECHO='printf %s\n'
  62230. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  62231. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  62232. + test "X$echo_testing_string" = "X$echo_test_string"; then
  62233. + # Cool, printf works
  62234. + :
  62235. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  62236. + test "X$echo_testing_string" = 'X\t' &&
  62237. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  62238. + test "X$echo_testing_string" = "X$echo_test_string"; then
  62239. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  62240. + export CONFIG_SHELL
  62241. + SHELL="$CONFIG_SHELL"
  62242. + export SHELL
  62243. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  62244. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  62245. + test "X$echo_testing_string" = 'X\t' &&
  62246. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  62247. + test "X$echo_testing_string" = "X$echo_test_string"; then
  62248. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  62249. + else
  62250. + # maybe with a smaller string...
  62251. + prev=:
  62252. +
  62253. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  62254. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  62255. + then
  62256. + break
  62257. + fi
  62258. + prev="$cmd"
  62259. + done
  62260. +
  62261. + if test "$prev" != 'sed 50q "[$]0"'; then
  62262. + echo_test_string=`eval $prev`
  62263. + export echo_test_string
  62264. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  62265. + else
  62266. + # Oops. We lost completely, so just stick with echo.
  62267. + ECHO=echo
  62268. + fi
  62269. + fi
  62270. + fi
  62271. + fi
  62272. + fi
  62273. +fi
  62274. +
  62275. +# Copy echo and quote the copy suitably for passing to libtool from
  62276. +# the Makefile, instead of quoting the original, which is used later.
  62277. +lt_ECHO=$ECHO
  62278. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  62279. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  62280. +fi
  62281. +
  62282. +AC_SUBST(lt_ECHO)
  62283. +])
  62284. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  62285. +_LT_DECL([], [ECHO], [1],
  62286. + [An echo program that does not interpret backslashes])
  62287. +])# _LT_PROG_ECHO_BACKSLASH
  62288. +
  62289. +
  62290. +# _LT_ENABLE_LOCK
  62291. +# ---------------
  62292. +m4_defun([_LT_ENABLE_LOCK],
  62293. +[AC_ARG_ENABLE([libtool-lock],
  62294. + [AS_HELP_STRING([--disable-libtool-lock],
  62295. + [avoid locking (might break parallel builds)])])
  62296. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  62297. +
  62298. +# Some flags need to be propagated to the compiler or linker for good
  62299. +# libtool support.
  62300. +case $host in
  62301. +ia64-*-hpux*)
  62302. + # Find out which ABI we are using.
  62303. + echo 'int i;' > conftest.$ac_ext
  62304. + if AC_TRY_EVAL(ac_compile); then
  62305. + case `/usr/bin/file conftest.$ac_objext` in
  62306. + *ELF-32*)
  62307. + HPUX_IA64_MODE="32"
  62308. + ;;
  62309. + *ELF-64*)
  62310. + HPUX_IA64_MODE="64"
  62311. + ;;
  62312. + esac
  62313. + fi
  62314. + rm -rf conftest*
  62315. + ;;
  62316. +*-*-irix6*)
  62317. + # Find out which ABI we are using.
  62318. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  62319. + if AC_TRY_EVAL(ac_compile); then
  62320. + if test "$lt_cv_prog_gnu_ld" = yes; then
  62321. + case `/usr/bin/file conftest.$ac_objext` in
  62322. + *32-bit*)
  62323. + LD="${LD-ld} -melf32bsmip"
  62324. + ;;
  62325. + *N32*)
  62326. + LD="${LD-ld} -melf32bmipn32"
  62327. + ;;
  62328. + *64-bit*)
  62329. + LD="${LD-ld} -melf64bmip"
  62330. + ;;
  62331. + esac
  62332. + else
  62333. + case `/usr/bin/file conftest.$ac_objext` in
  62334. + *32-bit*)
  62335. + LD="${LD-ld} -32"
  62336. + ;;
  62337. + *N32*)
  62338. + LD="${LD-ld} -n32"
  62339. + ;;
  62340. + *64-bit*)
  62341. + LD="${LD-ld} -64"
  62342. + ;;
  62343. + esac
  62344. + fi
  62345. + fi
  62346. + rm -rf conftest*
  62347. + ;;
  62348. +
  62349. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  62350. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  62351. + # Find out which ABI we are using.
  62352. + echo 'int i;' > conftest.$ac_ext
  62353. + if AC_TRY_EVAL(ac_compile); then
  62354. + case `/usr/bin/file conftest.o` in
  62355. + *32-bit*)
  62356. + case $host in
  62357. + x86_64-*kfreebsd*-gnu)
  62358. + LD="${LD-ld} -m elf_i386_fbsd"
  62359. + ;;
  62360. + x86_64-*linux*)
  62361. + LD="${LD-ld} -m elf_i386"
  62362. + ;;
  62363. + ppc64-*linux*|powerpc64-*linux*)
  62364. + LD="${LD-ld} -m elf32ppclinux"
  62365. + ;;
  62366. + s390x-*linux*)
  62367. + LD="${LD-ld} -m elf_s390"
  62368. + ;;
  62369. + sparc64-*linux*)
  62370. + LD="${LD-ld} -m elf32_sparc"
  62371. + ;;
  62372. + esac
  62373. + ;;
  62374. + *64-bit*)
  62375. + case $host in
  62376. + x86_64-*kfreebsd*-gnu)
  62377. + LD="${LD-ld} -m elf_x86_64_fbsd"
  62378. + ;;
  62379. + x86_64-*linux*)
  62380. + LD="${LD-ld} -m elf_x86_64"
  62381. + ;;
  62382. + ppc*-*linux*|powerpc*-*linux*)
  62383. + LD="${LD-ld} -m elf64ppc"
  62384. + ;;
  62385. + s390*-*linux*|s390*-*tpf*)
  62386. + LD="${LD-ld} -m elf64_s390"
  62387. + ;;
  62388. + sparc*-*linux*)
  62389. + LD="${LD-ld} -m elf64_sparc"
  62390. + ;;
  62391. + esac
  62392. + ;;
  62393. + esac
  62394. + fi
  62395. + rm -rf conftest*
  62396. + ;;
  62397. +
  62398. +*-*-sco3.2v5*)
  62399. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  62400. + SAVE_CFLAGS="$CFLAGS"
  62401. + CFLAGS="$CFLAGS -belf"
  62402. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  62403. + [AC_LANG_PUSH(C)
  62404. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  62405. + AC_LANG_POP])
  62406. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  62407. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  62408. + CFLAGS="$SAVE_CFLAGS"
  62409. + fi
  62410. + ;;
  62411. +sparc*-*solaris*)
  62412. + # Find out which ABI we are using.
  62413. + echo 'int i;' > conftest.$ac_ext
  62414. + if AC_TRY_EVAL(ac_compile); then
  62415. + case `/usr/bin/file conftest.o` in
  62416. + *64-bit*)
  62417. + case $lt_cv_prog_gnu_ld in
  62418. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  62419. + *)
  62420. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  62421. + LD="${LD-ld} -64"
  62422. + fi
  62423. + ;;
  62424. + esac
  62425. + ;;
  62426. + esac
  62427. + fi
  62428. + rm -rf conftest*
  62429. + ;;
  62430. +esac
  62431. +
  62432. +need_locks="$enable_libtool_lock"
  62433. +])# _LT_ENABLE_LOCK
  62434. +
  62435. +
  62436. +# _LT_CMD_OLD_ARCHIVE
  62437. +# -------------------
  62438. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  62439. +[AC_CHECK_TOOL(AR, ar, false)
  62440. +test -z "$AR" && AR=ar
  62441. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  62442. +_LT_DECL([], [AR], [1], [The archiver])
  62443. +_LT_DECL([], [AR_FLAGS], [1])
  62444. +
  62445. +AC_CHECK_TOOL(STRIP, strip, :)
  62446. +test -z "$STRIP" && STRIP=:
  62447. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  62448. +
  62449. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  62450. +test -z "$RANLIB" && RANLIB=:
  62451. +_LT_DECL([], [RANLIB], [1],
  62452. + [Commands used to install an old-style archive])
  62453. +
  62454. +# Determine commands to create old-style static archives.
  62455. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  62456. +old_postinstall_cmds='chmod 644 $oldlib'
  62457. +old_postuninstall_cmds=
  62458. +
  62459. +if test -n "$RANLIB"; then
  62460. + case $host_os in
  62461. + openbsd*)
  62462. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  62463. + ;;
  62464. + *)
  62465. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  62466. + ;;
  62467. + esac
  62468. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  62469. +fi
  62470. +_LT_DECL([], [old_postinstall_cmds], [2])
  62471. +_LT_DECL([], [old_postuninstall_cmds], [2])
  62472. +_LT_TAGDECL([], [old_archive_cmds], [2],
  62473. + [Commands used to build an old-style archive])
  62474. +])# _LT_CMD_OLD_ARCHIVE
  62475. +
  62476. +
  62477. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  62478. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  62479. +# ----------------------------------------------------------------
  62480. +# Check whether the given compiler option works
  62481. +AC_DEFUN([_LT_COMPILER_OPTION],
  62482. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  62483. +m4_require([_LT_DECL_SED])dnl
  62484. +AC_CACHE_CHECK([$1], [$2],
  62485. + [$2=no
  62486. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  62487. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  62488. + lt_compiler_flag="$3"
  62489. + # Insert the option either (1) after the last *FLAGS variable, or
  62490. + # (2) before a word containing "conftest.", or (3) at the end.
  62491. + # Note that $ac_compile itself does not contain backslashes and begins
  62492. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  62493. + # The option is referenced via a variable to avoid confusing sed.
  62494. + lt_compile=`echo "$ac_compile" | $SED \
  62495. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  62496. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  62497. + -e 's:$: $lt_compiler_flag:'`
  62498. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  62499. + (eval "$lt_compile" 2>conftest.err)
  62500. + ac_status=$?
  62501. + cat conftest.err >&AS_MESSAGE_LOG_FD
  62502. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  62503. + if (exit $ac_status) && test -s "$ac_outfile"; then
  62504. + # The compiler can only warn and ignore the option if not recognized
  62505. + # So say no if there are warnings other than the usual output.
  62506. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  62507. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  62508. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  62509. + $2=yes
  62510. + fi
  62511. + fi
  62512. + $RM conftest*
  62513. +])
  62514. +
  62515. +if test x"[$]$2" = xyes; then
  62516. + m4_if([$5], , :, [$5])
  62517. +else
  62518. + m4_if([$6], , :, [$6])
  62519. +fi
  62520. +])# _LT_COMPILER_OPTION
  62521. +
  62522. +# Old name:
  62523. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  62524. +dnl aclocal-1.4 backwards compatibility:
  62525. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  62526. +
  62527. +
  62528. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  62529. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  62530. +# ----------------------------------------------------
  62531. +# Check whether the given linker option works
  62532. +AC_DEFUN([_LT_LINKER_OPTION],
  62533. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  62534. +m4_require([_LT_DECL_SED])dnl
  62535. +AC_CACHE_CHECK([$1], [$2],
  62536. + [$2=no
  62537. + save_LDFLAGS="$LDFLAGS"
  62538. + LDFLAGS="$LDFLAGS $3"
  62539. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  62540. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  62541. + # The linker can only warn and ignore the option if not recognized
  62542. + # So say no if there are warnings
  62543. + if test -s conftest.err; then
  62544. + # Append any errors to the config.log.
  62545. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  62546. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  62547. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  62548. + if diff conftest.exp conftest.er2 >/dev/null; then
  62549. + $2=yes
  62550. + fi
  62551. + else
  62552. + $2=yes
  62553. + fi
  62554. + fi
  62555. + $RM -r conftest*
  62556. + LDFLAGS="$save_LDFLAGS"
  62557. +])
  62558. +
  62559. +if test x"[$]$2" = xyes; then
  62560. + m4_if([$4], , :, [$4])
  62561. +else
  62562. + m4_if([$5], , :, [$5])
  62563. +fi
  62564. +])# _LT_LINKER_OPTION
  62565. +
  62566. +# Old name:
  62567. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  62568. +dnl aclocal-1.4 backwards compatibility:
  62569. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  62570. +
  62571. +
  62572. +# LT_CMD_MAX_LEN
  62573. +#---------------
  62574. +AC_DEFUN([LT_CMD_MAX_LEN],
  62575. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  62576. +# find the maximum length of command line arguments
  62577. +AC_MSG_CHECKING([the maximum length of command line arguments])
  62578. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  62579. + i=0
  62580. + teststring="ABCD"
  62581. +
  62582. + case $build_os in
  62583. + msdosdjgpp*)
  62584. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  62585. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  62586. + # during glob expansion). Even if it were fixed, the result of this
  62587. + # check would be larger than it should be.
  62588. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  62589. + ;;
  62590. +
  62591. + gnu*)
  62592. + # Under GNU Hurd, this test is not required because there is
  62593. + # no limit to the length of command line arguments.
  62594. + # Libtool will interpret -1 as no limit whatsoever
  62595. + lt_cv_sys_max_cmd_len=-1;
  62596. + ;;
  62597. +
  62598. + cygwin* | mingw* | cegcc*)
  62599. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  62600. + # about 5 minutes as the teststring grows exponentially.
  62601. + # Worse, since 9x/ME are not pre-emptively multitasking,
  62602. + # you end up with a "frozen" computer, even though with patience
  62603. + # the test eventually succeeds (with a max line length of 256k).
  62604. + # Instead, let's just punt: use the minimum linelength reported by
  62605. + # all of the supported platforms: 8192 (on NT/2K/XP).
  62606. + lt_cv_sys_max_cmd_len=8192;
  62607. + ;;
  62608. +
  62609. + amigaos*)
  62610. + # On AmigaOS with pdksh, this test takes hours, literally.
  62611. + # So we just punt and use a minimum line length of 8192.
  62612. + lt_cv_sys_max_cmd_len=8192;
  62613. + ;;
  62614. +
  62615. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  62616. + # This has been around since 386BSD, at least. Likely further.
  62617. + if test -x /sbin/sysctl; then
  62618. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  62619. + elif test -x /usr/sbin/sysctl; then
  62620. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  62621. + else
  62622. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  62623. + fi
  62624. + # And add a safety zone
  62625. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  62626. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  62627. + ;;
  62628. +
  62629. + interix*)
  62630. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  62631. + lt_cv_sys_max_cmd_len=196608
  62632. + ;;
  62633. +
  62634. + osf*)
  62635. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  62636. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  62637. + # nice to cause kernel panics so lets avoid the loop below.
  62638. + # First set a reasonable default.
  62639. + lt_cv_sys_max_cmd_len=16384
  62640. + #
  62641. + if test -x /sbin/sysconfig; then
  62642. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  62643. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  62644. + esac
  62645. + fi
  62646. + ;;
  62647. + sco3.2v5*)
  62648. + lt_cv_sys_max_cmd_len=102400
  62649. + ;;
  62650. + sysv5* | sco5v6* | sysv4.2uw2*)
  62651. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  62652. + if test -n "$kargmax"; then
  62653. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  62654. + else
  62655. + lt_cv_sys_max_cmd_len=32768
  62656. + fi
  62657. + ;;
  62658. + *)
  62659. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  62660. + if test -n "$lt_cv_sys_max_cmd_len"; then
  62661. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  62662. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  62663. + else
  62664. + # Make teststring a little bigger before we do anything with it.
  62665. + # a 1K string should be a reasonable start.
  62666. + for i in 1 2 3 4 5 6 7 8 ; do
  62667. + teststring=$teststring$teststring
  62668. + done
  62669. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  62670. + # If test is not a shell built-in, we'll probably end up computing a
  62671. + # maximum length that is only half of the actual maximum length, but
  62672. + # we can't tell.
  62673. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  62674. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  62675. + test $i != 17 # 1/2 MB should be enough
  62676. + do
  62677. + i=`expr $i + 1`
  62678. + teststring=$teststring$teststring
  62679. + done
  62680. + # Only check the string length outside the loop.
  62681. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  62682. + teststring=
  62683. + # Add a significant safety factor because C++ compilers can tack on
  62684. + # massive amounts of additional arguments before passing them to the
  62685. + # linker. It appears as though 1/2 is a usable value.
  62686. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  62687. + fi
  62688. + ;;
  62689. + esac
  62690. +])
  62691. +if test -n $lt_cv_sys_max_cmd_len ; then
  62692. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  62693. +else
  62694. + AC_MSG_RESULT(none)
  62695. +fi
  62696. +max_cmd_len=$lt_cv_sys_max_cmd_len
  62697. +_LT_DECL([], [max_cmd_len], [0],
  62698. + [What is the maximum length of a command?])
  62699. +])# LT_CMD_MAX_LEN
  62700. +
  62701. +# Old name:
  62702. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  62703. +dnl aclocal-1.4 backwards compatibility:
  62704. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  62705. +
  62706. +
  62707. +# _LT_HEADER_DLFCN
  62708. +# ----------------
  62709. +m4_defun([_LT_HEADER_DLFCN],
  62710. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  62711. +])# _LT_HEADER_DLFCN
  62712. +
  62713. +
  62714. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  62715. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  62716. +# ----------------------------------------------------------------
  62717. +m4_defun([_LT_TRY_DLOPEN_SELF],
  62718. +[m4_require([_LT_HEADER_DLFCN])dnl
  62719. +if test "$cross_compiling" = yes; then :
  62720. + [$4]
  62721. +else
  62722. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  62723. + lt_status=$lt_dlunknown
  62724. + cat > conftest.$ac_ext <<_LT_EOF
  62725. +[#line __oline__ "configure"
  62726. +#include "confdefs.h"
  62727. +
  62728. +#if HAVE_DLFCN_H
  62729. +#include <dlfcn.h>
  62730. +#endif
  62731. +
  62732. +#include <stdio.h>
  62733. +
  62734. +#ifdef RTLD_GLOBAL
  62735. +# define LT_DLGLOBAL RTLD_GLOBAL
  62736. +#else
  62737. +# ifdef DL_GLOBAL
  62738. +# define LT_DLGLOBAL DL_GLOBAL
  62739. +# else
  62740. +# define LT_DLGLOBAL 0
  62741. +# endif
  62742. +#endif
  62743. +
  62744. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  62745. + find out it does not work in some platform. */
  62746. +#ifndef LT_DLLAZY_OR_NOW
  62747. +# ifdef RTLD_LAZY
  62748. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  62749. +# else
  62750. +# ifdef DL_LAZY
  62751. +# define LT_DLLAZY_OR_NOW DL_LAZY
  62752. +# else
  62753. +# ifdef RTLD_NOW
  62754. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  62755. +# else
  62756. +# ifdef DL_NOW
  62757. +# define LT_DLLAZY_OR_NOW DL_NOW
  62758. +# else
  62759. +# define LT_DLLAZY_OR_NOW 0
  62760. +# endif
  62761. +# endif
  62762. +# endif
  62763. +# endif
  62764. +#endif
  62765. +
  62766. +void fnord() { int i=42;}
  62767. +int main ()
  62768. +{
  62769. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  62770. + int status = $lt_dlunknown;
  62771. +
  62772. + if (self)
  62773. + {
  62774. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  62775. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  62776. + /* dlclose (self); */
  62777. + }
  62778. + else
  62779. + puts (dlerror ());
  62780. +
  62781. + return status;
  62782. +}]
  62783. +_LT_EOF
  62784. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  62785. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  62786. + lt_status=$?
  62787. + case x$lt_status in
  62788. + x$lt_dlno_uscore) $1 ;;
  62789. + x$lt_dlneed_uscore) $2 ;;
  62790. + x$lt_dlunknown|x*) $3 ;;
  62791. + esac
  62792. + else :
  62793. + # compilation failed
  62794. + $3
  62795. + fi
  62796. +fi
  62797. +rm -fr conftest*
  62798. +])# _LT_TRY_DLOPEN_SELF
  62799. +
  62800. +
  62801. +# LT_SYS_DLOPEN_SELF
  62802. +# ------------------
  62803. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  62804. +[m4_require([_LT_HEADER_DLFCN])dnl
  62805. +if test "x$enable_dlopen" != xyes; then
  62806. + enable_dlopen=unknown
  62807. + enable_dlopen_self=unknown
  62808. + enable_dlopen_self_static=unknown
  62809. +else
  62810. + lt_cv_dlopen=no
  62811. + lt_cv_dlopen_libs=
  62812. +
  62813. + case $host_os in
  62814. + beos*)
  62815. + lt_cv_dlopen="load_add_on"
  62816. + lt_cv_dlopen_libs=
  62817. + lt_cv_dlopen_self=yes
  62818. + ;;
  62819. +
  62820. + mingw* | pw32* | cegcc*)
  62821. + lt_cv_dlopen="LoadLibrary"
  62822. + lt_cv_dlopen_libs=
  62823. + ;;
  62824. +
  62825. + cygwin*)
  62826. + lt_cv_dlopen="dlopen"
  62827. + lt_cv_dlopen_libs=
  62828. + ;;
  62829. +
  62830. + darwin*)
  62831. + # if libdl is installed we need to link against it
  62832. + AC_CHECK_LIB([dl], [dlopen],
  62833. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  62834. + lt_cv_dlopen="dyld"
  62835. + lt_cv_dlopen_libs=
  62836. + lt_cv_dlopen_self=yes
  62837. + ])
  62838. + ;;
  62839. +
  62840. + *)
  62841. + AC_CHECK_FUNC([shl_load],
  62842. + [lt_cv_dlopen="shl_load"],
  62843. + [AC_CHECK_LIB([dld], [shl_load],
  62844. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  62845. + [AC_CHECK_FUNC([dlopen],
  62846. + [lt_cv_dlopen="dlopen"],
  62847. + [AC_CHECK_LIB([dl], [dlopen],
  62848. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  62849. + [AC_CHECK_LIB([svld], [dlopen],
  62850. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  62851. + [AC_CHECK_LIB([dld], [dld_link],
  62852. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  62853. + ])
  62854. + ])
  62855. + ])
  62856. + ])
  62857. + ])
  62858. + ;;
  62859. + esac
  62860. +
  62861. + if test "x$lt_cv_dlopen" != xno; then
  62862. + enable_dlopen=yes
  62863. + else
  62864. + enable_dlopen=no
  62865. + fi
  62866. +
  62867. + case $lt_cv_dlopen in
  62868. + dlopen)
  62869. + save_CPPFLAGS="$CPPFLAGS"
  62870. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  62871. +
  62872. + save_LDFLAGS="$LDFLAGS"
  62873. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  62874. +
  62875. + save_LIBS="$LIBS"
  62876. + LIBS="$lt_cv_dlopen_libs $LIBS"
  62877. +
  62878. + AC_CACHE_CHECK([whether a program can dlopen itself],
  62879. + lt_cv_dlopen_self, [dnl
  62880. + _LT_TRY_DLOPEN_SELF(
  62881. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  62882. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  62883. + ])
  62884. +
  62885. + if test "x$lt_cv_dlopen_self" = xyes; then
  62886. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  62887. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  62888. + lt_cv_dlopen_self_static, [dnl
  62889. + _LT_TRY_DLOPEN_SELF(
  62890. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  62891. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  62892. + ])
  62893. + fi
  62894. +
  62895. + CPPFLAGS="$save_CPPFLAGS"
  62896. + LDFLAGS="$save_LDFLAGS"
  62897. + LIBS="$save_LIBS"
  62898. + ;;
  62899. + esac
  62900. +
  62901. + case $lt_cv_dlopen_self in
  62902. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  62903. + *) enable_dlopen_self=unknown ;;
  62904. + esac
  62905. +
  62906. + case $lt_cv_dlopen_self_static in
  62907. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  62908. + *) enable_dlopen_self_static=unknown ;;
  62909. + esac
  62910. +fi
  62911. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  62912. + [Whether dlopen is supported])
  62913. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  62914. + [Whether dlopen of programs is supported])
  62915. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  62916. + [Whether dlopen of statically linked programs is supported])
  62917. +])# LT_SYS_DLOPEN_SELF
  62918. +
  62919. +# Old name:
  62920. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  62921. +dnl aclocal-1.4 backwards compatibility:
  62922. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  62923. +
  62924. +
  62925. +# _LT_COMPILER_C_O([TAGNAME])
  62926. +# ---------------------------
  62927. +# Check to see if options -c and -o are simultaneously supported by compiler.
  62928. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  62929. +m4_defun([_LT_COMPILER_C_O],
  62930. +[m4_require([_LT_DECL_SED])dnl
  62931. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  62932. +m4_require([_LT_TAG_COMPILER])dnl
  62933. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  62934. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  62935. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  62936. + $RM -r conftest 2>/dev/null
  62937. + mkdir conftest
  62938. + cd conftest
  62939. + mkdir out
  62940. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  62941. +
  62942. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  62943. + # Insert the option either (1) after the last *FLAGS variable, or
  62944. + # (2) before a word containing "conftest.", or (3) at the end.
  62945. + # Note that $ac_compile itself does not contain backslashes and begins
  62946. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  62947. + lt_compile=`echo "$ac_compile" | $SED \
  62948. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  62949. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  62950. + -e 's:$: $lt_compiler_flag:'`
  62951. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  62952. + (eval "$lt_compile" 2>out/conftest.err)
  62953. + ac_status=$?
  62954. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  62955. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  62956. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  62957. + then
  62958. + # The compiler can only warn and ignore the option if not recognized
  62959. + # So say no if there are warnings
  62960. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  62961. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  62962. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  62963. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  62964. + fi
  62965. + fi
  62966. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  62967. + $RM conftest*
  62968. + # SGI C++ compiler will create directory out/ii_files/ for
  62969. + # template instantiation
  62970. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  62971. + $RM out/* && rmdir out
  62972. + cd ..
  62973. + $RM -r conftest
  62974. + $RM conftest*
  62975. +])
  62976. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  62977. + [Does compiler simultaneously support -c and -o options?])
  62978. +])# _LT_COMPILER_C_O
  62979. +
  62980. +
  62981. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  62982. +# ----------------------------------
  62983. +# Check to see if we can do hard links to lock some files if needed
  62984. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  62985. +[m4_require([_LT_ENABLE_LOCK])dnl
  62986. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  62987. +_LT_COMPILER_C_O([$1])
  62988. +
  62989. +hard_links="nottested"
  62990. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  62991. + # do not overwrite the value of need_locks provided by the user
  62992. + AC_MSG_CHECKING([if we can lock with hard links])
  62993. + hard_links=yes
  62994. + $RM conftest*
  62995. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  62996. + touch conftest.a
  62997. + ln conftest.a conftest.b 2>&5 || hard_links=no
  62998. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  62999. + AC_MSG_RESULT([$hard_links])
  63000. + if test "$hard_links" = no; then
  63001. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  63002. + need_locks=warn
  63003. + fi
  63004. +else
  63005. + need_locks=no
  63006. +fi
  63007. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  63008. +])# _LT_COMPILER_FILE_LOCKS
  63009. +
  63010. +
  63011. +# _LT_CHECK_OBJDIR
  63012. +# ----------------
  63013. +m4_defun([_LT_CHECK_OBJDIR],
  63014. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  63015. +[rm -f .libs 2>/dev/null
  63016. +mkdir .libs 2>/dev/null
  63017. +if test -d .libs; then
  63018. + lt_cv_objdir=.libs
  63019. +else
  63020. + # MS-DOS does not allow filenames that begin with a dot.
  63021. + lt_cv_objdir=_libs
  63022. +fi
  63023. +rmdir .libs 2>/dev/null])
  63024. +objdir=$lt_cv_objdir
  63025. +_LT_DECL([], [objdir], [0],
  63026. + [The name of the directory that contains temporary libtool files])dnl
  63027. +m4_pattern_allow([LT_OBJDIR])dnl
  63028. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  63029. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  63030. +])# _LT_CHECK_OBJDIR
  63031. +
  63032. +
  63033. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  63034. +# --------------------------------------
  63035. +# Check hardcoding attributes.
  63036. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  63037. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  63038. +_LT_TAGVAR(hardcode_action, $1)=
  63039. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  63040. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  63041. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  63042. +
  63043. + # We can hardcode non-existent directories.
  63044. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  63045. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  63046. + # have to relink, otherwise we might link with an installed library
  63047. + # when we should be linking with a yet-to-be-installed one
  63048. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  63049. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  63050. + # Linking always hardcodes the temporary library directory.
  63051. + _LT_TAGVAR(hardcode_action, $1)=relink
  63052. + else
  63053. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  63054. + _LT_TAGVAR(hardcode_action, $1)=immediate
  63055. + fi
  63056. +else
  63057. + # We cannot hardcode anything, or else we can only hardcode existing
  63058. + # directories.
  63059. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  63060. +fi
  63061. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  63062. +
  63063. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  63064. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  63065. + # Fast installation is not supported
  63066. + enable_fast_install=no
  63067. +elif test "$shlibpath_overrides_runpath" = yes ||
  63068. + test "$enable_shared" = no; then
  63069. + # Fast installation is not necessary
  63070. + enable_fast_install=needless
  63071. +fi
  63072. +_LT_TAGDECL([], [hardcode_action], [0],
  63073. + [How to hardcode a shared library path into an executable])
  63074. +])# _LT_LINKER_HARDCODE_LIBPATH
  63075. +
  63076. +
  63077. +# _LT_CMD_STRIPLIB
  63078. +# ----------------
  63079. +m4_defun([_LT_CMD_STRIPLIB],
  63080. +[m4_require([_LT_DECL_EGREP])
  63081. +striplib=
  63082. +old_striplib=
  63083. +AC_MSG_CHECKING([whether stripping libraries is possible])
  63084. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  63085. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  63086. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  63087. + AC_MSG_RESULT([yes])
  63088. +else
  63089. +# FIXME - insert some real tests, host_os isn't really good enough
  63090. + case $host_os in
  63091. + darwin*)
  63092. + if test -n "$STRIP" ; then
  63093. + striplib="$STRIP -x"
  63094. + old_striplib="$STRIP -S"
  63095. + AC_MSG_RESULT([yes])
  63096. + else
  63097. + AC_MSG_RESULT([no])
  63098. + fi
  63099. + ;;
  63100. + *)
  63101. + AC_MSG_RESULT([no])
  63102. + ;;
  63103. + esac
  63104. +fi
  63105. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  63106. +_LT_DECL([], [striplib], [1])
  63107. +])# _LT_CMD_STRIPLIB
  63108. +
  63109. +
  63110. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  63111. +# -----------------------------
  63112. +# PORTME Fill in your ld.so characteristics
  63113. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  63114. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  63115. +m4_require([_LT_DECL_EGREP])dnl
  63116. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  63117. +m4_require([_LT_DECL_OBJDUMP])dnl
  63118. +m4_require([_LT_DECL_SED])dnl
  63119. +AC_MSG_CHECKING([dynamic linker characteristics])
  63120. +m4_if([$1],
  63121. + [], [
  63122. +if test "$GCC" = yes; then
  63123. + case $host_os in
  63124. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  63125. + *) lt_awk_arg="/^libraries:/" ;;
  63126. + esac
  63127. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  63128. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  63129. + # if the path contains ";" then we assume it to be the separator
  63130. + # otherwise default to the standard path separator (i.e. ":") - it is
  63131. + # assumed that no part of a normal pathname contains ";" but that should
  63132. + # okay in the real world where ";" in dirpaths is itself problematic.
  63133. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  63134. + else
  63135. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  63136. + fi
  63137. + # Ok, now we have the path, separated by spaces, we can step through it
  63138. + # and add multilib dir if necessary.
  63139. + lt_tmp_lt_search_path_spec=
  63140. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  63141. + for lt_sys_path in $lt_search_path_spec; do
  63142. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  63143. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  63144. + else
  63145. + test -d "$lt_sys_path" && \
  63146. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  63147. + fi
  63148. + done
  63149. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  63150. +BEGIN {RS=" "; FS="/|\n";} {
  63151. + lt_foo="";
  63152. + lt_count=0;
  63153. + for (lt_i = NF; lt_i > 0; lt_i--) {
  63154. + if ($lt_i != "" && $lt_i != ".") {
  63155. + if ($lt_i == "..") {
  63156. + lt_count++;
  63157. + } else {
  63158. + if (lt_count == 0) {
  63159. + lt_foo="/" $lt_i lt_foo;
  63160. + } else {
  63161. + lt_count--;
  63162. + }
  63163. + }
  63164. + }
  63165. + }
  63166. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  63167. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  63168. +}'`
  63169. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  63170. +else
  63171. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  63172. +fi])
  63173. +library_names_spec=
  63174. +libname_spec='lib$name'
  63175. +soname_spec=
  63176. +shrext_cmds=".so"
  63177. +postinstall_cmds=
  63178. +postuninstall_cmds=
  63179. +finish_cmds=
  63180. +finish_eval=
  63181. +shlibpath_var=
  63182. +shlibpath_overrides_runpath=unknown
  63183. +version_type=none
  63184. +dynamic_linker="$host_os ld.so"
  63185. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  63186. +need_lib_prefix=unknown
  63187. +hardcode_into_libs=no
  63188. +
  63189. +# when you set need_version to no, make sure it does not cause -set_version
  63190. +# flags to be left without arguments
  63191. +need_version=unknown
  63192. +
  63193. +case $host_os in
  63194. +aix3*)
  63195. + version_type=linux
  63196. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  63197. + shlibpath_var=LIBPATH
  63198. +
  63199. + # AIX 3 has no versioning support, so we append a major version to the name.
  63200. + soname_spec='${libname}${release}${shared_ext}$major'
  63201. + ;;
  63202. +
  63203. +aix[[4-9]]*)
  63204. + version_type=linux
  63205. + need_lib_prefix=no
  63206. + need_version=no
  63207. + hardcode_into_libs=yes
  63208. + if test "$host_cpu" = ia64; then
  63209. + # AIX 5 supports IA64
  63210. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  63211. + shlibpath_var=LD_LIBRARY_PATH
  63212. + else
  63213. + # With GCC up to 2.95.x, collect2 would create an import file
  63214. + # for dependence libraries. The import file would start with
  63215. + # the line `#! .'. This would cause the generated library to
  63216. + # depend on `.', always an invalid library. This was fixed in
  63217. + # development snapshots of GCC prior to 3.0.
  63218. + case $host_os in
  63219. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  63220. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  63221. + echo ' yes '
  63222. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  63223. + :
  63224. + else
  63225. + can_build_shared=no
  63226. + fi
  63227. + ;;
  63228. + esac
  63229. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  63230. + # soname into executable. Probably we can add versioning support to
  63231. + # collect2, so additional links can be useful in future.
  63232. + if test "$aix_use_runtimelinking" = yes; then
  63233. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  63234. + # instead of lib<name>.a to let people know that these are not
  63235. + # typical AIX shared libraries.
  63236. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63237. + else
  63238. + # We preserve .a as extension for shared libraries through AIX4.2
  63239. + # and later when we are not doing run time linking.
  63240. + library_names_spec='${libname}${release}.a $libname.a'
  63241. + soname_spec='${libname}${release}${shared_ext}$major'
  63242. + fi
  63243. + shlibpath_var=LIBPATH
  63244. + fi
  63245. + ;;
  63246. +
  63247. +amigaos*)
  63248. + case $host_cpu in
  63249. + powerpc)
  63250. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  63251. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  63252. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63253. + ;;
  63254. + m68k)
  63255. + library_names_spec='$libname.ixlibrary $libname.a'
  63256. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  63257. + 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'
  63258. + ;;
  63259. + esac
  63260. + ;;
  63261. +
  63262. +beos*)
  63263. + library_names_spec='${libname}${shared_ext}'
  63264. + dynamic_linker="$host_os ld.so"
  63265. + shlibpath_var=LIBRARY_PATH
  63266. + ;;
  63267. +
  63268. +bsdi[[45]]*)
  63269. + version_type=linux
  63270. + need_version=no
  63271. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63272. + soname_spec='${libname}${release}${shared_ext}$major'
  63273. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  63274. + shlibpath_var=LD_LIBRARY_PATH
  63275. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  63276. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  63277. + # the default ld.so.conf also contains /usr/contrib/lib and
  63278. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  63279. + # libtool to hard-code these into programs
  63280. + ;;
  63281. +
  63282. +cygwin* | mingw* | pw32* | cegcc*)
  63283. + version_type=windows
  63284. + shrext_cmds=".dll"
  63285. + need_version=no
  63286. + need_lib_prefix=no
  63287. +
  63288. + case $GCC,$host_os in
  63289. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  63290. + library_names_spec='$libname.dll.a'
  63291. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  63292. + postinstall_cmds='base_file=`basename \${file}`~
  63293. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  63294. + dldir=$destdir/`dirname \$dlpath`~
  63295. + test -d \$dldir || mkdir -p \$dldir~
  63296. + $install_prog $dir/$dlname \$dldir/$dlname~
  63297. + chmod a+x \$dldir/$dlname~
  63298. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  63299. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  63300. + fi'
  63301. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  63302. + dlpath=$dir/\$dldll~
  63303. + $RM \$dlpath'
  63304. + shlibpath_overrides_runpath=yes
  63305. +
  63306. + case $host_os in
  63307. + cygwin*)
  63308. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  63309. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  63310. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  63311. + ;;
  63312. + mingw* | cegcc*)
  63313. + # MinGW DLLs use traditional 'lib' prefix
  63314. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  63315. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  63316. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  63317. + # It is most probably a Windows format PATH printed by
  63318. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  63319. + # path with ; separators, and with drive letters. We can handle the
  63320. + # drive letters (cygwin fileutils understands them), so leave them,
  63321. + # especially as we might pass files found there to a mingw objdump,
  63322. + # which wouldn't understand a cygwinified path. Ahh.
  63323. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  63324. + else
  63325. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  63326. + fi
  63327. + ;;
  63328. + pw32*)
  63329. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  63330. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  63331. + ;;
  63332. + esac
  63333. + ;;
  63334. +
  63335. + *)
  63336. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  63337. + ;;
  63338. + esac
  63339. + dynamic_linker='Win32 ld.exe'
  63340. + # FIXME: first we should search . and the directory the executable is in
  63341. + shlibpath_var=PATH
  63342. + ;;
  63343. +
  63344. +darwin* | rhapsody*)
  63345. + dynamic_linker="$host_os dyld"
  63346. + version_type=darwin
  63347. + need_lib_prefix=no
  63348. + need_version=no
  63349. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  63350. + soname_spec='${libname}${release}${major}$shared_ext'
  63351. + shlibpath_overrides_runpath=yes
  63352. + shlibpath_var=DYLD_LIBRARY_PATH
  63353. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  63354. +m4_if([$1], [],[
  63355. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  63356. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  63357. + ;;
  63358. +
  63359. +dgux*)
  63360. + version_type=linux
  63361. + need_lib_prefix=no
  63362. + need_version=no
  63363. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  63364. + soname_spec='${libname}${release}${shared_ext}$major'
  63365. + shlibpath_var=LD_LIBRARY_PATH
  63366. + ;;
  63367. +
  63368. +freebsd1*)
  63369. + dynamic_linker=no
  63370. + ;;
  63371. +
  63372. +freebsd* | dragonfly*)
  63373. + # DragonFly does not have aout. When/if they implement a new
  63374. + # versioning mechanism, adjust this.
  63375. + if test -x /usr/bin/objformat; then
  63376. + objformat=`/usr/bin/objformat`
  63377. + else
  63378. + case $host_os in
  63379. + freebsd[[123]]*) objformat=aout ;;
  63380. + *) objformat=elf ;;
  63381. + esac
  63382. + fi
  63383. + version_type=freebsd-$objformat
  63384. + case $version_type in
  63385. + freebsd-elf*)
  63386. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  63387. + need_version=no
  63388. + need_lib_prefix=no
  63389. + ;;
  63390. + freebsd-*)
  63391. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  63392. + need_version=yes
  63393. + ;;
  63394. + esac
  63395. + shlibpath_var=LD_LIBRARY_PATH
  63396. + case $host_os in
  63397. + freebsd2*)
  63398. + shlibpath_overrides_runpath=yes
  63399. + ;;
  63400. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  63401. + shlibpath_overrides_runpath=yes
  63402. + hardcode_into_libs=yes
  63403. + ;;
  63404. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  63405. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  63406. + shlibpath_overrides_runpath=no
  63407. + hardcode_into_libs=yes
  63408. + ;;
  63409. + *) # from 4.6 on, and DragonFly
  63410. + shlibpath_overrides_runpath=yes
  63411. + hardcode_into_libs=yes
  63412. + ;;
  63413. + esac
  63414. + ;;
  63415. +
  63416. +gnu*)
  63417. + version_type=linux
  63418. + need_lib_prefix=no
  63419. + need_version=no
  63420. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  63421. + soname_spec='${libname}${release}${shared_ext}$major'
  63422. + shlibpath_var=LD_LIBRARY_PATH
  63423. + hardcode_into_libs=yes
  63424. + ;;
  63425. +
  63426. +hpux9* | hpux10* | hpux11*)
  63427. + # Give a soname corresponding to the major version so that dld.sl refuses to
  63428. + # link against other versions.
  63429. + version_type=sunos
  63430. + need_lib_prefix=no
  63431. + need_version=no
  63432. + case $host_cpu in
  63433. + ia64*)
  63434. + shrext_cmds='.so'
  63435. + hardcode_into_libs=yes
  63436. + dynamic_linker="$host_os dld.so"
  63437. + shlibpath_var=LD_LIBRARY_PATH
  63438. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  63439. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63440. + soname_spec='${libname}${release}${shared_ext}$major'
  63441. + if test "X$HPUX_IA64_MODE" = X32; then
  63442. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  63443. + else
  63444. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  63445. + fi
  63446. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  63447. + ;;
  63448. + hppa*64*)
  63449. + shrext_cmds='.sl'
  63450. + hardcode_into_libs=yes
  63451. + dynamic_linker="$host_os dld.sl"
  63452. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  63453. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  63454. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63455. + soname_spec='${libname}${release}${shared_ext}$major'
  63456. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  63457. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  63458. + ;;
  63459. + *)
  63460. + shrext_cmds='.sl'
  63461. + dynamic_linker="$host_os dld.sl"
  63462. + shlibpath_var=SHLIB_PATH
  63463. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  63464. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63465. + soname_spec='${libname}${release}${shared_ext}$major'
  63466. + ;;
  63467. + esac
  63468. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  63469. + postinstall_cmds='chmod 555 $lib'
  63470. + ;;
  63471. +
  63472. +interix[[3-9]]*)
  63473. + version_type=linux
  63474. + need_lib_prefix=no
  63475. + need_version=no
  63476. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  63477. + soname_spec='${libname}${release}${shared_ext}$major'
  63478. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  63479. + shlibpath_var=LD_LIBRARY_PATH
  63480. + shlibpath_overrides_runpath=no
  63481. + hardcode_into_libs=yes
  63482. + ;;
  63483. +
  63484. +irix5* | irix6* | nonstopux*)
  63485. + case $host_os in
  63486. + nonstopux*) version_type=nonstopux ;;
  63487. + *)
  63488. + if test "$lt_cv_prog_gnu_ld" = yes; then
  63489. + version_type=linux
  63490. + else
  63491. + version_type=irix
  63492. + fi ;;
  63493. + esac
  63494. + need_lib_prefix=no
  63495. + need_version=no
  63496. + soname_spec='${libname}${release}${shared_ext}$major'
  63497. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  63498. + case $host_os in
  63499. + irix5* | nonstopux*)
  63500. + libsuff= shlibsuff=
  63501. + ;;
  63502. + *)
  63503. + case $LD in # libtool.m4 will add one of these switches to LD
  63504. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  63505. + libsuff= shlibsuff= libmagic=32-bit;;
  63506. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  63507. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  63508. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  63509. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  63510. + *) libsuff= shlibsuff= libmagic=never-match;;
  63511. + esac
  63512. + ;;
  63513. + esac
  63514. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  63515. + shlibpath_overrides_runpath=no
  63516. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  63517. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  63518. + hardcode_into_libs=yes
  63519. + ;;
  63520. +
  63521. +# No shared lib support for Linux oldld, aout, or coff.
  63522. +linux*oldld* | linux*aout* | linux*coff*)
  63523. + dynamic_linker=no
  63524. + ;;
  63525. +
  63526. +# This must be Linux ELF.
  63527. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  63528. + version_type=linux
  63529. + need_lib_prefix=no
  63530. + need_version=no
  63531. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63532. + soname_spec='${libname}${release}${shared_ext}$major'
  63533. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  63534. + shlibpath_var=LD_LIBRARY_PATH
  63535. + shlibpath_overrides_runpath=no
  63536. + # Some binutils ld are patched to set DT_RUNPATH
  63537. + save_LDFLAGS=$LDFLAGS
  63538. + save_libdir=$libdir
  63539. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  63540. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  63541. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  63542. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  63543. + [shlibpath_overrides_runpath=yes])])
  63544. + LDFLAGS=$save_LDFLAGS
  63545. + libdir=$save_libdir
  63546. +
  63547. + # This implies no fast_install, which is unacceptable.
  63548. + # Some rework will be needed to allow for fast_install
  63549. + # before this can be enabled.
  63550. + hardcode_into_libs=yes
  63551. +
  63552. + # Append ld.so.conf contents to the search path
  63553. + if test -f /etc/ld.so.conf; then
  63554. + 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' ' '`
  63555. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  63556. + fi
  63557. +
  63558. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  63559. + # powerpc, because MkLinux only supported shared libraries with the
  63560. + # GNU dynamic linker. Since this was broken with cross compilers,
  63561. + # most powerpc-linux boxes support dynamic linking these days and
  63562. + # people can always --disable-shared, the test was removed, and we
  63563. + # assume the GNU/Linux dynamic linker is in use.
  63564. + dynamic_linker='GNU/Linux ld.so'
  63565. + ;;
  63566. +
  63567. +netbsdelf*-gnu)
  63568. + version_type=linux
  63569. + need_lib_prefix=no
  63570. + need_version=no
  63571. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  63572. + soname_spec='${libname}${release}${shared_ext}$major'
  63573. + shlibpath_var=LD_LIBRARY_PATH
  63574. + shlibpath_overrides_runpath=no
  63575. + hardcode_into_libs=yes
  63576. + dynamic_linker='NetBSD ld.elf_so'
  63577. + ;;
  63578. +
  63579. +netbsd*)
  63580. + version_type=sunos
  63581. + need_lib_prefix=no
  63582. + need_version=no
  63583. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  63584. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  63585. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  63586. + dynamic_linker='NetBSD (a.out) ld.so'
  63587. + else
  63588. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  63589. + soname_spec='${libname}${release}${shared_ext}$major'
  63590. + dynamic_linker='NetBSD ld.elf_so'
  63591. + fi
  63592. + shlibpath_var=LD_LIBRARY_PATH
  63593. + shlibpath_overrides_runpath=yes
  63594. + hardcode_into_libs=yes
  63595. + ;;
  63596. +
  63597. +newsos6)
  63598. + version_type=linux
  63599. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63600. + shlibpath_var=LD_LIBRARY_PATH
  63601. + shlibpath_overrides_runpath=yes
  63602. + ;;
  63603. +
  63604. +*nto* | *qnx*)
  63605. + version_type=qnx
  63606. + need_lib_prefix=no
  63607. + need_version=no
  63608. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63609. + soname_spec='${libname}${release}${shared_ext}$major'
  63610. + shlibpath_var=LD_LIBRARY_PATH
  63611. + shlibpath_overrides_runpath=no
  63612. + hardcode_into_libs=yes
  63613. + dynamic_linker='ldqnx.so'
  63614. + ;;
  63615. +
  63616. +openbsd*)
  63617. + version_type=sunos
  63618. + sys_lib_dlsearch_path_spec="/usr/lib"
  63619. + need_lib_prefix=no
  63620. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  63621. + case $host_os in
  63622. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  63623. + *) need_version=no ;;
  63624. + esac
  63625. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  63626. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  63627. + shlibpath_var=LD_LIBRARY_PATH
  63628. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  63629. + case $host_os in
  63630. + openbsd2.[[89]] | openbsd2.[[89]].*)
  63631. + shlibpath_overrides_runpath=no
  63632. + ;;
  63633. + *)
  63634. + shlibpath_overrides_runpath=yes
  63635. + ;;
  63636. + esac
  63637. + else
  63638. + shlibpath_overrides_runpath=yes
  63639. + fi
  63640. + ;;
  63641. +
  63642. +os2*)
  63643. + libname_spec='$name'
  63644. + shrext_cmds=".dll"
  63645. + need_lib_prefix=no
  63646. + library_names_spec='$libname${shared_ext} $libname.a'
  63647. + dynamic_linker='OS/2 ld.exe'
  63648. + shlibpath_var=LIBPATH
  63649. + ;;
  63650. +
  63651. +osf3* | osf4* | osf5*)
  63652. + version_type=osf
  63653. + need_lib_prefix=no
  63654. + need_version=no
  63655. + soname_spec='${libname}${release}${shared_ext}$major'
  63656. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63657. + shlibpath_var=LD_LIBRARY_PATH
  63658. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  63659. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  63660. + ;;
  63661. +
  63662. +rdos*)
  63663. + dynamic_linker=no
  63664. + ;;
  63665. +
  63666. +solaris*)
  63667. + version_type=linux
  63668. + need_lib_prefix=no
  63669. + need_version=no
  63670. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63671. + soname_spec='${libname}${release}${shared_ext}$major'
  63672. + shlibpath_var=LD_LIBRARY_PATH
  63673. + shlibpath_overrides_runpath=yes
  63674. + hardcode_into_libs=yes
  63675. + # ldd complains unless libraries are executable
  63676. + postinstall_cmds='chmod +x $lib'
  63677. + ;;
  63678. +
  63679. +sunos4*)
  63680. + version_type=sunos
  63681. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  63682. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  63683. + shlibpath_var=LD_LIBRARY_PATH
  63684. + shlibpath_overrides_runpath=yes
  63685. + if test "$with_gnu_ld" = yes; then
  63686. + need_lib_prefix=no
  63687. + fi
  63688. + need_version=yes
  63689. + ;;
  63690. +
  63691. +sysv4 | sysv4.3*)
  63692. + version_type=linux
  63693. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63694. + soname_spec='${libname}${release}${shared_ext}$major'
  63695. + shlibpath_var=LD_LIBRARY_PATH
  63696. + case $host_vendor in
  63697. + sni)
  63698. + shlibpath_overrides_runpath=no
  63699. + need_lib_prefix=no
  63700. + runpath_var=LD_RUN_PATH
  63701. + ;;
  63702. + siemens)
  63703. + need_lib_prefix=no
  63704. + ;;
  63705. + motorola)
  63706. + need_lib_prefix=no
  63707. + need_version=no
  63708. + shlibpath_overrides_runpath=no
  63709. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  63710. + ;;
  63711. + esac
  63712. + ;;
  63713. +
  63714. +sysv4*MP*)
  63715. + if test -d /usr/nec ;then
  63716. + version_type=linux
  63717. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  63718. + soname_spec='$libname${shared_ext}.$major'
  63719. + shlibpath_var=LD_LIBRARY_PATH
  63720. + fi
  63721. + ;;
  63722. +
  63723. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  63724. + version_type=freebsd-elf
  63725. + need_lib_prefix=no
  63726. + need_version=no
  63727. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  63728. + soname_spec='${libname}${release}${shared_ext}$major'
  63729. + shlibpath_var=LD_LIBRARY_PATH
  63730. + shlibpath_overrides_runpath=yes
  63731. + hardcode_into_libs=yes
  63732. + if test "$with_gnu_ld" = yes; then
  63733. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  63734. + else
  63735. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  63736. + case $host_os in
  63737. + sco3.2v5*)
  63738. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  63739. + ;;
  63740. + esac
  63741. + fi
  63742. + sys_lib_dlsearch_path_spec='/usr/lib'
  63743. + ;;
  63744. +
  63745. +tpf*)
  63746. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  63747. + version_type=linux
  63748. + need_lib_prefix=no
  63749. + need_version=no
  63750. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63751. + shlibpath_var=LD_LIBRARY_PATH
  63752. + shlibpath_overrides_runpath=no
  63753. + hardcode_into_libs=yes
  63754. + ;;
  63755. +
  63756. +uts4*)
  63757. + version_type=linux
  63758. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  63759. + soname_spec='${libname}${release}${shared_ext}$major'
  63760. + shlibpath_var=LD_LIBRARY_PATH
  63761. + ;;
  63762. +
  63763. +*)
  63764. + dynamic_linker=no
  63765. + ;;
  63766. +esac
  63767. +AC_MSG_RESULT([$dynamic_linker])
  63768. +test "$dynamic_linker" = no && can_build_shared=no
  63769. +
  63770. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  63771. +if test "$GCC" = yes; then
  63772. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  63773. +fi
  63774. +
  63775. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  63776. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  63777. +fi
  63778. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  63779. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  63780. +fi
  63781. +
  63782. +_LT_DECL([], [variables_saved_for_relink], [1],
  63783. + [Variables whose values should be saved in libtool wrapper scripts and
  63784. + restored at link time])
  63785. +_LT_DECL([], [need_lib_prefix], [0],
  63786. + [Do we need the "lib" prefix for modules?])
  63787. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  63788. +_LT_DECL([], [version_type], [0], [Library versioning type])
  63789. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  63790. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  63791. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  63792. + [Is shlibpath searched before the hard-coded library search path?])
  63793. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  63794. +_LT_DECL([], [library_names_spec], [1],
  63795. + [[List of archive names. First name is the real one, the rest are links.
  63796. + The last name is the one that the linker finds with -lNAME]])
  63797. +_LT_DECL([], [soname_spec], [1],
  63798. + [[The coded name of the library, if different from the real name]])
  63799. +_LT_DECL([], [postinstall_cmds], [2],
  63800. + [Command to use after installation of a shared archive])
  63801. +_LT_DECL([], [postuninstall_cmds], [2],
  63802. + [Command to use after uninstallation of a shared archive])
  63803. +_LT_DECL([], [finish_cmds], [2],
  63804. + [Commands used to finish a libtool library installation in a directory])
  63805. +_LT_DECL([], [finish_eval], [1],
  63806. + [[As "finish_cmds", except a single script fragment to be evaled but
  63807. + not shown]])
  63808. +_LT_DECL([], [hardcode_into_libs], [0],
  63809. + [Whether we should hardcode library paths into libraries])
  63810. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  63811. + [Compile-time system search path for libraries])
  63812. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  63813. + [Run-time system search path for libraries])
  63814. +])# _LT_SYS_DYNAMIC_LINKER
  63815. +
  63816. +
  63817. +# _LT_PATH_TOOL_PREFIX(TOOL)
  63818. +# --------------------------
  63819. +# find a file program which can recognize shared library
  63820. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  63821. +[m4_require([_LT_DECL_EGREP])dnl
  63822. +AC_MSG_CHECKING([for $1])
  63823. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  63824. +[case $MAGIC_CMD in
  63825. +[[\\/*] | ?:[\\/]*])
  63826. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  63827. + ;;
  63828. +*)
  63829. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  63830. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  63831. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  63832. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  63833. +dnl not every word. This closes a longstanding sh security hole.
  63834. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  63835. + for ac_dir in $ac_dummy; do
  63836. + IFS="$lt_save_ifs"
  63837. + test -z "$ac_dir" && ac_dir=.
  63838. + if test -f $ac_dir/$1; then
  63839. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  63840. + if test -n "$file_magic_test_file"; then
  63841. + case $deplibs_check_method in
  63842. + "file_magic "*)
  63843. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  63844. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  63845. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  63846. + $EGREP "$file_magic_regex" > /dev/null; then
  63847. + :
  63848. + else
  63849. + cat <<_LT_EOF 1>&2
  63850. +
  63851. +*** Warning: the command libtool uses to detect shared libraries,
  63852. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  63853. +*** The result is that libtool may fail to recognize shared libraries
  63854. +*** as such. This will affect the creation of libtool libraries that
  63855. +*** depend on shared libraries, but programs linked with such libtool
  63856. +*** libraries will work regardless of this problem. Nevertheless, you
  63857. +*** may want to report the problem to your system manager and/or to
  63858. +*** bug-libtool@gnu.org
  63859. +
  63860. +_LT_EOF
  63861. + fi ;;
  63862. + esac
  63863. + fi
  63864. + break
  63865. + fi
  63866. + done
  63867. + IFS="$lt_save_ifs"
  63868. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  63869. + ;;
  63870. +esac])
  63871. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  63872. +if test -n "$MAGIC_CMD"; then
  63873. + AC_MSG_RESULT($MAGIC_CMD)
  63874. +else
  63875. + AC_MSG_RESULT(no)
  63876. +fi
  63877. +_LT_DECL([], [MAGIC_CMD], [0],
  63878. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  63879. +])# _LT_PATH_TOOL_PREFIX
  63880. +
  63881. +# Old name:
  63882. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  63883. +dnl aclocal-1.4 backwards compatibility:
  63884. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  63885. +
  63886. +
  63887. +# _LT_PATH_MAGIC
  63888. +# --------------
  63889. +# find a file program which can recognize a shared library
  63890. +m4_defun([_LT_PATH_MAGIC],
  63891. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  63892. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  63893. + if test -n "$ac_tool_prefix"; then
  63894. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  63895. + else
  63896. + MAGIC_CMD=:
  63897. + fi
  63898. +fi
  63899. +])# _LT_PATH_MAGIC
  63900. +
  63901. +
  63902. +# LT_PATH_LD
  63903. +# ----------
  63904. +# find the pathname to the GNU or non-GNU linker
  63905. +AC_DEFUN([LT_PATH_LD],
  63906. +[AC_REQUIRE([AC_PROG_CC])dnl
  63907. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  63908. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  63909. +m4_require([_LT_DECL_SED])dnl
  63910. +m4_require([_LT_DECL_EGREP])dnl
  63911. +
  63912. +AC_ARG_WITH([gnu-ld],
  63913. + [AS_HELP_STRING([--with-gnu-ld],
  63914. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  63915. + [test "$withval" = no || with_gnu_ld=yes],
  63916. + [with_gnu_ld=no])dnl
  63917. +
  63918. +ac_prog=ld
  63919. +if test "$GCC" = yes; then
  63920. + # Check if gcc -print-prog-name=ld gives a path.
  63921. + AC_MSG_CHECKING([for ld used by $CC])
  63922. + case $host in
  63923. + *-*-mingw*)
  63924. + # gcc leaves a trailing carriage return which upsets mingw
  63925. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  63926. + *)
  63927. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  63928. + esac
  63929. + case $ac_prog in
  63930. + # Accept absolute paths.
  63931. + [[\\/]]* | ?:[[\\/]]*)
  63932. + re_direlt='/[[^/]][[^/]]*/\.\./'
  63933. + # Canonicalize the pathname of ld
  63934. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  63935. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  63936. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  63937. + done
  63938. + test -z "$LD" && LD="$ac_prog"
  63939. + ;;
  63940. + "")
  63941. + # If it fails, then pretend we aren't using GCC.
  63942. + ac_prog=ld
  63943. + ;;
  63944. + *)
  63945. + # If it is relative, then search for the first ld in PATH.
  63946. + with_gnu_ld=unknown
  63947. + ;;
  63948. + esac
  63949. +elif test "$with_gnu_ld" = yes; then
  63950. + AC_MSG_CHECKING([for GNU ld])
  63951. +else
  63952. + AC_MSG_CHECKING([for non-GNU ld])
  63953. +fi
  63954. +AC_CACHE_VAL(lt_cv_path_LD,
  63955. +[if test -z "$LD"; then
  63956. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  63957. + for ac_dir in $PATH; do
  63958. + IFS="$lt_save_ifs"
  63959. + test -z "$ac_dir" && ac_dir=.
  63960. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  63961. + lt_cv_path_LD="$ac_dir/$ac_prog"
  63962. + # Check to see if the program is GNU ld. I'd rather use --version,
  63963. + # but apparently some variants of GNU ld only accept -v.
  63964. + # Break only if it was the GNU/non-GNU ld that we prefer.
  63965. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  63966. + *GNU* | *'with BFD'*)
  63967. + test "$with_gnu_ld" != no && break
  63968. + ;;
  63969. + *)
  63970. + test "$with_gnu_ld" != yes && break
  63971. + ;;
  63972. + esac
  63973. + fi
  63974. + done
  63975. + IFS="$lt_save_ifs"
  63976. +else
  63977. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  63978. +fi])
  63979. +LD="$lt_cv_path_LD"
  63980. +if test -n "$LD"; then
  63981. + AC_MSG_RESULT($LD)
  63982. +else
  63983. + AC_MSG_RESULT(no)
  63984. +fi
  63985. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  63986. +_LT_PATH_LD_GNU
  63987. +AC_SUBST([LD])
  63988. +
  63989. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  63990. +])# LT_PATH_LD
  63991. +
  63992. +# Old names:
  63993. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  63994. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  63995. +dnl aclocal-1.4 backwards compatibility:
  63996. +dnl AC_DEFUN([AM_PROG_LD], [])
  63997. +dnl AC_DEFUN([AC_PROG_LD], [])
  63998. +
  63999. +
  64000. +# _LT_PATH_LD_GNU
  64001. +#- --------------
  64002. +m4_defun([_LT_PATH_LD_GNU],
  64003. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  64004. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  64005. +case `$LD -v 2>&1 </dev/null` in
  64006. +*GNU* | *'with BFD'*)
  64007. + lt_cv_prog_gnu_ld=yes
  64008. + ;;
  64009. +*)
  64010. + lt_cv_prog_gnu_ld=no
  64011. + ;;
  64012. +esac])
  64013. +with_gnu_ld=$lt_cv_prog_gnu_ld
  64014. +])# _LT_PATH_LD_GNU
  64015. +
  64016. +
  64017. +# _LT_CMD_RELOAD
  64018. +# --------------
  64019. +# find reload flag for linker
  64020. +# -- PORTME Some linkers may need a different reload flag.
  64021. +m4_defun([_LT_CMD_RELOAD],
  64022. +[AC_CACHE_CHECK([for $LD option to reload object files],
  64023. + lt_cv_ld_reload_flag,
  64024. + [lt_cv_ld_reload_flag='-r'])
  64025. +reload_flag=$lt_cv_ld_reload_flag
  64026. +case $reload_flag in
  64027. +"" | " "*) ;;
  64028. +*) reload_flag=" $reload_flag" ;;
  64029. +esac
  64030. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  64031. +case $host_os in
  64032. + darwin*)
  64033. + if test "$GCC" = yes; then
  64034. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  64035. + else
  64036. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  64037. + fi
  64038. + ;;
  64039. +esac
  64040. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  64041. +_LT_DECL([], [reload_cmds], [2])dnl
  64042. +])# _LT_CMD_RELOAD
  64043. +
  64044. +
  64045. +# _LT_CHECK_MAGIC_METHOD
  64046. +# ----------------------
  64047. +# how to check for library dependencies
  64048. +# -- PORTME fill in with the dynamic library characteristics
  64049. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  64050. +[m4_require([_LT_DECL_EGREP])
  64051. +m4_require([_LT_DECL_OBJDUMP])
  64052. +AC_CACHE_CHECK([how to recognize dependent libraries],
  64053. +lt_cv_deplibs_check_method,
  64054. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  64055. +lt_cv_file_magic_test_file=
  64056. +lt_cv_deplibs_check_method='unknown'
  64057. +# Need to set the preceding variable on all platforms that support
  64058. +# interlibrary dependencies.
  64059. +# 'none' -- dependencies not supported.
  64060. +# `unknown' -- same as none, but documents that we really don't know.
  64061. +# 'pass_all' -- all dependencies passed with no checks.
  64062. +# 'test_compile' -- check by making test program.
  64063. +# 'file_magic [[regex]]' -- check by looking for files in library path
  64064. +# which responds to the $file_magic_cmd with a given extended regex.
  64065. +# If you have `file' or equivalent on your system and you're not sure
  64066. +# whether `pass_all' will *always* work, you probably want this one.
  64067. +
  64068. +case $host_os in
  64069. +aix[[4-9]]*)
  64070. + lt_cv_deplibs_check_method=pass_all
  64071. + ;;
  64072. +
  64073. +beos*)
  64074. + lt_cv_deplibs_check_method=pass_all
  64075. + ;;
  64076. +
  64077. +bsdi[[45]]*)
  64078. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  64079. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  64080. + lt_cv_file_magic_test_file=/shlib/libc.so
  64081. + ;;
  64082. +
  64083. +cygwin*)
  64084. + # func_win32_libid is a shell function defined in ltmain.sh
  64085. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  64086. + lt_cv_file_magic_cmd='func_win32_libid'
  64087. + ;;
  64088. +
  64089. +mingw* | pw32*)
  64090. + # Base MSYS/MinGW do not provide the 'file' command needed by
  64091. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  64092. + # unless we find 'file', for example because we are cross-compiling.
  64093. + if ( file / ) >/dev/null 2>&1; then
  64094. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  64095. + lt_cv_file_magic_cmd='func_win32_libid'
  64096. + else
  64097. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  64098. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  64099. + fi
  64100. + ;;
  64101. +
  64102. +cegcc)
  64103. + # use the weaker test based on 'objdump'. See mingw*.
  64104. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  64105. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  64106. + ;;
  64107. +
  64108. +darwin* | rhapsody*)
  64109. + lt_cv_deplibs_check_method=pass_all
  64110. + ;;
  64111. +
  64112. +freebsd* | dragonfly*)
  64113. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  64114. + case $host_cpu in
  64115. + i*86 )
  64116. + # Not sure whether the presence of OpenBSD here was a mistake.
  64117. + # Let's accept both of them until this is cleared up.
  64118. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  64119. + lt_cv_file_magic_cmd=/usr/bin/file
  64120. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  64121. + ;;
  64122. + esac
  64123. + else
  64124. + lt_cv_deplibs_check_method=pass_all
  64125. + fi
  64126. + ;;
  64127. +
  64128. +gnu*)
  64129. + lt_cv_deplibs_check_method=pass_all
  64130. + ;;
  64131. +
  64132. +hpux10.20* | hpux11*)
  64133. + lt_cv_file_magic_cmd=/usr/bin/file
  64134. + case $host_cpu in
  64135. + ia64*)
  64136. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  64137. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  64138. + ;;
  64139. + hppa*64*)
  64140. + [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]']
  64141. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  64142. + ;;
  64143. + *)
  64144. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  64145. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  64146. + ;;
  64147. + esac
  64148. + ;;
  64149. +
  64150. +interix[[3-9]]*)
  64151. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  64152. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  64153. + ;;
  64154. +
  64155. +irix5* | irix6* | nonstopux*)
  64156. + case $LD in
  64157. + *-32|*"-32 ") libmagic=32-bit;;
  64158. + *-n32|*"-n32 ") libmagic=N32;;
  64159. + *-64|*"-64 ") libmagic=64-bit;;
  64160. + *) libmagic=never-match;;
  64161. + esac
  64162. + lt_cv_deplibs_check_method=pass_all
  64163. + ;;
  64164. +
  64165. +# This must be Linux ELF.
  64166. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  64167. + lt_cv_deplibs_check_method=pass_all
  64168. + ;;
  64169. +
  64170. +netbsd* | netbsdelf*-gnu)
  64171. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  64172. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  64173. + else
  64174. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  64175. + fi
  64176. + ;;
  64177. +
  64178. +newos6*)
  64179. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  64180. + lt_cv_file_magic_cmd=/usr/bin/file
  64181. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  64182. + ;;
  64183. +
  64184. +*nto* | *qnx*)
  64185. + lt_cv_deplibs_check_method=pass_all
  64186. + ;;
  64187. +
  64188. +openbsd*)
  64189. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  64190. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  64191. + else
  64192. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  64193. + fi
  64194. + ;;
  64195. +
  64196. +osf3* | osf4* | osf5*)
  64197. + lt_cv_deplibs_check_method=pass_all
  64198. + ;;
  64199. +
  64200. +rdos*)
  64201. + lt_cv_deplibs_check_method=pass_all
  64202. + ;;
  64203. +
  64204. +solaris*)
  64205. + lt_cv_deplibs_check_method=pass_all
  64206. + ;;
  64207. +
  64208. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  64209. + lt_cv_deplibs_check_method=pass_all
  64210. + ;;
  64211. +
  64212. +sysv4 | sysv4.3*)
  64213. + case $host_vendor in
  64214. + motorola)
  64215. + 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]]'
  64216. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  64217. + ;;
  64218. + ncr)
  64219. + lt_cv_deplibs_check_method=pass_all
  64220. + ;;
  64221. + sequent)
  64222. + lt_cv_file_magic_cmd='/bin/file'
  64223. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  64224. + ;;
  64225. + sni)
  64226. + lt_cv_file_magic_cmd='/bin/file'
  64227. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  64228. + lt_cv_file_magic_test_file=/lib/libc.so
  64229. + ;;
  64230. + siemens)
  64231. + lt_cv_deplibs_check_method=pass_all
  64232. + ;;
  64233. + pc)
  64234. + lt_cv_deplibs_check_method=pass_all
  64235. + ;;
  64236. + esac
  64237. + ;;
  64238. +
  64239. +tpf*)
  64240. + lt_cv_deplibs_check_method=pass_all
  64241. + ;;
  64242. +esac
  64243. +])
  64244. +file_magic_cmd=$lt_cv_file_magic_cmd
  64245. +deplibs_check_method=$lt_cv_deplibs_check_method
  64246. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  64247. +
  64248. +_LT_DECL([], [deplibs_check_method], [1],
  64249. + [Method to check whether dependent libraries are shared objects])
  64250. +_LT_DECL([], [file_magic_cmd], [1],
  64251. + [Command to use when deplibs_check_method == "file_magic"])
  64252. +])# _LT_CHECK_MAGIC_METHOD
  64253. +
  64254. +
  64255. +# LT_PATH_NM
  64256. +# ----------
  64257. +# find the pathname to a BSD- or MS-compatible name lister
  64258. +AC_DEFUN([LT_PATH_NM],
  64259. +[AC_REQUIRE([AC_PROG_CC])dnl
  64260. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  64261. +[if test -n "$NM"; then
  64262. + # Let the user override the test.
  64263. + lt_cv_path_NM="$NM"
  64264. +else
  64265. + lt_nm_to_check="${ac_tool_prefix}nm"
  64266. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  64267. + lt_nm_to_check="$lt_nm_to_check nm"
  64268. + fi
  64269. + for lt_tmp_nm in $lt_nm_to_check; do
  64270. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  64271. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  64272. + IFS="$lt_save_ifs"
  64273. + test -z "$ac_dir" && ac_dir=.
  64274. + tmp_nm="$ac_dir/$lt_tmp_nm"
  64275. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  64276. + # Check to see if the nm accepts a BSD-compat flag.
  64277. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  64278. + # nm: unknown option "B" ignored
  64279. + # Tru64's nm complains that /dev/null is an invalid object file
  64280. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  64281. + */dev/null* | *'Invalid file or object type'*)
  64282. + lt_cv_path_NM="$tmp_nm -B"
  64283. + break
  64284. + ;;
  64285. + *)
  64286. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  64287. + */dev/null*)
  64288. + lt_cv_path_NM="$tmp_nm -p"
  64289. + break
  64290. + ;;
  64291. + *)
  64292. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  64293. + continue # so that we can try to find one that supports BSD flags
  64294. + ;;
  64295. + esac
  64296. + ;;
  64297. + esac
  64298. + fi
  64299. + done
  64300. + IFS="$lt_save_ifs"
  64301. + done
  64302. + : ${lt_cv_path_NM=no}
  64303. +fi])
  64304. +if test "$lt_cv_path_NM" != "no"; then
  64305. + NM="$lt_cv_path_NM"
  64306. +else
  64307. + # Didn't find any BSD compatible name lister, look for dumpbin.
  64308. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  64309. + AC_SUBST([DUMPBIN])
  64310. + if test "$DUMPBIN" != ":"; then
  64311. + NM="$DUMPBIN"
  64312. + fi
  64313. +fi
  64314. +test -z "$NM" && NM=nm
  64315. +AC_SUBST([NM])
  64316. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  64317. +
  64318. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  64319. + [lt_cv_nm_interface="BSD nm"
  64320. + echo "int some_variable = 0;" > conftest.$ac_ext
  64321. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  64322. + (eval "$ac_compile" 2>conftest.err)
  64323. + cat conftest.err >&AS_MESSAGE_LOG_FD
  64324. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  64325. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  64326. + cat conftest.err >&AS_MESSAGE_LOG_FD
  64327. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  64328. + cat conftest.out >&AS_MESSAGE_LOG_FD
  64329. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  64330. + lt_cv_nm_interface="MS dumpbin"
  64331. + fi
  64332. + rm -f conftest*])
  64333. +])# LT_PATH_NM
  64334. +
  64335. +# Old names:
  64336. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  64337. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  64338. +dnl aclocal-1.4 backwards compatibility:
  64339. +dnl AC_DEFUN([AM_PROG_NM], [])
  64340. +dnl AC_DEFUN([AC_PROG_NM], [])
  64341. +
  64342. +
  64343. +# LT_LIB_M
  64344. +# --------
  64345. +# check for math library
  64346. +AC_DEFUN([LT_LIB_M],
  64347. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  64348. +LIBM=
  64349. +case $host in
  64350. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  64351. + # These system don't have libm, or don't need it
  64352. + ;;
  64353. +*-ncr-sysv4.3*)
  64354. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  64355. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  64356. + ;;
  64357. +*)
  64358. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  64359. + ;;
  64360. +esac
  64361. +AC_SUBST([LIBM])
  64362. +])# LT_LIB_M
  64363. +
  64364. +# Old name:
  64365. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  64366. +dnl aclocal-1.4 backwards compatibility:
  64367. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  64368. +
  64369. +
  64370. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  64371. +# -------------------------------
  64372. +m4_defun([_LT_COMPILER_NO_RTTI],
  64373. +[m4_require([_LT_TAG_COMPILER])dnl
  64374. +
  64375. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  64376. +
  64377. +if test "$GCC" = yes; then
  64378. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  64379. +
  64380. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  64381. + lt_cv_prog_compiler_rtti_exceptions,
  64382. + [-fno-rtti -fno-exceptions], [],
  64383. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  64384. +fi
  64385. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  64386. + [Compiler flag to turn off builtin functions])
  64387. +])# _LT_COMPILER_NO_RTTI
  64388. +
  64389. +
  64390. +# _LT_CMD_GLOBAL_SYMBOLS
  64391. +# ----------------------
  64392. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  64393. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  64394. +AC_REQUIRE([AC_PROG_CC])dnl
  64395. +AC_REQUIRE([LT_PATH_NM])dnl
  64396. +AC_REQUIRE([LT_PATH_LD])dnl
  64397. +m4_require([_LT_DECL_SED])dnl
  64398. +m4_require([_LT_DECL_EGREP])dnl
  64399. +m4_require([_LT_TAG_COMPILER])dnl
  64400. +
  64401. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  64402. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  64403. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  64404. +[
  64405. +# These are sane defaults that work on at least a few old systems.
  64406. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  64407. +
  64408. +# Character class describing NM global symbol codes.
  64409. +symcode='[[BCDEGRST]]'
  64410. +
  64411. +# Regexp to match symbols that can be accessed directly from C.
  64412. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  64413. +
  64414. +# Define system-specific variables.
  64415. +case $host_os in
  64416. +aix*)
  64417. + symcode='[[BCDT]]'
  64418. + ;;
  64419. +cygwin* | mingw* | pw32* | cegcc*)
  64420. + symcode='[[ABCDGISTW]]'
  64421. + ;;
  64422. +hpux*)
  64423. + if test "$host_cpu" = ia64; then
  64424. + symcode='[[ABCDEGRST]]'
  64425. + fi
  64426. + ;;
  64427. +irix* | nonstopux*)
  64428. + symcode='[[BCDEGRST]]'
  64429. + ;;
  64430. +osf*)
  64431. + symcode='[[BCDEGQRST]]'
  64432. + ;;
  64433. +solaris*)
  64434. + symcode='[[BDRT]]'
  64435. + ;;
  64436. +sco3.2v5*)
  64437. + symcode='[[DT]]'
  64438. + ;;
  64439. +sysv4.2uw2*)
  64440. + symcode='[[DT]]'
  64441. + ;;
  64442. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  64443. + symcode='[[ABDT]]'
  64444. + ;;
  64445. +sysv4)
  64446. + symcode='[[DFNSTU]]'
  64447. + ;;
  64448. +esac
  64449. +
  64450. +# If we're using GNU nm, then use its standard symbol codes.
  64451. +case `$NM -V 2>&1` in
  64452. +*GNU* | *'with BFD'*)
  64453. + symcode='[[ABCDGIRSTW]]' ;;
  64454. +esac
  64455. +
  64456. +# Transform an extracted symbol line into a proper C declaration.
  64457. +# Some systems (esp. on ia64) link data and code symbols differently,
  64458. +# so use this general approach.
  64459. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  64460. +
  64461. +# Transform an extracted symbol line into symbol name and symbol address
  64462. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  64463. +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'"
  64464. +
  64465. +# Handle CRLF in mingw tool chain
  64466. +opt_cr=
  64467. +case $build_os in
  64468. +mingw*)
  64469. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  64470. + ;;
  64471. +esac
  64472. +
  64473. +# Try without a prefix underscore, then with it.
  64474. +for ac_symprfx in "" "_"; do
  64475. +
  64476. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  64477. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  64478. +
  64479. + # Write the raw and C identifiers.
  64480. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  64481. + # Fake it for dumpbin and say T for any non-static function
  64482. + # and D for any global variable.
  64483. + # Also find C++ and __fastcall symbols from MSVC++,
  64484. + # which start with @ or ?.
  64485. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  64486. +" {last_section=section; section=\$ 3};"\
  64487. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  64488. +" \$ 0!~/External *\|/{next};"\
  64489. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  64490. +" {if(hide[section]) next};"\
  64491. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  64492. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  64493. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  64494. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  64495. +" ' prfx=^$ac_symprfx]"
  64496. + else
  64497. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  64498. + fi
  64499. +
  64500. + # Check to see that the pipe works correctly.
  64501. + pipe_works=no
  64502. +
  64503. + rm -f conftest*
  64504. + cat > conftest.$ac_ext <<_LT_EOF
  64505. +#ifdef __cplusplus
  64506. +extern "C" {
  64507. +#endif
  64508. +char nm_test_var;
  64509. +void nm_test_func(void);
  64510. +void nm_test_func(void){}
  64511. +#ifdef __cplusplus
  64512. +}
  64513. +#endif
  64514. +int main(){nm_test_var='a';nm_test_func();return(0);}
  64515. +_LT_EOF
  64516. +
  64517. + if AC_TRY_EVAL(ac_compile); then
  64518. + # Now try to grab the symbols.
  64519. + nlist=conftest.nm
  64520. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  64521. + # Try sorting and uniquifying the output.
  64522. + if sort "$nlist" | uniq > "$nlist"T; then
  64523. + mv -f "$nlist"T "$nlist"
  64524. + else
  64525. + rm -f "$nlist"T
  64526. + fi
  64527. +
  64528. + # Make sure that we snagged all the symbols we need.
  64529. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  64530. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  64531. + cat <<_LT_EOF > conftest.$ac_ext
  64532. +#ifdef __cplusplus
  64533. +extern "C" {
  64534. +#endif
  64535. +
  64536. +_LT_EOF
  64537. + # Now generate the symbol file.
  64538. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  64539. +
  64540. + cat <<_LT_EOF >> conftest.$ac_ext
  64541. +
  64542. +/* The mapping between symbol names and symbols. */
  64543. +const struct {
  64544. + const char *name;
  64545. + void *address;
  64546. +}
  64547. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  64548. +{
  64549. + { "@PROGRAM@", (void *) 0 },
  64550. +_LT_EOF
  64551. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  64552. + cat <<\_LT_EOF >> conftest.$ac_ext
  64553. + {0, (void *) 0}
  64554. +};
  64555. +
  64556. +/* This works around a problem in FreeBSD linker */
  64557. +#ifdef FREEBSD_WORKAROUND
  64558. +static const void *lt_preloaded_setup() {
  64559. + return lt__PROGRAM__LTX_preloaded_symbols;
  64560. +}
  64561. +#endif
  64562. +
  64563. +#ifdef __cplusplus
  64564. +}
  64565. +#endif
  64566. +_LT_EOF
  64567. + # Now try linking the two files.
  64568. + mv conftest.$ac_objext conftstm.$ac_objext
  64569. + lt_save_LIBS="$LIBS"
  64570. + lt_save_CFLAGS="$CFLAGS"
  64571. + LIBS="conftstm.$ac_objext"
  64572. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  64573. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  64574. + pipe_works=yes
  64575. + fi
  64576. + LIBS="$lt_save_LIBS"
  64577. + CFLAGS="$lt_save_CFLAGS"
  64578. + else
  64579. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  64580. + fi
  64581. + else
  64582. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  64583. + fi
  64584. + else
  64585. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  64586. + fi
  64587. + else
  64588. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  64589. + cat conftest.$ac_ext >&5
  64590. + fi
  64591. + rm -rf conftest* conftst*
  64592. +
  64593. + # Do not use the global_symbol_pipe unless it works.
  64594. + if test "$pipe_works" = yes; then
  64595. + break
  64596. + else
  64597. + lt_cv_sys_global_symbol_pipe=
  64598. + fi
  64599. +done
  64600. +])
  64601. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  64602. + lt_cv_sys_global_symbol_to_cdecl=
  64603. +fi
  64604. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  64605. + AC_MSG_RESULT(failed)
  64606. +else
  64607. + AC_MSG_RESULT(ok)
  64608. +fi
  64609. +
  64610. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  64611. + [Take the output of nm and produce a listing of raw symbols and C names])
  64612. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  64613. + [Transform the output of nm in a proper C declaration])
  64614. +_LT_DECL([global_symbol_to_c_name_address],
  64615. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  64616. + [Transform the output of nm in a C name address pair])
  64617. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  64618. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  64619. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  64620. +]) # _LT_CMD_GLOBAL_SYMBOLS
  64621. +
  64622. +
  64623. +# _LT_COMPILER_PIC([TAGNAME])
  64624. +# ---------------------------
  64625. +m4_defun([_LT_COMPILER_PIC],
  64626. +[m4_require([_LT_TAG_COMPILER])dnl
  64627. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  64628. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  64629. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  64630. +
  64631. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  64632. +m4_if([$1], [CXX], [
  64633. + # C++ specific cases for pic, static, wl, etc.
  64634. + if test "$GXX" = yes; then
  64635. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64636. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  64637. +
  64638. + case $host_os in
  64639. + aix*)
  64640. + # All AIX code is PIC.
  64641. + if test "$host_cpu" = ia64; then
  64642. + # AIX 5 now supports IA64 processor
  64643. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  64644. + fi
  64645. + ;;
  64646. +
  64647. + amigaos*)
  64648. + case $host_cpu in
  64649. + powerpc)
  64650. + # see comment about AmigaOS4 .so support
  64651. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  64652. + ;;
  64653. + m68k)
  64654. + # FIXME: we need at least 68020 code to build shared libraries, but
  64655. + # adding the `-m68020' flag to GCC prevents building anything better,
  64656. + # like `-m68040'.
  64657. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  64658. + ;;
  64659. + esac
  64660. + ;;
  64661. +
  64662. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  64663. + # PIC is the default for these OSes.
  64664. + ;;
  64665. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  64666. + # This hack is so that the source file can tell whether it is being
  64667. + # built for inclusion in a dll (and should export symbols for example).
  64668. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  64669. + # (--disable-auto-import) libraries
  64670. + m4_if([$1], [GCJ], [],
  64671. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  64672. + ;;
  64673. + darwin* | rhapsody*)
  64674. + # PIC is the default on this platform
  64675. + # Common symbols not allowed in MH_DYLIB files
  64676. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  64677. + ;;
  64678. + *djgpp*)
  64679. + # DJGPP does not support shared libraries at all
  64680. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  64681. + ;;
  64682. + interix[[3-9]]*)
  64683. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  64684. + # Instead, we relocate shared libraries at runtime.
  64685. + ;;
  64686. + sysv4*MP*)
  64687. + if test -d /usr/nec; then
  64688. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  64689. + fi
  64690. + ;;
  64691. + hpux*)
  64692. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  64693. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  64694. + # sets the default TLS model and affects inlining.
  64695. + case $host_cpu in
  64696. + hppa*64*)
  64697. + ;;
  64698. + *)
  64699. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  64700. + ;;
  64701. + esac
  64702. + ;;
  64703. + *qnx* | *nto*)
  64704. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  64705. + # it will coredump.
  64706. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  64707. + ;;
  64708. + *)
  64709. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  64710. + ;;
  64711. + esac
  64712. + else
  64713. + case $host_os in
  64714. + aix[[4-9]]*)
  64715. + # All AIX code is PIC.
  64716. + if test "$host_cpu" = ia64; then
  64717. + # AIX 5 now supports IA64 processor
  64718. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  64719. + else
  64720. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  64721. + fi
  64722. + ;;
  64723. + chorus*)
  64724. + case $cc_basename in
  64725. + cxch68*)
  64726. + # Green Hills C++ Compiler
  64727. + # _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"
  64728. + ;;
  64729. + esac
  64730. + ;;
  64731. + dgux*)
  64732. + case $cc_basename in
  64733. + ec++*)
  64734. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  64735. + ;;
  64736. + ghcx*)
  64737. + # Green Hills C++ Compiler
  64738. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  64739. + ;;
  64740. + *)
  64741. + ;;
  64742. + esac
  64743. + ;;
  64744. + freebsd* | dragonfly*)
  64745. + # FreeBSD uses GNU C++
  64746. + ;;
  64747. + hpux9* | hpux10* | hpux11*)
  64748. + case $cc_basename in
  64749. + CC*)
  64750. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64751. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  64752. + if test "$host_cpu" != ia64; then
  64753. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  64754. + fi
  64755. + ;;
  64756. + aCC*)
  64757. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64758. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  64759. + case $host_cpu in
  64760. + hppa*64*|ia64*)
  64761. + # +Z the default
  64762. + ;;
  64763. + *)
  64764. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  64765. + ;;
  64766. + esac
  64767. + ;;
  64768. + *)
  64769. + ;;
  64770. + esac
  64771. + ;;
  64772. + interix*)
  64773. + # This is c89, which is MS Visual C++ (no shared libs)
  64774. + # Anyone wants to do a port?
  64775. + ;;
  64776. + irix5* | irix6* | nonstopux*)
  64777. + case $cc_basename in
  64778. + CC*)
  64779. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64780. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  64781. + # CC pic flag -KPIC is the default.
  64782. + ;;
  64783. + *)
  64784. + ;;
  64785. + esac
  64786. + ;;
  64787. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  64788. + case $cc_basename in
  64789. + KCC*)
  64790. + # KAI C++ Compiler
  64791. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  64792. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  64793. + ;;
  64794. + ecpc* )
  64795. + # old Intel C++ for x86_64 which still supported -KPIC.
  64796. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64797. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  64798. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  64799. + ;;
  64800. + icpc* )
  64801. + # Intel C++, used to be incompatible with GCC.
  64802. + # ICC 10 doesn't accept -KPIC any more.
  64803. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64804. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  64805. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  64806. + ;;
  64807. + pgCC* | pgcpp*)
  64808. + # Portland Group C++ compiler
  64809. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64810. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  64811. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  64812. + ;;
  64813. + cxx*)
  64814. + # Compaq C++
  64815. + # Make sure the PIC flag is empty. It appears that all Alpha
  64816. + # Linux and Compaq Tru64 Unix objects are PIC.
  64817. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  64818. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  64819. + ;;
  64820. + xlc* | xlC*)
  64821. + # IBM XL 8.0 on PPC
  64822. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64823. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  64824. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  64825. + ;;
  64826. + *)
  64827. + case `$CC -V 2>&1 | sed 5q` in
  64828. + *Sun\ C*)
  64829. + # Sun C++ 5.9
  64830. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  64831. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  64832. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  64833. + ;;
  64834. + esac
  64835. + ;;
  64836. + esac
  64837. + ;;
  64838. + lynxos*)
  64839. + ;;
  64840. + m88k*)
  64841. + ;;
  64842. + mvs*)
  64843. + case $cc_basename in
  64844. + cxx*)
  64845. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  64846. + ;;
  64847. + *)
  64848. + ;;
  64849. + esac
  64850. + ;;
  64851. + netbsd* | netbsdelf*-gnu)
  64852. + ;;
  64853. + *qnx* | *nto*)
  64854. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  64855. + # it will coredump.
  64856. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  64857. + ;;
  64858. + osf3* | osf4* | osf5*)
  64859. + case $cc_basename in
  64860. + KCC*)
  64861. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  64862. + ;;
  64863. + RCC*)
  64864. + # Rational C++ 2.4.1
  64865. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  64866. + ;;
  64867. + cxx*)
  64868. + # Digital/Compaq C++
  64869. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64870. + # Make sure the PIC flag is empty. It appears that all Alpha
  64871. + # Linux and Compaq Tru64 Unix objects are PIC.
  64872. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  64873. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  64874. + ;;
  64875. + *)
  64876. + ;;
  64877. + esac
  64878. + ;;
  64879. + psos*)
  64880. + ;;
  64881. + solaris*)
  64882. + case $cc_basename in
  64883. + CC*)
  64884. + # Sun C++ 4.2, 5.x and Centerline C++
  64885. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  64886. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  64887. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  64888. + ;;
  64889. + gcx*)
  64890. + # Green Hills C++ Compiler
  64891. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  64892. + ;;
  64893. + *)
  64894. + ;;
  64895. + esac
  64896. + ;;
  64897. + sunos4*)
  64898. + case $cc_basename in
  64899. + CC*)
  64900. + # Sun C++ 4.x
  64901. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  64902. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  64903. + ;;
  64904. + lcc*)
  64905. + # Lucid
  64906. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  64907. + ;;
  64908. + *)
  64909. + ;;
  64910. + esac
  64911. + ;;
  64912. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  64913. + case $cc_basename in
  64914. + CC*)
  64915. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64916. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  64917. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  64918. + ;;
  64919. + esac
  64920. + ;;
  64921. + tandem*)
  64922. + case $cc_basename in
  64923. + NCC*)
  64924. + # NonStop-UX NCC 3.20
  64925. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  64926. + ;;
  64927. + *)
  64928. + ;;
  64929. + esac
  64930. + ;;
  64931. + vxworks*)
  64932. + ;;
  64933. + *)
  64934. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  64935. + ;;
  64936. + esac
  64937. + fi
  64938. +],
  64939. +[
  64940. + if test "$GCC" = yes; then
  64941. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  64942. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  64943. +
  64944. + case $host_os in
  64945. + aix*)
  64946. + # All AIX code is PIC.
  64947. + if test "$host_cpu" = ia64; then
  64948. + # AIX 5 now supports IA64 processor
  64949. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  64950. + fi
  64951. + ;;
  64952. +
  64953. + amigaos*)
  64954. + case $host_cpu in
  64955. + powerpc)
  64956. + # see comment about AmigaOS4 .so support
  64957. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  64958. + ;;
  64959. + m68k)
  64960. + # FIXME: we need at least 68020 code to build shared libraries, but
  64961. + # adding the `-m68020' flag to GCC prevents building anything better,
  64962. + # like `-m68040'.
  64963. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  64964. + ;;
  64965. + esac
  64966. + ;;
  64967. +
  64968. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  64969. + # PIC is the default for these OSes.
  64970. + ;;
  64971. +
  64972. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  64973. + # This hack is so that the source file can tell whether it is being
  64974. + # built for inclusion in a dll (and should export symbols for example).
  64975. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  64976. + # (--disable-auto-import) libraries
  64977. + m4_if([$1], [GCJ], [],
  64978. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  64979. + ;;
  64980. +
  64981. + darwin* | rhapsody*)
  64982. + # PIC is the default on this platform
  64983. + # Common symbols not allowed in MH_DYLIB files
  64984. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  64985. + ;;
  64986. +
  64987. + hpux*)
  64988. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  64989. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  64990. + # sets the default TLS model and affects inlining.
  64991. + case $host_cpu in
  64992. + hppa*64*)
  64993. + # +Z the default
  64994. + ;;
  64995. + *)
  64996. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  64997. + ;;
  64998. + esac
  64999. + ;;
  65000. +
  65001. + interix[[3-9]]*)
  65002. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  65003. + # Instead, we relocate shared libraries at runtime.
  65004. + ;;
  65005. +
  65006. + msdosdjgpp*)
  65007. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  65008. + # on systems that don't support them.
  65009. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  65010. + enable_shared=no
  65011. + ;;
  65012. +
  65013. + *nto* | *qnx*)
  65014. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  65015. + # it will coredump.
  65016. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  65017. + ;;
  65018. +
  65019. + sysv4*MP*)
  65020. + if test -d /usr/nec; then
  65021. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  65022. + fi
  65023. + ;;
  65024. +
  65025. + *)
  65026. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  65027. + ;;
  65028. + esac
  65029. + else
  65030. + # PORTME Check for flag to pass linker flags through the system compiler.
  65031. + case $host_os in
  65032. + aix*)
  65033. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65034. + if test "$host_cpu" = ia64; then
  65035. + # AIX 5 now supports IA64 processor
  65036. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65037. + else
  65038. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  65039. + fi
  65040. + ;;
  65041. +
  65042. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  65043. + # This hack is so that the source file can tell whether it is being
  65044. + # built for inclusion in a dll (and should export symbols for example).
  65045. + m4_if([$1], [GCJ], [],
  65046. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  65047. + ;;
  65048. +
  65049. + hpux9* | hpux10* | hpux11*)
  65050. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65051. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  65052. + # not for PA HP-UX.
  65053. + case $host_cpu in
  65054. + hppa*64*|ia64*)
  65055. + # +Z the default
  65056. + ;;
  65057. + *)
  65058. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  65059. + ;;
  65060. + esac
  65061. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  65062. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  65063. + ;;
  65064. +
  65065. + irix5* | irix6* | nonstopux*)
  65066. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65067. + # PIC (with -KPIC) is the default.
  65068. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  65069. + ;;
  65070. +
  65071. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  65072. + case $cc_basename in
  65073. + # old Intel for x86_64 which still supported -KPIC.
  65074. + ecc*)
  65075. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65076. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  65077. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  65078. + ;;
  65079. + # icc used to be incompatible with GCC.
  65080. + # ICC 10 doesn't accept -KPIC any more.
  65081. + icc* | ifort*)
  65082. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65083. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  65084. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  65085. + ;;
  65086. + # Lahey Fortran 8.1.
  65087. + lf95*)
  65088. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65089. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  65090. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  65091. + ;;
  65092. + pgcc* | pgf77* | pgf90* | pgf95*)
  65093. + # Portland Group compilers (*not* the Pentium gcc compiler,
  65094. + # which looks to be a dead project)
  65095. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65096. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  65097. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65098. + ;;
  65099. + ccc*)
  65100. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65101. + # All Alpha code is PIC.
  65102. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  65103. + ;;
  65104. + xl*)
  65105. + # IBM XL C 8.0/Fortran 10.1 on PPC
  65106. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65107. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  65108. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  65109. + ;;
  65110. + *)
  65111. + case `$CC -V 2>&1 | sed 5q` in
  65112. + *Sun\ C*)
  65113. + # Sun C 5.9
  65114. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  65115. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65116. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65117. + ;;
  65118. + *Sun\ F*)
  65119. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  65120. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  65121. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65122. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  65123. + ;;
  65124. + esac
  65125. + ;;
  65126. + esac
  65127. + ;;
  65128. +
  65129. + newsos6)
  65130. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  65131. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65132. + ;;
  65133. +
  65134. + *nto* | *qnx*)
  65135. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  65136. + # it will coredump.
  65137. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  65138. + ;;
  65139. +
  65140. + osf3* | osf4* | osf5*)
  65141. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65142. + # All OSF/1 code is PIC.
  65143. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  65144. + ;;
  65145. +
  65146. + rdos*)
  65147. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  65148. + ;;
  65149. +
  65150. + solaris*)
  65151. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  65152. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65153. + case $cc_basename in
  65154. + f77* | f90* | f95*)
  65155. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  65156. + *)
  65157. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  65158. + esac
  65159. + ;;
  65160. +
  65161. + sunos4*)
  65162. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  65163. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  65164. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65165. + ;;
  65166. +
  65167. + sysv4 | sysv4.2uw2* | sysv4.3*)
  65168. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65169. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  65170. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65171. + ;;
  65172. +
  65173. + sysv4*MP*)
  65174. + if test -d /usr/nec ;then
  65175. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  65176. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65177. + fi
  65178. + ;;
  65179. +
  65180. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  65181. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65182. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  65183. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65184. + ;;
  65185. +
  65186. + unicos*)
  65187. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  65188. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  65189. + ;;
  65190. +
  65191. + uts4*)
  65192. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  65193. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  65194. + ;;
  65195. +
  65196. + *)
  65197. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  65198. + ;;
  65199. + esac
  65200. + fi
  65201. +])
  65202. +case $host_os in
  65203. + # For platforms which do not support PIC, -DPIC is meaningless:
  65204. + *djgpp*)
  65205. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  65206. + ;;
  65207. + *)
  65208. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  65209. + ;;
  65210. +esac
  65211. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  65212. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  65213. + [How to pass a linker flag through the compiler])
  65214. +
  65215. +#
  65216. +# Check to make sure the PIC flag actually works.
  65217. +#
  65218. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  65219. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  65220. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  65221. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  65222. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  65223. + "" | " "*) ;;
  65224. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  65225. + esac],
  65226. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  65227. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  65228. +fi
  65229. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  65230. + [Additional compiler flags for building library objects])
  65231. +
  65232. +#
  65233. +# Check to make sure the static flag actually works.
  65234. +#
  65235. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  65236. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  65237. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  65238. + $lt_tmp_static_flag,
  65239. + [],
  65240. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  65241. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  65242. + [Compiler flag to prevent dynamic linking])
  65243. +])# _LT_COMPILER_PIC
  65244. +
  65245. +
  65246. +# _LT_LINKER_SHLIBS([TAGNAME])
  65247. +# ----------------------------
  65248. +# See if the linker supports building shared libraries.
  65249. +m4_defun([_LT_LINKER_SHLIBS],
  65250. +[AC_REQUIRE([LT_PATH_LD])dnl
  65251. +AC_REQUIRE([LT_PATH_NM])dnl
  65252. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  65253. +m4_require([_LT_DECL_EGREP])dnl
  65254. +m4_require([_LT_DECL_SED])dnl
  65255. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  65256. +m4_require([_LT_TAG_COMPILER])dnl
  65257. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  65258. +m4_if([$1], [CXX], [
  65259. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  65260. + case $host_os in
  65261. + aix[[4-9]]*)
  65262. + # If we're using GNU nm, then we don't want the "-C" option.
  65263. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  65264. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  65265. + _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'
  65266. + else
  65267. + _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'
  65268. + fi
  65269. + ;;
  65270. + pw32*)
  65271. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  65272. + ;;
  65273. + cygwin* | mingw* | cegcc*)
  65274. + _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'
  65275. + ;;
  65276. + linux* | k*bsd*-gnu)
  65277. + _LT_TAGVAR(link_all_deplibs, $1)=no
  65278. + ;;
  65279. + *)
  65280. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  65281. + ;;
  65282. + esac
  65283. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  65284. +], [
  65285. + runpath_var=
  65286. + _LT_TAGVAR(allow_undefined_flag, $1)=
  65287. + _LT_TAGVAR(always_export_symbols, $1)=no
  65288. + _LT_TAGVAR(archive_cmds, $1)=
  65289. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  65290. + _LT_TAGVAR(compiler_needs_object, $1)=no
  65291. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  65292. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  65293. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  65294. + _LT_TAGVAR(hardcode_automatic, $1)=no
  65295. + _LT_TAGVAR(hardcode_direct, $1)=no
  65296. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  65297. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  65298. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  65299. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  65300. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  65301. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  65302. + _LT_TAGVAR(inherit_rpath, $1)=no
  65303. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  65304. + _LT_TAGVAR(module_cmds, $1)=
  65305. + _LT_TAGVAR(module_expsym_cmds, $1)=
  65306. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  65307. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  65308. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  65309. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  65310. + # include_expsyms should be a list of space-separated symbols to be *always*
  65311. + # included in the symbol list
  65312. + _LT_TAGVAR(include_expsyms, $1)=
  65313. + # exclude_expsyms can be an extended regexp of symbols to exclude
  65314. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  65315. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  65316. + # as well as any symbol that contains `d'.
  65317. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  65318. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  65319. + # platforms (ab)use it in PIC code, but their linkers get confused if
  65320. + # the symbol is explicitly referenced. Since portable code cannot
  65321. + # rely on this symbol name, it's probably fine to never include it in
  65322. + # preloaded symbol tables.
  65323. + # Exclude shared library initialization/finalization symbols.
  65324. +dnl Note also adjust exclude_expsyms for C++ above.
  65325. + extract_expsyms_cmds=
  65326. +
  65327. + case $host_os in
  65328. + cygwin* | mingw* | pw32* | cegcc*)
  65329. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  65330. + # When not using gcc, we currently assume that we are using
  65331. + # Microsoft Visual C++.
  65332. + if test "$GCC" != yes; then
  65333. + with_gnu_ld=no
  65334. + fi
  65335. + ;;
  65336. + interix*)
  65337. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  65338. + with_gnu_ld=yes
  65339. + ;;
  65340. + openbsd*)
  65341. + with_gnu_ld=no
  65342. + ;;
  65343. + linux* | k*bsd*-gnu)
  65344. + _LT_TAGVAR(link_all_deplibs, $1)=no
  65345. + ;;
  65346. + esac
  65347. +
  65348. + _LT_TAGVAR(ld_shlibs, $1)=yes
  65349. + if test "$with_gnu_ld" = yes; then
  65350. + # If archive_cmds runs LD, not CC, wlarc should be empty
  65351. + wlarc='${wl}'
  65352. +
  65353. + # Set some defaults for GNU ld with shared library support. These
  65354. + # are reset later if shared libraries are not supported. Putting them
  65355. + # here allows them to be overridden if necessary.
  65356. + runpath_var=LD_RUN_PATH
  65357. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  65358. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  65359. + # ancient GNU ld didn't support --whole-archive et. al.
  65360. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  65361. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  65362. + else
  65363. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  65364. + fi
  65365. + supports_anon_versioning=no
  65366. + case `$LD -v 2>&1` in
  65367. + *GNU\ gold*) supports_anon_versioning=yes ;;
  65368. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  65369. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  65370. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  65371. + *\ 2.11.*) ;; # other 2.11 versions
  65372. + *) supports_anon_versioning=yes ;;
  65373. + esac
  65374. +
  65375. + # See if GNU ld supports shared libraries.
  65376. + case $host_os in
  65377. + aix[[3-9]]*)
  65378. + # On AIX/PPC, the GNU linker is very broken
  65379. + if test "$host_cpu" != ia64; then
  65380. + _LT_TAGVAR(ld_shlibs, $1)=no
  65381. + cat <<_LT_EOF 1>&2
  65382. +
  65383. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  65384. +*** to be unable to reliably create shared libraries on AIX.
  65385. +*** Therefore, libtool is disabling shared libraries support. If you
  65386. +*** really care for shared libraries, you may want to modify your PATH
  65387. +*** so that a non-GNU linker is found, and then restart.
  65388. +
  65389. +_LT_EOF
  65390. + fi
  65391. + ;;
  65392. +
  65393. + amigaos*)
  65394. + case $host_cpu in
  65395. + powerpc)
  65396. + # see comment about AmigaOS4 .so support
  65397. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65398. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  65399. + ;;
  65400. + m68k)
  65401. + _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)'
  65402. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  65403. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65404. + ;;
  65405. + esac
  65406. + ;;
  65407. +
  65408. + beos*)
  65409. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  65410. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  65411. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  65412. + # support --undefined. This deserves some investigation. FIXME
  65413. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65414. + else
  65415. + _LT_TAGVAR(ld_shlibs, $1)=no
  65416. + fi
  65417. + ;;
  65418. +
  65419. + cygwin* | mingw* | pw32* | cegcc*)
  65420. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  65421. + # as there is no search path for DLLs.
  65422. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  65423. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  65424. + _LT_TAGVAR(always_export_symbols, $1)=no
  65425. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  65426. + _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'
  65427. +
  65428. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  65429. + _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'
  65430. + # If the export-symbols file already is a .def file (1st line
  65431. + # is EXPORTS), use it as is; otherwise, prepend...
  65432. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  65433. + cp $export_symbols $output_objdir/$soname.def;
  65434. + else
  65435. + echo EXPORTS > $output_objdir/$soname.def;
  65436. + cat $export_symbols >> $output_objdir/$soname.def;
  65437. + fi~
  65438. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  65439. + else
  65440. + _LT_TAGVAR(ld_shlibs, $1)=no
  65441. + fi
  65442. + ;;
  65443. +
  65444. + interix[[3-9]]*)
  65445. + _LT_TAGVAR(hardcode_direct, $1)=no
  65446. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65447. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  65448. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  65449. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  65450. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  65451. + # default) and relocated if they conflict, which is a slow very memory
  65452. + # consuming and fragmenting process. To avoid this, we pick a random,
  65453. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  65454. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  65455. + _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'
  65456. + _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'
  65457. + ;;
  65458. +
  65459. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  65460. + tmp_diet=no
  65461. + if test "$host_os" = linux-dietlibc; then
  65462. + case $cc_basename in
  65463. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  65464. + esac
  65465. + fi
  65466. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  65467. + && test "$tmp_diet" = no
  65468. + then
  65469. + tmp_addflag=
  65470. + tmp_sharedflag='-shared'
  65471. + case $cc_basename,$host_cpu in
  65472. + pgcc*) # Portland Group C compiler
  65473. + _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'
  65474. + tmp_addflag=' $pic_flag'
  65475. + ;;
  65476. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  65477. + _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'
  65478. + tmp_addflag=' $pic_flag -Mnomain' ;;
  65479. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  65480. + tmp_addflag=' -i_dynamic' ;;
  65481. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  65482. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  65483. + ifc* | ifort*) # Intel Fortran compiler
  65484. + tmp_addflag=' -nofor_main' ;;
  65485. + lf95*) # Lahey Fortran 8.1
  65486. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  65487. + tmp_sharedflag='--shared' ;;
  65488. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  65489. + tmp_sharedflag='-qmkshrobj'
  65490. + tmp_addflag= ;;
  65491. + esac
  65492. + case `$CC -V 2>&1 | sed 5q` in
  65493. + *Sun\ C*) # Sun C 5.9
  65494. + _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'
  65495. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  65496. + tmp_sharedflag='-G' ;;
  65497. + *Sun\ F*) # Sun Fortran 8.3
  65498. + tmp_sharedflag='-G' ;;
  65499. + esac
  65500. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65501. +
  65502. + if test "x$supports_anon_versioning" = xyes; then
  65503. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  65504. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  65505. + echo "local: *; };" >> $output_objdir/$libname.ver~
  65506. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  65507. + fi
  65508. +
  65509. + case $cc_basename in
  65510. + xlf*)
  65511. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  65512. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  65513. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  65514. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  65515. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  65516. + if test "x$supports_anon_versioning" = xyes; then
  65517. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  65518. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  65519. + echo "local: *; };" >> $output_objdir/$libname.ver~
  65520. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  65521. + fi
  65522. + ;;
  65523. + esac
  65524. + else
  65525. + _LT_TAGVAR(ld_shlibs, $1)=no
  65526. + fi
  65527. + ;;
  65528. +
  65529. + netbsd* | netbsdelf*-gnu)
  65530. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  65531. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  65532. + wlarc=
  65533. + else
  65534. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65535. + _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'
  65536. + fi
  65537. + ;;
  65538. +
  65539. + solaris*)
  65540. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  65541. + _LT_TAGVAR(ld_shlibs, $1)=no
  65542. + cat <<_LT_EOF 1>&2
  65543. +
  65544. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  65545. +*** create shared libraries on Solaris systems. Therefore, libtool
  65546. +*** is disabling shared libraries support. We urge you to upgrade GNU
  65547. +*** binutils to release 2.9.1 or newer. Another option is to modify
  65548. +*** your PATH or compiler configuration so that the native linker is
  65549. +*** used, and then restart.
  65550. +
  65551. +_LT_EOF
  65552. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  65553. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65554. + _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'
  65555. + else
  65556. + _LT_TAGVAR(ld_shlibs, $1)=no
  65557. + fi
  65558. + ;;
  65559. +
  65560. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  65561. + case `$LD -v 2>&1` in
  65562. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  65563. + _LT_TAGVAR(ld_shlibs, $1)=no
  65564. + cat <<_LT_EOF 1>&2
  65565. +
  65566. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  65567. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  65568. +*** is disabling shared libraries support. We urge you to upgrade GNU
  65569. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  65570. +*** your PATH or compiler configuration so that the native linker is
  65571. +*** used, and then restart.
  65572. +
  65573. +_LT_EOF
  65574. + ;;
  65575. + *)
  65576. + # For security reasons, it is highly recommended that you always
  65577. + # use absolute paths for naming shared libraries, and exclude the
  65578. + # DT_RUNPATH tag from executables and libraries. But doing so
  65579. + # requires that you compile everything twice, which is a pain.
  65580. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  65581. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  65582. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65583. + _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'
  65584. + else
  65585. + _LT_TAGVAR(ld_shlibs, $1)=no
  65586. + fi
  65587. + ;;
  65588. + esac
  65589. + ;;
  65590. +
  65591. + sunos4*)
  65592. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  65593. + wlarc=
  65594. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65595. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65596. + ;;
  65597. +
  65598. + *)
  65599. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  65600. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65601. + _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'
  65602. + else
  65603. + _LT_TAGVAR(ld_shlibs, $1)=no
  65604. + fi
  65605. + ;;
  65606. + esac
  65607. +
  65608. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  65609. + runpath_var=
  65610. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  65611. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  65612. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  65613. + fi
  65614. + else
  65615. + # PORTME fill in a description of your system's linker (not GNU ld)
  65616. + case $host_os in
  65617. + aix3*)
  65618. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  65619. + _LT_TAGVAR(always_export_symbols, $1)=yes
  65620. + _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'
  65621. + # Note: this linker hardcodes the directories in LIBPATH if there
  65622. + # are no directories specified by -L.
  65623. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65624. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  65625. + # Neither direct hardcoding nor static linking is supported with a
  65626. + # broken collect2.
  65627. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  65628. + fi
  65629. + ;;
  65630. +
  65631. + aix[[4-9]]*)
  65632. + if test "$host_cpu" = ia64; then
  65633. + # On IA64, the linker does run time linking by default, so we don't
  65634. + # have to do anything special.
  65635. + aix_use_runtimelinking=no
  65636. + exp_sym_flag='-Bexport'
  65637. + no_entry_flag=""
  65638. + else
  65639. + # If we're using GNU nm, then we don't want the "-C" option.
  65640. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  65641. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  65642. + _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'
  65643. + else
  65644. + _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'
  65645. + fi
  65646. + aix_use_runtimelinking=no
  65647. +
  65648. + # Test if we are trying to use run time linking or normal
  65649. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  65650. + # need to do runtime linking.
  65651. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  65652. + for ld_flag in $LDFLAGS; do
  65653. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  65654. + aix_use_runtimelinking=yes
  65655. + break
  65656. + fi
  65657. + done
  65658. + ;;
  65659. + esac
  65660. +
  65661. + exp_sym_flag='-bexport'
  65662. + no_entry_flag='-bnoentry'
  65663. + fi
  65664. +
  65665. + # When large executables or shared objects are built, AIX ld can
  65666. + # have problems creating the table of contents. If linking a library
  65667. + # or program results in "error TOC overflow" add -mminimal-toc to
  65668. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  65669. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  65670. +
  65671. + _LT_TAGVAR(archive_cmds, $1)=''
  65672. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65673. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  65674. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  65675. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  65676. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  65677. +
  65678. + if test "$GCC" = yes; then
  65679. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  65680. + # We only want to do this on AIX 4.2 and lower, the check
  65681. + # below for broken collect2 doesn't work under 4.3+
  65682. + collect2name=`${CC} -print-prog-name=collect2`
  65683. + if test -f "$collect2name" &&
  65684. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  65685. + then
  65686. + # We have reworked collect2
  65687. + :
  65688. + else
  65689. + # We have old collect2
  65690. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  65691. + # It fails to find uninstalled libraries when the uninstalled
  65692. + # path is not listed in the libpath. Setting hardcode_minus_L
  65693. + # to unsupported forces relinking
  65694. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65695. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  65696. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  65697. + fi
  65698. + ;;
  65699. + esac
  65700. + shared_flag='-shared'
  65701. + if test "$aix_use_runtimelinking" = yes; then
  65702. + shared_flag="$shared_flag "'${wl}-G'
  65703. + fi
  65704. + _LT_TAGVAR(link_all_deplibs, $1)=no
  65705. + else
  65706. + # not using gcc
  65707. + if test "$host_cpu" = ia64; then
  65708. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  65709. + # chokes on -Wl,-G. The following line is correct:
  65710. + shared_flag='-G'
  65711. + else
  65712. + if test "$aix_use_runtimelinking" = yes; then
  65713. + shared_flag='${wl}-G'
  65714. + else
  65715. + shared_flag='${wl}-bM:SRE'
  65716. + fi
  65717. + fi
  65718. + fi
  65719. +
  65720. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  65721. + # It seems that -bexpall does not export symbols beginning with
  65722. + # underscore (_), so it is better to generate a list of symbols to export.
  65723. + _LT_TAGVAR(always_export_symbols, $1)=yes
  65724. + if test "$aix_use_runtimelinking" = yes; then
  65725. + # Warning - without using the other runtime loading flags (-brtl),
  65726. + # -berok will link without error, but may produce a broken library.
  65727. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  65728. + # Determine the default libpath from the value encoded in an
  65729. + # empty executable.
  65730. + _LT_SYS_MODULE_PATH_AIX
  65731. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  65732. + _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"
  65733. + else
  65734. + if test "$host_cpu" = ia64; then
  65735. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  65736. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  65737. + _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"
  65738. + else
  65739. + # Determine the default libpath from the value encoded in an
  65740. + # empty executable.
  65741. + _LT_SYS_MODULE_PATH_AIX
  65742. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  65743. + # Warning - without using the other run time loading flags,
  65744. + # -berok will link without error, but may produce a broken library.
  65745. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  65746. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  65747. + # Exported symbols can be pulled into shared objects from archives
  65748. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  65749. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  65750. + # This is similar to how AIX traditionally builds its shared libraries.
  65751. + _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'
  65752. + fi
  65753. + fi
  65754. + ;;
  65755. +
  65756. + amigaos*)
  65757. + case $host_cpu in
  65758. + powerpc)
  65759. + # see comment about AmigaOS4 .so support
  65760. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65761. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  65762. + ;;
  65763. + m68k)
  65764. + _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)'
  65765. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  65766. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65767. + ;;
  65768. + esac
  65769. + ;;
  65770. +
  65771. + bsdi[[45]]*)
  65772. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  65773. + ;;
  65774. +
  65775. + cygwin* | mingw* | pw32* | cegcc*)
  65776. + # When not using gcc, we currently assume that we are using
  65777. + # Microsoft Visual C++.
  65778. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  65779. + # no search path for DLLs.
  65780. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  65781. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  65782. + # Tell ltmain to make .lib files, not .a files.
  65783. + libext=lib
  65784. + # Tell ltmain to make .dll files, not .so files.
  65785. + shrext_cmds=".dll"
  65786. + # FIXME: Setting linknames here is a bad hack.
  65787. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  65788. + # The linker will automatically build a .lib file if we build a DLL.
  65789. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  65790. + # FIXME: Should let the user specify the lib program.
  65791. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  65792. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  65793. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  65794. + ;;
  65795. +
  65796. + darwin* | rhapsody*)
  65797. + _LT_DARWIN_LINKER_FEATURES($1)
  65798. + ;;
  65799. +
  65800. + dgux*)
  65801. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  65802. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  65803. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65804. + ;;
  65805. +
  65806. + freebsd1*)
  65807. + _LT_TAGVAR(ld_shlibs, $1)=no
  65808. + ;;
  65809. +
  65810. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  65811. + # support. Future versions do this automatically, but an explicit c++rt0.o
  65812. + # does not break anything, and helps significantly (at the cost of a little
  65813. + # extra space).
  65814. + freebsd2.2*)
  65815. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  65816. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  65817. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65818. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65819. + ;;
  65820. +
  65821. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  65822. + freebsd2*)
  65823. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  65824. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65825. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65826. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65827. + ;;
  65828. +
  65829. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  65830. + freebsd* | dragonfly*)
  65831. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  65832. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  65833. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65834. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65835. + ;;
  65836. +
  65837. + hpux9*)
  65838. + if test "$GCC" = yes; then
  65839. + _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'
  65840. + else
  65841. + _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'
  65842. + fi
  65843. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  65844. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65845. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65846. +
  65847. + # hardcode_minus_L: Not really in the search PATH,
  65848. + # but as the default location of the library.
  65849. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65850. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  65851. + ;;
  65852. +
  65853. + hpux10*)
  65854. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  65855. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  65856. + else
  65857. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  65858. + fi
  65859. + if test "$with_gnu_ld" = no; then
  65860. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  65861. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  65862. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65863. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65864. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  65865. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  65866. + # hardcode_minus_L: Not really in the search PATH,
  65867. + # but as the default location of the library.
  65868. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65869. + fi
  65870. + ;;
  65871. +
  65872. + hpux11*)
  65873. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  65874. + case $host_cpu in
  65875. + hppa*64*)
  65876. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  65877. + ;;
  65878. + ia64*)
  65879. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  65880. + ;;
  65881. + *)
  65882. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  65883. + ;;
  65884. + esac
  65885. + else
  65886. + case $host_cpu in
  65887. + hppa*64*)
  65888. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  65889. + ;;
  65890. + ia64*)
  65891. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  65892. + ;;
  65893. + *)
  65894. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  65895. + ;;
  65896. + esac
  65897. + fi
  65898. + if test "$with_gnu_ld" = no; then
  65899. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  65900. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65901. +
  65902. + case $host_cpu in
  65903. + hppa*64*|ia64*)
  65904. + _LT_TAGVAR(hardcode_direct, $1)=no
  65905. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65906. + ;;
  65907. + *)
  65908. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65909. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  65910. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  65911. +
  65912. + # hardcode_minus_L: Not really in the search PATH,
  65913. + # but as the default location of the library.
  65914. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65915. + ;;
  65916. + esac
  65917. + fi
  65918. + ;;
  65919. +
  65920. + irix5* | irix6* | nonstopux*)
  65921. + if test "$GCC" = yes; then
  65922. + _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'
  65923. + # Try to use the -exported_symbol ld option, if it does not
  65924. + # work, assume that -exports_file does not work either and
  65925. + # implicitly export all symbols.
  65926. + save_LDFLAGS="$LDFLAGS"
  65927. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  65928. + AC_LINK_IFELSE(int foo(void) {},
  65929. + _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'
  65930. + )
  65931. + LDFLAGS="$save_LDFLAGS"
  65932. + else
  65933. + _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'
  65934. + _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'
  65935. + fi
  65936. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  65937. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  65938. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65939. + _LT_TAGVAR(inherit_rpath, $1)=yes
  65940. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  65941. + ;;
  65942. +
  65943. + netbsd* | netbsdelf*-gnu)
  65944. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  65945. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  65946. + else
  65947. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  65948. + fi
  65949. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  65950. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65951. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65952. + ;;
  65953. +
  65954. + newsos6)
  65955. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  65956. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65957. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  65958. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65959. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65960. + ;;
  65961. +
  65962. + *nto* | *qnx*)
  65963. + ;;
  65964. +
  65965. + openbsd*)
  65966. + if test -f /usr/libexec/ld.so; then
  65967. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65968. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65969. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  65970. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  65971. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  65972. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  65973. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  65974. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  65975. + else
  65976. + case $host_os in
  65977. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  65978. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  65979. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  65980. + ;;
  65981. + *)
  65982. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  65983. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  65984. + ;;
  65985. + esac
  65986. + fi
  65987. + else
  65988. + _LT_TAGVAR(ld_shlibs, $1)=no
  65989. + fi
  65990. + ;;
  65991. +
  65992. + os2*)
  65993. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  65994. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65995. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  65996. + _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'
  65997. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  65998. + ;;
  65999. +
  66000. + osf3*)
  66001. + if test "$GCC" = yes; then
  66002. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  66003. + _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'
  66004. + else
  66005. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  66006. + _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'
  66007. + fi
  66008. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  66009. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  66010. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  66011. + ;;
  66012. +
  66013. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  66014. + if test "$GCC" = yes; then
  66015. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  66016. + _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'
  66017. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  66018. + else
  66019. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  66020. + _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'
  66021. + _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~
  66022. + $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'
  66023. +
  66024. + # Both c and cxx compiler support -rpath directly
  66025. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  66026. + fi
  66027. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  66028. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  66029. + ;;
  66030. +
  66031. + solaris*)
  66032. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  66033. + if test "$GCC" = yes; then
  66034. + wlarc='${wl}'
  66035. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  66036. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  66037. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  66038. + else
  66039. + case `$CC -V 2>&1` in
  66040. + *"Compilers 5.0"*)
  66041. + wlarc=''
  66042. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  66043. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  66044. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  66045. + ;;
  66046. + *)
  66047. + wlarc='${wl}'
  66048. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  66049. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  66050. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  66051. + ;;
  66052. + esac
  66053. + fi
  66054. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  66055. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66056. + case $host_os in
  66057. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  66058. + *)
  66059. + # The compiler driver will combine and reorder linker options,
  66060. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  66061. + # but is careful enough not to reorder.
  66062. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  66063. + if test "$GCC" = yes; then
  66064. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  66065. + else
  66066. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  66067. + fi
  66068. + ;;
  66069. + esac
  66070. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  66071. + ;;
  66072. +
  66073. + sunos4*)
  66074. + if test "x$host_vendor" = xsequent; then
  66075. + # Use $CC to link under sequent, because it throws in some extra .o
  66076. + # files that make .init and .fini sections work.
  66077. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  66078. + else
  66079. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  66080. + fi
  66081. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  66082. + _LT_TAGVAR(hardcode_direct, $1)=yes
  66083. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  66084. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66085. + ;;
  66086. +
  66087. + sysv4)
  66088. + case $host_vendor in
  66089. + sni)
  66090. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  66091. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  66092. + ;;
  66093. + siemens)
  66094. + ## LD is ld it makes a PLAMLIB
  66095. + ## CC just makes a GrossModule.
  66096. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  66097. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  66098. + _LT_TAGVAR(hardcode_direct, $1)=no
  66099. + ;;
  66100. + motorola)
  66101. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  66102. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  66103. + ;;
  66104. + esac
  66105. + runpath_var='LD_RUN_PATH'
  66106. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66107. + ;;
  66108. +
  66109. + sysv4.3*)
  66110. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  66111. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66112. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  66113. + ;;
  66114. +
  66115. + sysv4*MP*)
  66116. + if test -d /usr/nec; then
  66117. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  66118. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66119. + runpath_var=LD_RUN_PATH
  66120. + hardcode_runpath_var=yes
  66121. + _LT_TAGVAR(ld_shlibs, $1)=yes
  66122. + fi
  66123. + ;;
  66124. +
  66125. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  66126. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  66127. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  66128. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66129. + runpath_var='LD_RUN_PATH'
  66130. +
  66131. + if test "$GCC" = yes; then
  66132. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  66133. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  66134. + else
  66135. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  66136. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  66137. + fi
  66138. + ;;
  66139. +
  66140. + sysv5* | sco3.2v5* | sco5v6*)
  66141. + # Note: We can NOT use -z defs as we might desire, because we do not
  66142. + # link with -lc, and that would cause any symbols used from libc to
  66143. + # always be unresolved, which means just about no library would
  66144. + # ever link correctly. If we're not using GNU ld we use -z text
  66145. + # though, which does catch some bad symbols but isn't as heavy-handed
  66146. + # as -z defs.
  66147. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  66148. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  66149. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  66150. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66151. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  66152. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  66153. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  66154. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  66155. + runpath_var='LD_RUN_PATH'
  66156. +
  66157. + if test "$GCC" = yes; then
  66158. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  66159. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  66160. + else
  66161. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  66162. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  66163. + fi
  66164. + ;;
  66165. +
  66166. + uts4*)
  66167. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  66168. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  66169. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66170. + ;;
  66171. +
  66172. + *)
  66173. + _LT_TAGVAR(ld_shlibs, $1)=no
  66174. + ;;
  66175. + esac
  66176. +
  66177. + if test x$host_vendor = xsni; then
  66178. + case $host in
  66179. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  66180. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  66181. + ;;
  66182. + esac
  66183. + fi
  66184. + fi
  66185. +])
  66186. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  66187. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  66188. +
  66189. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  66190. +
  66191. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  66192. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  66193. +_LT_DECL([], [extract_expsyms_cmds], [2],
  66194. + [The commands to extract the exported symbol list from a shared archive])
  66195. +
  66196. +#
  66197. +# Do we need to explicitly link libc?
  66198. +#
  66199. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  66200. +x|xyes)
  66201. + # Assume -lc should be added
  66202. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  66203. +
  66204. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  66205. + case $_LT_TAGVAR(archive_cmds, $1) in
  66206. + *'~'*)
  66207. + # FIXME: we may have to deal with multi-command sequences.
  66208. + ;;
  66209. + '$CC '*)
  66210. + # Test whether the compiler implicitly links with -lc since on some
  66211. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  66212. + # to ld, don't add -lc before -lgcc.
  66213. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  66214. + $RM conftest*
  66215. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  66216. +
  66217. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  66218. + soname=conftest
  66219. + lib=conftest
  66220. + libobjs=conftest.$ac_objext
  66221. + deplibs=
  66222. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  66223. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  66224. + compiler_flags=-v
  66225. + linker_flags=-v
  66226. + verstring=
  66227. + output_objdir=.
  66228. + libname=conftest
  66229. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  66230. + _LT_TAGVAR(allow_undefined_flag, $1)=
  66231. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  66232. + then
  66233. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  66234. + else
  66235. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  66236. + fi
  66237. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  66238. + else
  66239. + cat conftest.err 1>&5
  66240. + fi
  66241. + $RM conftest*
  66242. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  66243. + ;;
  66244. + esac
  66245. + fi
  66246. + ;;
  66247. +esac
  66248. +
  66249. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  66250. + [Whether or not to add -lc for building shared libraries])
  66251. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  66252. + [enable_shared_with_static_runtimes], [0],
  66253. + [Whether or not to disallow shared libs when runtime libs are static])
  66254. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  66255. + [Compiler flag to allow reflexive dlopens])
  66256. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  66257. + [Compiler flag to generate shared objects directly from archives])
  66258. +_LT_TAGDECL([], [compiler_needs_object], [1],
  66259. + [Whether the compiler copes with passing no objects directly])
  66260. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  66261. + [Create an old-style archive from a shared archive])
  66262. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  66263. + [Create a temporary old-style archive to link instead of a shared archive])
  66264. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  66265. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  66266. +_LT_TAGDECL([], [module_cmds], [2],
  66267. + [Commands used to build a loadable module if different from building
  66268. + a shared archive.])
  66269. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  66270. +_LT_TAGDECL([], [with_gnu_ld], [1],
  66271. + [Whether we are building with GNU ld or not])
  66272. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  66273. + [Flag that allows shared libraries with undefined symbols to be built])
  66274. +_LT_TAGDECL([], [no_undefined_flag], [1],
  66275. + [Flag that enforces no undefined symbols])
  66276. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  66277. + [Flag to hardcode $libdir into a binary during linking.
  66278. + This must work even if $libdir does not exist])
  66279. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  66280. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  66281. + during linking. This must work even if $libdir does not exist]])
  66282. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  66283. + [Whether we need a single "-rpath" flag with a separated argument])
  66284. +_LT_TAGDECL([], [hardcode_direct], [0],
  66285. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  66286. + DIR into the resulting binary])
  66287. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  66288. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  66289. + DIR into the resulting binary and the resulting library dependency is
  66290. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  66291. + library is relocated])
  66292. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  66293. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  66294. + into the resulting binary])
  66295. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  66296. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  66297. + into the resulting binary])
  66298. +_LT_TAGDECL([], [hardcode_automatic], [0],
  66299. + [Set to "yes" if building a shared library automatically hardcodes DIR
  66300. + into the library and all subsequent libraries and executables linked
  66301. + against it])
  66302. +_LT_TAGDECL([], [inherit_rpath], [0],
  66303. + [Set to yes if linker adds runtime paths of dependent libraries
  66304. + to runtime path list])
  66305. +_LT_TAGDECL([], [link_all_deplibs], [0],
  66306. + [Whether libtool must link a program against all its dependency libraries])
  66307. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  66308. + [Fix the shell variable $srcfile for the compiler])
  66309. +_LT_TAGDECL([], [always_export_symbols], [0],
  66310. + [Set to "yes" if exported symbols are required])
  66311. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  66312. + [The commands to list exported symbols])
  66313. +_LT_TAGDECL([], [exclude_expsyms], [1],
  66314. + [Symbols that should not be listed in the preloaded symbols])
  66315. +_LT_TAGDECL([], [include_expsyms], [1],
  66316. + [Symbols that must always be exported])
  66317. +_LT_TAGDECL([], [prelink_cmds], [2],
  66318. + [Commands necessary for linking programs (against libraries) with templates])
  66319. +_LT_TAGDECL([], [file_list_spec], [1],
  66320. + [Specify filename containing input files])
  66321. +dnl FIXME: Not yet implemented
  66322. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  66323. +dnl [Compiler flag to generate thread safe objects])
  66324. +])# _LT_LINKER_SHLIBS
  66325. +
  66326. +
  66327. +# _LT_LANG_C_CONFIG([TAG])
  66328. +# ------------------------
  66329. +# Ensure that the configuration variables for a C compiler are suitably
  66330. +# defined. These variables are subsequently used by _LT_CONFIG to write
  66331. +# the compiler configuration to `libtool'.
  66332. +m4_defun([_LT_LANG_C_CONFIG],
  66333. +[m4_require([_LT_DECL_EGREP])dnl
  66334. +lt_save_CC="$CC"
  66335. +AC_LANG_PUSH(C)
  66336. +
  66337. +# Source file extension for C test sources.
  66338. +ac_ext=c
  66339. +
  66340. +# Object file extension for compiled C test sources.
  66341. +objext=o
  66342. +_LT_TAGVAR(objext, $1)=$objext
  66343. +
  66344. +# Code to be used in simple compile tests
  66345. +lt_simple_compile_test_code="int some_variable = 0;"
  66346. +
  66347. +# Code to be used in simple link tests
  66348. +lt_simple_link_test_code='int main(){return(0);}'
  66349. +
  66350. +_LT_TAG_COMPILER
  66351. +# Save the default compiler, since it gets overwritten when the other
  66352. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  66353. +compiler_DEFAULT=$CC
  66354. +
  66355. +# save warnings/boilerplate of simple test code
  66356. +_LT_COMPILER_BOILERPLATE
  66357. +_LT_LINKER_BOILERPLATE
  66358. +
  66359. +## CAVEAT EMPTOR:
  66360. +## There is no encapsulation within the following macros, do not change
  66361. +## the running order or otherwise move them around unless you know exactly
  66362. +## what you are doing...
  66363. +if test -n "$compiler"; then
  66364. + _LT_COMPILER_NO_RTTI($1)
  66365. + _LT_COMPILER_PIC($1)
  66366. + _LT_COMPILER_C_O($1)
  66367. + _LT_COMPILER_FILE_LOCKS($1)
  66368. + _LT_LINKER_SHLIBS($1)
  66369. + _LT_SYS_DYNAMIC_LINKER($1)
  66370. + _LT_LINKER_HARDCODE_LIBPATH($1)
  66371. + LT_SYS_DLOPEN_SELF
  66372. + _LT_CMD_STRIPLIB
  66373. +
  66374. + # Report which library types will actually be built
  66375. + AC_MSG_CHECKING([if libtool supports shared libraries])
  66376. + AC_MSG_RESULT([$can_build_shared])
  66377. +
  66378. + AC_MSG_CHECKING([whether to build shared libraries])
  66379. + test "$can_build_shared" = "no" && enable_shared=no
  66380. +
  66381. + # On AIX, shared libraries and static libraries use the same namespace, and
  66382. + # are all built from PIC.
  66383. + case $host_os in
  66384. + aix3*)
  66385. + test "$enable_shared" = yes && enable_static=no
  66386. + if test -n "$RANLIB"; then
  66387. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  66388. + postinstall_cmds='$RANLIB $lib'
  66389. + fi
  66390. + ;;
  66391. +
  66392. + aix[[4-9]]*)
  66393. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  66394. + test "$enable_shared" = yes && enable_static=no
  66395. + fi
  66396. + ;;
  66397. + esac
  66398. + AC_MSG_RESULT([$enable_shared])
  66399. +
  66400. + AC_MSG_CHECKING([whether to build static libraries])
  66401. + # Make sure either enable_shared or enable_static is yes.
  66402. + test "$enable_shared" = yes || enable_static=yes
  66403. + AC_MSG_RESULT([$enable_static])
  66404. +
  66405. + _LT_CONFIG($1)
  66406. +fi
  66407. +AC_LANG_POP
  66408. +CC="$lt_save_CC"
  66409. +])# _LT_LANG_C_CONFIG
  66410. +
  66411. +
  66412. +# _LT_PROG_CXX
  66413. +# ------------
  66414. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  66415. +# compiler, we have our own version here.
  66416. +m4_defun([_LT_PROG_CXX],
  66417. +[
  66418. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  66419. +AC_PROG_CXX
  66420. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  66421. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  66422. + (test "X$CXX" != "Xg++"))) ; then
  66423. + AC_PROG_CXXCPP
  66424. +else
  66425. + _lt_caught_CXX_error=yes
  66426. +fi
  66427. +popdef([AC_MSG_ERROR])
  66428. +])# _LT_PROG_CXX
  66429. +
  66430. +dnl aclocal-1.4 backwards compatibility:
  66431. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  66432. +
  66433. +
  66434. +# _LT_LANG_CXX_CONFIG([TAG])
  66435. +# --------------------------
  66436. +# Ensure that the configuration variables for a C++ compiler are suitably
  66437. +# defined. These variables are subsequently used by _LT_CONFIG to write
  66438. +# the compiler configuration to `libtool'.
  66439. +m4_defun([_LT_LANG_CXX_CONFIG],
  66440. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  66441. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  66442. +m4_require([_LT_DECL_EGREP])dnl
  66443. +
  66444. +AC_LANG_PUSH(C++)
  66445. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  66446. +_LT_TAGVAR(allow_undefined_flag, $1)=
  66447. +_LT_TAGVAR(always_export_symbols, $1)=no
  66448. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  66449. +_LT_TAGVAR(compiler_needs_object, $1)=no
  66450. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  66451. +_LT_TAGVAR(hardcode_direct, $1)=no
  66452. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  66453. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  66454. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  66455. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  66456. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  66457. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  66458. +_LT_TAGVAR(hardcode_automatic, $1)=no
  66459. +_LT_TAGVAR(inherit_rpath, $1)=no
  66460. +_LT_TAGVAR(module_cmds, $1)=
  66461. +_LT_TAGVAR(module_expsym_cmds, $1)=
  66462. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  66463. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  66464. +_LT_TAGVAR(no_undefined_flag, $1)=
  66465. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  66466. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  66467. +
  66468. +# Source file extension for C++ test sources.
  66469. +ac_ext=cpp
  66470. +
  66471. +# Object file extension for compiled C++ test sources.
  66472. +objext=o
  66473. +_LT_TAGVAR(objext, $1)=$objext
  66474. +
  66475. +# No sense in running all these tests if we already determined that
  66476. +# the CXX compiler isn't working. Some variables (like enable_shared)
  66477. +# are currently assumed to apply to all compilers on this platform,
  66478. +# and will be corrupted by setting them based on a non-working compiler.
  66479. +if test "$_lt_caught_CXX_error" != yes; then
  66480. + # Code to be used in simple compile tests
  66481. + lt_simple_compile_test_code="int some_variable = 0;"
  66482. +
  66483. + # Code to be used in simple link tests
  66484. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  66485. +
  66486. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  66487. + _LT_TAG_COMPILER
  66488. +
  66489. + # save warnings/boilerplate of simple test code
  66490. + _LT_COMPILER_BOILERPLATE
  66491. + _LT_LINKER_BOILERPLATE
  66492. +
  66493. + # Allow CC to be a program name with arguments.
  66494. + lt_save_CC=$CC
  66495. + lt_save_LD=$LD
  66496. + lt_save_GCC=$GCC
  66497. + GCC=$GXX
  66498. + lt_save_with_gnu_ld=$with_gnu_ld
  66499. + lt_save_path_LD=$lt_cv_path_LD
  66500. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  66501. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  66502. + else
  66503. + $as_unset lt_cv_prog_gnu_ld
  66504. + fi
  66505. + if test -n "${lt_cv_path_LDCXX+set}"; then
  66506. + lt_cv_path_LD=$lt_cv_path_LDCXX
  66507. + else
  66508. + $as_unset lt_cv_path_LD
  66509. + fi
  66510. + test -z "${LDCXX+set}" || LD=$LDCXX
  66511. + CC=${CXX-"c++"}
  66512. + compiler=$CC
  66513. + _LT_TAGVAR(compiler, $1)=$CC
  66514. + _LT_CC_BASENAME([$compiler])
  66515. +
  66516. + if test -n "$compiler"; then
  66517. + # We don't want -fno-exception when compiling C++ code, so set the
  66518. + # no_builtin_flag separately
  66519. + if test "$GXX" = yes; then
  66520. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  66521. + else
  66522. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  66523. + fi
  66524. +
  66525. + if test "$GXX" = yes; then
  66526. + # Set up default GNU C++ configuration
  66527. +
  66528. + LT_PATH_LD
  66529. +
  66530. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  66531. + # archiving commands below assume that GNU ld is being used.
  66532. + if test "$with_gnu_ld" = yes; then
  66533. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  66534. + _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'
  66535. +
  66536. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  66537. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  66538. +
  66539. + # If archive_cmds runs LD, not CC, wlarc should be empty
  66540. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  66541. + # investigate it a little bit more. (MM)
  66542. + wlarc='${wl}'
  66543. +
  66544. + # ancient GNU ld didn't support --whole-archive et. al.
  66545. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  66546. + $GREP 'no-whole-archive' > /dev/null; then
  66547. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  66548. + else
  66549. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  66550. + fi
  66551. + else
  66552. + with_gnu_ld=no
  66553. + wlarc=
  66554. +
  66555. + # A generic and very simple default shared library creation
  66556. + # command for GNU C++ for the case where it uses the native
  66557. + # linker, instead of GNU ld. If possible, this setting should
  66558. + # overridden to take advantage of the native linker features on
  66559. + # the platform it is being used on.
  66560. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  66561. + fi
  66562. +
  66563. + # Commands to make compiler produce verbose output that lists
  66564. + # what "hidden" libraries, object files and flags are used when
  66565. + # linking a shared library.
  66566. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  66567. +
  66568. + else
  66569. + GXX=no
  66570. + with_gnu_ld=no
  66571. + wlarc=
  66572. + fi
  66573. +
  66574. + # PORTME: fill in a description of your system's C++ link characteristics
  66575. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  66576. + _LT_TAGVAR(ld_shlibs, $1)=yes
  66577. + case $host_os in
  66578. + aix3*)
  66579. + # FIXME: insert proper C++ library support
  66580. + _LT_TAGVAR(ld_shlibs, $1)=no
  66581. + ;;
  66582. + aix[[4-9]]*)
  66583. + if test "$host_cpu" = ia64; then
  66584. + # On IA64, the linker does run time linking by default, so we don't
  66585. + # have to do anything special.
  66586. + aix_use_runtimelinking=no
  66587. + exp_sym_flag='-Bexport'
  66588. + no_entry_flag=""
  66589. + else
  66590. + aix_use_runtimelinking=no
  66591. +
  66592. + # Test if we are trying to use run time linking or normal
  66593. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  66594. + # need to do runtime linking.
  66595. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  66596. + for ld_flag in $LDFLAGS; do
  66597. + case $ld_flag in
  66598. + *-brtl*)
  66599. + aix_use_runtimelinking=yes
  66600. + break
  66601. + ;;
  66602. + esac
  66603. + done
  66604. + ;;
  66605. + esac
  66606. +
  66607. + exp_sym_flag='-bexport'
  66608. + no_entry_flag='-bnoentry'
  66609. + fi
  66610. +
  66611. + # When large executables or shared objects are built, AIX ld can
  66612. + # have problems creating the table of contents. If linking a library
  66613. + # or program results in "error TOC overflow" add -mminimal-toc to
  66614. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  66615. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  66616. +
  66617. + _LT_TAGVAR(archive_cmds, $1)=''
  66618. + _LT_TAGVAR(hardcode_direct, $1)=yes
  66619. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  66620. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  66621. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  66622. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  66623. +
  66624. + if test "$GXX" = yes; then
  66625. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  66626. + # We only want to do this on AIX 4.2 and lower, the check
  66627. + # below for broken collect2 doesn't work under 4.3+
  66628. + collect2name=`${CC} -print-prog-name=collect2`
  66629. + if test -f "$collect2name" &&
  66630. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  66631. + then
  66632. + # We have reworked collect2
  66633. + :
  66634. + else
  66635. + # We have old collect2
  66636. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  66637. + # It fails to find uninstalled libraries when the uninstalled
  66638. + # path is not listed in the libpath. Setting hardcode_minus_L
  66639. + # to unsupported forces relinking
  66640. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  66641. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  66642. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  66643. + fi
  66644. + esac
  66645. + shared_flag='-shared'
  66646. + if test "$aix_use_runtimelinking" = yes; then
  66647. + shared_flag="$shared_flag "'${wl}-G'
  66648. + fi
  66649. + else
  66650. + # not using gcc
  66651. + if test "$host_cpu" = ia64; then
  66652. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  66653. + # chokes on -Wl,-G. The following line is correct:
  66654. + shared_flag='-G'
  66655. + else
  66656. + if test "$aix_use_runtimelinking" = yes; then
  66657. + shared_flag='${wl}-G'
  66658. + else
  66659. + shared_flag='${wl}-bM:SRE'
  66660. + fi
  66661. + fi
  66662. + fi
  66663. +
  66664. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  66665. + # It seems that -bexpall does not export symbols beginning with
  66666. + # underscore (_), so it is better to generate a list of symbols to
  66667. + # export.
  66668. + _LT_TAGVAR(always_export_symbols, $1)=yes
  66669. + if test "$aix_use_runtimelinking" = yes; then
  66670. + # Warning - without using the other runtime loading flags (-brtl),
  66671. + # -berok will link without error, but may produce a broken library.
  66672. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  66673. + # Determine the default libpath from the value encoded in an empty
  66674. + # executable.
  66675. + _LT_SYS_MODULE_PATH_AIX
  66676. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  66677. +
  66678. + _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"
  66679. + else
  66680. + if test "$host_cpu" = ia64; then
  66681. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  66682. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  66683. + _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"
  66684. + else
  66685. + # Determine the default libpath from the value encoded in an
  66686. + # empty executable.
  66687. + _LT_SYS_MODULE_PATH_AIX
  66688. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  66689. + # Warning - without using the other run time loading flags,
  66690. + # -berok will link without error, but may produce a broken library.
  66691. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  66692. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  66693. + # Exported symbols can be pulled into shared objects from archives
  66694. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  66695. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  66696. + # This is similar to how AIX traditionally builds its shared
  66697. + # libraries.
  66698. + _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'
  66699. + fi
  66700. + fi
  66701. + ;;
  66702. +
  66703. + beos*)
  66704. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  66705. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  66706. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  66707. + # support --undefined. This deserves some investigation. FIXME
  66708. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  66709. + else
  66710. + _LT_TAGVAR(ld_shlibs, $1)=no
  66711. + fi
  66712. + ;;
  66713. +
  66714. + chorus*)
  66715. + case $cc_basename in
  66716. + *)
  66717. + # FIXME: insert proper C++ library support
  66718. + _LT_TAGVAR(ld_shlibs, $1)=no
  66719. + ;;
  66720. + esac
  66721. + ;;
  66722. +
  66723. + cygwin* | mingw* | pw32* | cegcc*)
  66724. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  66725. + # as there is no search path for DLLs.
  66726. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  66727. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  66728. + _LT_TAGVAR(always_export_symbols, $1)=no
  66729. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  66730. +
  66731. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  66732. + _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'
  66733. + # If the export-symbols file already is a .def file (1st line
  66734. + # is EXPORTS), use it as is; otherwise, prepend...
  66735. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  66736. + cp $export_symbols $output_objdir/$soname.def;
  66737. + else
  66738. + echo EXPORTS > $output_objdir/$soname.def;
  66739. + cat $export_symbols >> $output_objdir/$soname.def;
  66740. + fi~
  66741. + $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'
  66742. + else
  66743. + _LT_TAGVAR(ld_shlibs, $1)=no
  66744. + fi
  66745. + ;;
  66746. + darwin* | rhapsody*)
  66747. + _LT_DARWIN_LINKER_FEATURES($1)
  66748. + ;;
  66749. +
  66750. + dgux*)
  66751. + case $cc_basename in
  66752. + ec++*)
  66753. + # FIXME: insert proper C++ library support
  66754. + _LT_TAGVAR(ld_shlibs, $1)=no
  66755. + ;;
  66756. + ghcx*)
  66757. + # Green Hills C++ Compiler
  66758. + # FIXME: insert proper C++ library support
  66759. + _LT_TAGVAR(ld_shlibs, $1)=no
  66760. + ;;
  66761. + *)
  66762. + # FIXME: insert proper C++ library support
  66763. + _LT_TAGVAR(ld_shlibs, $1)=no
  66764. + ;;
  66765. + esac
  66766. + ;;
  66767. +
  66768. + freebsd[[12]]*)
  66769. + # C++ shared libraries reported to be fairly broken before
  66770. + # switch to ELF
  66771. + _LT_TAGVAR(ld_shlibs, $1)=no
  66772. + ;;
  66773. +
  66774. + freebsd-elf*)
  66775. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  66776. + ;;
  66777. +
  66778. + freebsd* | dragonfly*)
  66779. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  66780. + # conventions
  66781. + _LT_TAGVAR(ld_shlibs, $1)=yes
  66782. + ;;
  66783. +
  66784. + gnu*)
  66785. + ;;
  66786. +
  66787. + hpux9*)
  66788. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  66789. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  66790. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  66791. + _LT_TAGVAR(hardcode_direct, $1)=yes
  66792. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  66793. + # but as the default
  66794. + # location of the library.
  66795. +
  66796. + case $cc_basename in
  66797. + CC*)
  66798. + # FIXME: insert proper C++ library support
  66799. + _LT_TAGVAR(ld_shlibs, $1)=no
  66800. + ;;
  66801. + aCC*)
  66802. + _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'
  66803. + # Commands to make compiler produce verbose output that lists
  66804. + # what "hidden" libraries, object files and flags are used when
  66805. + # linking a shared library.
  66806. + #
  66807. + # There doesn't appear to be a way to prevent this compiler from
  66808. + # explicitly linking system object files so we need to strip them
  66809. + # from the output so that they don't get included in the library
  66810. + # dependencies.
  66811. + 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'
  66812. + ;;
  66813. + *)
  66814. + if test "$GXX" = yes; then
  66815. + _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'
  66816. + else
  66817. + # FIXME: insert proper C++ library support
  66818. + _LT_TAGVAR(ld_shlibs, $1)=no
  66819. + fi
  66820. + ;;
  66821. + esac
  66822. + ;;
  66823. +
  66824. + hpux10*|hpux11*)
  66825. + if test $with_gnu_ld = no; then
  66826. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  66827. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  66828. +
  66829. + case $host_cpu in
  66830. + hppa*64*|ia64*)
  66831. + ;;
  66832. + *)
  66833. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  66834. + ;;
  66835. + esac
  66836. + fi
  66837. + case $host_cpu in
  66838. + hppa*64*|ia64*)
  66839. + _LT_TAGVAR(hardcode_direct, $1)=no
  66840. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66841. + ;;
  66842. + *)
  66843. + _LT_TAGVAR(hardcode_direct, $1)=yes
  66844. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  66845. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  66846. + # but as the default
  66847. + # location of the library.
  66848. + ;;
  66849. + esac
  66850. +
  66851. + case $cc_basename in
  66852. + CC*)
  66853. + # FIXME: insert proper C++ library support
  66854. + _LT_TAGVAR(ld_shlibs, $1)=no
  66855. + ;;
  66856. + aCC*)
  66857. + case $host_cpu in
  66858. + hppa*64*)
  66859. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  66860. + ;;
  66861. + ia64*)
  66862. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  66863. + ;;
  66864. + *)
  66865. + _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'
  66866. + ;;
  66867. + esac
  66868. + # Commands to make compiler produce verbose output that lists
  66869. + # what "hidden" libraries, object files and flags are used when
  66870. + # linking a shared library.
  66871. + #
  66872. + # There doesn't appear to be a way to prevent this compiler from
  66873. + # explicitly linking system object files so we need to strip them
  66874. + # from the output so that they don't get included in the library
  66875. + # dependencies.
  66876. + 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'
  66877. + ;;
  66878. + *)
  66879. + if test "$GXX" = yes; then
  66880. + if test $with_gnu_ld = no; then
  66881. + case $host_cpu in
  66882. + hppa*64*)
  66883. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  66884. + ;;
  66885. + ia64*)
  66886. + _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'
  66887. + ;;
  66888. + *)
  66889. + _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'
  66890. + ;;
  66891. + esac
  66892. + fi
  66893. + else
  66894. + # FIXME: insert proper C++ library support
  66895. + _LT_TAGVAR(ld_shlibs, $1)=no
  66896. + fi
  66897. + ;;
  66898. + esac
  66899. + ;;
  66900. +
  66901. + interix[[3-9]]*)
  66902. + _LT_TAGVAR(hardcode_direct, $1)=no
  66903. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  66904. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  66905. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  66906. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  66907. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  66908. + # default) and relocated if they conflict, which is a slow very memory
  66909. + # consuming and fragmenting process. To avoid this, we pick a random,
  66910. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  66911. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  66912. + _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'
  66913. + _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'
  66914. + ;;
  66915. + irix5* | irix6*)
  66916. + case $cc_basename in
  66917. + CC*)
  66918. + # SGI C++
  66919. + _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'
  66920. +
  66921. + # Archives containing C++ object files must be created using
  66922. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  66923. + # necessary to make sure instantiated templates are included
  66924. + # in the archive.
  66925. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  66926. + ;;
  66927. + *)
  66928. + if test "$GXX" = yes; then
  66929. + if test "$with_gnu_ld" = no; then
  66930. + _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'
  66931. + else
  66932. + _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'
  66933. + fi
  66934. + fi
  66935. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  66936. + ;;
  66937. + esac
  66938. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  66939. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  66940. + _LT_TAGVAR(inherit_rpath, $1)=yes
  66941. + ;;
  66942. +
  66943. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  66944. + case $cc_basename in
  66945. + KCC*)
  66946. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  66947. +
  66948. + # KCC will only create a shared library if the output file
  66949. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  66950. + # to its proper name (with version) after linking.
  66951. + _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'
  66952. + _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'
  66953. + # Commands to make compiler produce verbose output that lists
  66954. + # what "hidden" libraries, object files and flags are used when
  66955. + # linking a shared library.
  66956. + #
  66957. + # There doesn't appear to be a way to prevent this compiler from
  66958. + # explicitly linking system object files so we need to strip them
  66959. + # from the output so that they don't get included in the library
  66960. + # dependencies.
  66961. + 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'
  66962. +
  66963. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  66964. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  66965. +
  66966. + # Archives containing C++ object files must be created using
  66967. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  66968. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  66969. + ;;
  66970. + icpc* | ecpc* )
  66971. + # Intel C++
  66972. + with_gnu_ld=yes
  66973. + # version 8.0 and above of icpc choke on multiply defined symbols
  66974. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  66975. + # earlier do not add the objects themselves.
  66976. + case `$CC -V 2>&1` in
  66977. + *"Version 7."*)
  66978. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  66979. + _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'
  66980. + ;;
  66981. + *) # Version 8.0 or newer
  66982. + tmp_idyn=
  66983. + case $host_cpu in
  66984. + ia64*) tmp_idyn=' -i_dynamic';;
  66985. + esac
  66986. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  66987. + _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'
  66988. + ;;
  66989. + esac
  66990. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  66991. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  66992. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  66993. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  66994. + ;;
  66995. + pgCC* | pgcpp*)
  66996. + # Portland Group C++ compiler
  66997. + case `$CC -V` in
  66998. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  66999. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  67000. + rm -rf $tpldir~
  67001. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  67002. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  67003. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  67004. + rm -rf $tpldir~
  67005. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  67006. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  67007. + $RANLIB $oldlib'
  67008. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  67009. + rm -rf $tpldir~
  67010. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  67011. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  67012. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  67013. + rm -rf $tpldir~
  67014. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  67015. + $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'
  67016. + ;;
  67017. + *) # Version 6 will use weak symbols
  67018. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  67019. + _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'
  67020. + ;;
  67021. + esac
  67022. +
  67023. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  67024. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  67025. + _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'
  67026. + ;;
  67027. + cxx*)
  67028. + # Compaq C++
  67029. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  67030. + _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'
  67031. +
  67032. + runpath_var=LD_RUN_PATH
  67033. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  67034. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  67035. +
  67036. + # Commands to make compiler produce verbose output that lists
  67037. + # what "hidden" libraries, object files and flags are used when
  67038. + # linking a shared library.
  67039. + #
  67040. + # There doesn't appear to be a way to prevent this compiler from
  67041. + # explicitly linking system object files so we need to strip them
  67042. + # from the output so that they don't get included in the library
  67043. + # dependencies.
  67044. + 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'
  67045. + ;;
  67046. + xl*)
  67047. + # IBM XL 8.0 on PPC, with GNU ld
  67048. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  67049. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  67050. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  67051. + if test "x$supports_anon_versioning" = xyes; then
  67052. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  67053. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  67054. + echo "local: *; };" >> $output_objdir/$libname.ver~
  67055. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  67056. + fi
  67057. + ;;
  67058. + *)
  67059. + case `$CC -V 2>&1 | sed 5q` in
  67060. + *Sun\ C*)
  67061. + # Sun C++ 5.9
  67062. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  67063. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  67064. + _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'
  67065. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  67066. + _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'
  67067. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  67068. +
  67069. + # Not sure whether something based on
  67070. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  67071. + # would be better.
  67072. + output_verbose_link_cmd='echo'
  67073. +
  67074. + # Archives containing C++ object files must be created using
  67075. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  67076. + # necessary to make sure instantiated templates are included
  67077. + # in the archive.
  67078. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  67079. + ;;
  67080. + esac
  67081. + ;;
  67082. + esac
  67083. + ;;
  67084. +
  67085. + lynxos*)
  67086. + # FIXME: insert proper C++ library support
  67087. + _LT_TAGVAR(ld_shlibs, $1)=no
  67088. + ;;
  67089. +
  67090. + m88k*)
  67091. + # FIXME: insert proper C++ library support
  67092. + _LT_TAGVAR(ld_shlibs, $1)=no
  67093. + ;;
  67094. +
  67095. + mvs*)
  67096. + case $cc_basename in
  67097. + cxx*)
  67098. + # FIXME: insert proper C++ library support
  67099. + _LT_TAGVAR(ld_shlibs, $1)=no
  67100. + ;;
  67101. + *)
  67102. + # FIXME: insert proper C++ library support
  67103. + _LT_TAGVAR(ld_shlibs, $1)=no
  67104. + ;;
  67105. + esac
  67106. + ;;
  67107. +
  67108. + netbsd*)
  67109. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  67110. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  67111. + wlarc=
  67112. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  67113. + _LT_TAGVAR(hardcode_direct, $1)=yes
  67114. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  67115. + fi
  67116. + # Workaround some broken pre-1.5 toolchains
  67117. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  67118. + ;;
  67119. +
  67120. + *nto* | *qnx*)
  67121. + _LT_TAGVAR(ld_shlibs, $1)=yes
  67122. + ;;
  67123. +
  67124. + openbsd2*)
  67125. + # C++ shared libraries are fairly broken
  67126. + _LT_TAGVAR(ld_shlibs, $1)=no
  67127. + ;;
  67128. +
  67129. + openbsd*)
  67130. + if test -f /usr/libexec/ld.so; then
  67131. + _LT_TAGVAR(hardcode_direct, $1)=yes
  67132. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  67133. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  67134. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  67135. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  67136. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  67137. + _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'
  67138. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  67139. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  67140. + fi
  67141. + output_verbose_link_cmd=echo
  67142. + else
  67143. + _LT_TAGVAR(ld_shlibs, $1)=no
  67144. + fi
  67145. + ;;
  67146. +
  67147. + osf3* | osf4* | osf5*)
  67148. + case $cc_basename in
  67149. + KCC*)
  67150. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  67151. +
  67152. + # KCC will only create a shared library if the output file
  67153. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  67154. + # to its proper name (with version) after linking.
  67155. + _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'
  67156. +
  67157. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  67158. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  67159. +
  67160. + # Archives containing C++ object files must be created using
  67161. + # the KAI C++ compiler.
  67162. + case $host in
  67163. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  67164. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  67165. + esac
  67166. + ;;
  67167. + RCC*)
  67168. + # Rational C++ 2.4.1
  67169. + # FIXME: insert proper C++ library support
  67170. + _LT_TAGVAR(ld_shlibs, $1)=no
  67171. + ;;
  67172. + cxx*)
  67173. + case $host in
  67174. + osf3*)
  67175. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  67176. + _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'
  67177. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  67178. + ;;
  67179. + *)
  67180. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  67181. + _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'
  67182. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  67183. + echo "-hidden">> $lib.exp~
  67184. + $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~
  67185. + $RM $lib.exp'
  67186. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  67187. + ;;
  67188. + esac
  67189. +
  67190. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  67191. +
  67192. + # Commands to make compiler produce verbose output that lists
  67193. + # what "hidden" libraries, object files and flags are used when
  67194. + # linking a shared library.
  67195. + #
  67196. + # There doesn't appear to be a way to prevent this compiler from
  67197. + # explicitly linking system object files so we need to strip them
  67198. + # from the output so that they don't get included in the library
  67199. + # dependencies.
  67200. + 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'
  67201. + ;;
  67202. + *)
  67203. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  67204. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  67205. + case $host in
  67206. + osf3*)
  67207. + _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'
  67208. + ;;
  67209. + *)
  67210. + _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'
  67211. + ;;
  67212. + esac
  67213. +
  67214. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  67215. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  67216. +
  67217. + # Commands to make compiler produce verbose output that lists
  67218. + # what "hidden" libraries, object files and flags are used when
  67219. + # linking a shared library.
  67220. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  67221. +
  67222. + else
  67223. + # FIXME: insert proper C++ library support
  67224. + _LT_TAGVAR(ld_shlibs, $1)=no
  67225. + fi
  67226. + ;;
  67227. + esac
  67228. + ;;
  67229. +
  67230. + psos*)
  67231. + # FIXME: insert proper C++ library support
  67232. + _LT_TAGVAR(ld_shlibs, $1)=no
  67233. + ;;
  67234. +
  67235. + sunos4*)
  67236. + case $cc_basename in
  67237. + CC*)
  67238. + # Sun C++ 4.x
  67239. + # FIXME: insert proper C++ library support
  67240. + _LT_TAGVAR(ld_shlibs, $1)=no
  67241. + ;;
  67242. + lcc*)
  67243. + # Lucid
  67244. + # FIXME: insert proper C++ library support
  67245. + _LT_TAGVAR(ld_shlibs, $1)=no
  67246. + ;;
  67247. + *)
  67248. + # FIXME: insert proper C++ library support
  67249. + _LT_TAGVAR(ld_shlibs, $1)=no
  67250. + ;;
  67251. + esac
  67252. + ;;
  67253. +
  67254. + solaris*)
  67255. + case $cc_basename in
  67256. + CC*)
  67257. + # Sun C++ 4.2, 5.x and Centerline C++
  67258. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  67259. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  67260. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  67261. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  67262. + $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'
  67263. +
  67264. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  67265. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  67266. + case $host_os in
  67267. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  67268. + *)
  67269. + # The compiler driver will combine and reorder linker options,
  67270. + # but understands `-z linker_flag'.
  67271. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  67272. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  67273. + ;;
  67274. + esac
  67275. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  67276. +
  67277. + output_verbose_link_cmd='echo'
  67278. +
  67279. + # Archives containing C++ object files must be created using
  67280. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  67281. + # necessary to make sure instantiated templates are included
  67282. + # in the archive.
  67283. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  67284. + ;;
  67285. + gcx*)
  67286. + # Green Hills C++ Compiler
  67287. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  67288. +
  67289. + # The C++ compiler must be used to create the archive.
  67290. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  67291. + ;;
  67292. + *)
  67293. + # GNU C++ compiler with Solaris linker
  67294. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  67295. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  67296. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  67297. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  67298. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  67299. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  67300. +
  67301. + # Commands to make compiler produce verbose output that lists
  67302. + # what "hidden" libraries, object files and flags are used when
  67303. + # linking a shared library.
  67304. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  67305. + else
  67306. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  67307. + # platform.
  67308. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  67309. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  67310. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  67311. +
  67312. + # Commands to make compiler produce verbose output that lists
  67313. + # what "hidden" libraries, object files and flags are used when
  67314. + # linking a shared library.
  67315. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  67316. + fi
  67317. +
  67318. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  67319. + case $host_os in
  67320. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  67321. + *)
  67322. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  67323. + ;;
  67324. + esac
  67325. + fi
  67326. + ;;
  67327. + esac
  67328. + ;;
  67329. +
  67330. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  67331. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  67332. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  67333. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  67334. + runpath_var='LD_RUN_PATH'
  67335. +
  67336. + case $cc_basename in
  67337. + CC*)
  67338. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  67339. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  67340. + ;;
  67341. + *)
  67342. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  67343. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  67344. + ;;
  67345. + esac
  67346. + ;;
  67347. +
  67348. + sysv5* | sco3.2v5* | sco5v6*)
  67349. + # Note: We can NOT use -z defs as we might desire, because we do not
  67350. + # link with -lc, and that would cause any symbols used from libc to
  67351. + # always be unresolved, which means just about no library would
  67352. + # ever link correctly. If we're not using GNU ld we use -z text
  67353. + # though, which does catch some bad symbols but isn't as heavy-handed
  67354. + # as -z defs.
  67355. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  67356. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  67357. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  67358. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  67359. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  67360. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  67361. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  67362. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  67363. + runpath_var='LD_RUN_PATH'
  67364. +
  67365. + case $cc_basename in
  67366. + CC*)
  67367. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  67368. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  67369. + ;;
  67370. + *)
  67371. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  67372. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  67373. + ;;
  67374. + esac
  67375. + ;;
  67376. +
  67377. + tandem*)
  67378. + case $cc_basename in
  67379. + NCC*)
  67380. + # NonStop-UX NCC 3.20
  67381. + # FIXME: insert proper C++ library support
  67382. + _LT_TAGVAR(ld_shlibs, $1)=no
  67383. + ;;
  67384. + *)
  67385. + # FIXME: insert proper C++ library support
  67386. + _LT_TAGVAR(ld_shlibs, $1)=no
  67387. + ;;
  67388. + esac
  67389. + ;;
  67390. +
  67391. + vxworks*)
  67392. + # FIXME: insert proper C++ library support
  67393. + _LT_TAGVAR(ld_shlibs, $1)=no
  67394. + ;;
  67395. +
  67396. + *)
  67397. + # FIXME: insert proper C++ library support
  67398. + _LT_TAGVAR(ld_shlibs, $1)=no
  67399. + ;;
  67400. + esac
  67401. +
  67402. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  67403. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  67404. +
  67405. + _LT_TAGVAR(GCC, $1)="$GXX"
  67406. + _LT_TAGVAR(LD, $1)="$LD"
  67407. +
  67408. + ## CAVEAT EMPTOR:
  67409. + ## There is no encapsulation within the following macros, do not change
  67410. + ## the running order or otherwise move them around unless you know exactly
  67411. + ## what you are doing...
  67412. + _LT_SYS_HIDDEN_LIBDEPS($1)
  67413. + _LT_COMPILER_PIC($1)
  67414. + _LT_COMPILER_C_O($1)
  67415. + _LT_COMPILER_FILE_LOCKS($1)
  67416. + _LT_LINKER_SHLIBS($1)
  67417. + _LT_SYS_DYNAMIC_LINKER($1)
  67418. + _LT_LINKER_HARDCODE_LIBPATH($1)
  67419. +
  67420. + _LT_CONFIG($1)
  67421. + fi # test -n "$compiler"
  67422. +
  67423. + CC=$lt_save_CC
  67424. + LDCXX=$LD
  67425. + LD=$lt_save_LD
  67426. + GCC=$lt_save_GCC
  67427. + with_gnu_ld=$lt_save_with_gnu_ld
  67428. + lt_cv_path_LDCXX=$lt_cv_path_LD
  67429. + lt_cv_path_LD=$lt_save_path_LD
  67430. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  67431. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  67432. +fi # test "$_lt_caught_CXX_error" != yes
  67433. +
  67434. +AC_LANG_POP
  67435. +])# _LT_LANG_CXX_CONFIG
  67436. +
  67437. +
  67438. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  67439. +# ---------------------------------
  67440. +# Figure out "hidden" library dependencies from verbose
  67441. +# compiler output when linking a shared library.
  67442. +# Parse the compiler output and extract the necessary
  67443. +# objects, libraries and library flags.
  67444. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  67445. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  67446. +# Dependencies to place before and after the object being linked:
  67447. +_LT_TAGVAR(predep_objects, $1)=
  67448. +_LT_TAGVAR(postdep_objects, $1)=
  67449. +_LT_TAGVAR(predeps, $1)=
  67450. +_LT_TAGVAR(postdeps, $1)=
  67451. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  67452. +
  67453. +dnl we can't use the lt_simple_compile_test_code here,
  67454. +dnl because it contains code intended for an executable,
  67455. +dnl not a library. It's possible we should let each
  67456. +dnl tag define a new lt_????_link_test_code variable,
  67457. +dnl but it's only used here...
  67458. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  67459. +int a;
  67460. +void foo (void) { a = 0; }
  67461. +_LT_EOF
  67462. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  67463. +class Foo
  67464. +{
  67465. +public:
  67466. + Foo (void) { a = 0; }
  67467. +private:
  67468. + int a;
  67469. +};
  67470. +_LT_EOF
  67471. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  67472. + subroutine foo
  67473. + implicit none
  67474. + integer*4 a
  67475. + a=0
  67476. + return
  67477. + end
  67478. +_LT_EOF
  67479. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  67480. + subroutine foo
  67481. + implicit none
  67482. + integer a
  67483. + a=0
  67484. + return
  67485. + end
  67486. +_LT_EOF
  67487. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  67488. +public class foo {
  67489. + private int a;
  67490. + public void bar (void) {
  67491. + a = 0;
  67492. + }
  67493. +};
  67494. +_LT_EOF
  67495. +])
  67496. +dnl Parse the compiler output and extract the necessary
  67497. +dnl objects, libraries and library flags.
  67498. +if AC_TRY_EVAL(ac_compile); then
  67499. + # Parse the compiler output and extract the necessary
  67500. + # objects, libraries and library flags.
  67501. +
  67502. + # Sentinel used to keep track of whether or not we are before
  67503. + # the conftest object file.
  67504. + pre_test_object_deps_done=no
  67505. +
  67506. + for p in `eval "$output_verbose_link_cmd"`; do
  67507. + case $p in
  67508. +
  67509. + -L* | -R* | -l*)
  67510. + # Some compilers place space between "-{L,R}" and the path.
  67511. + # Remove the space.
  67512. + if test $p = "-L" ||
  67513. + test $p = "-R"; then
  67514. + prev=$p
  67515. + continue
  67516. + else
  67517. + prev=
  67518. + fi
  67519. +
  67520. + if test "$pre_test_object_deps_done" = no; then
  67521. + case $p in
  67522. + -L* | -R*)
  67523. + # Internal compiler library paths should come after those
  67524. + # provided the user. The postdeps already come after the
  67525. + # user supplied libs so there is no need to process them.
  67526. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  67527. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  67528. + else
  67529. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  67530. + fi
  67531. + ;;
  67532. + # The "-l" case would never come before the object being
  67533. + # linked, so don't bother handling this case.
  67534. + esac
  67535. + else
  67536. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  67537. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  67538. + else
  67539. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  67540. + fi
  67541. + fi
  67542. + ;;
  67543. +
  67544. + *.$objext)
  67545. + # This assumes that the test object file only shows up
  67546. + # once in the compiler output.
  67547. + if test "$p" = "conftest.$objext"; then
  67548. + pre_test_object_deps_done=yes
  67549. + continue
  67550. + fi
  67551. +
  67552. + if test "$pre_test_object_deps_done" = no; then
  67553. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  67554. + _LT_TAGVAR(predep_objects, $1)="$p"
  67555. + else
  67556. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  67557. + fi
  67558. + else
  67559. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  67560. + _LT_TAGVAR(postdep_objects, $1)="$p"
  67561. + else
  67562. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  67563. + fi
  67564. + fi
  67565. + ;;
  67566. +
  67567. + *) ;; # Ignore the rest.
  67568. +
  67569. + esac
  67570. + done
  67571. +
  67572. + # Clean up.
  67573. + rm -f a.out a.exe
  67574. +else
  67575. + echo "libtool.m4: error: problem compiling $1 test program"
  67576. +fi
  67577. +
  67578. +$RM -f confest.$objext
  67579. +
  67580. +# PORTME: override above test on systems where it is broken
  67581. +m4_if([$1], [CXX],
  67582. +[case $host_os in
  67583. +interix[[3-9]]*)
  67584. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  67585. + # hack all around it, let's just trust "g++" to DTRT.
  67586. + _LT_TAGVAR(predep_objects,$1)=
  67587. + _LT_TAGVAR(postdep_objects,$1)=
  67588. + _LT_TAGVAR(postdeps,$1)=
  67589. + ;;
  67590. +
  67591. +linux*)
  67592. + case `$CC -V 2>&1 | sed 5q` in
  67593. + *Sun\ C*)
  67594. + # Sun C++ 5.9
  67595. +
  67596. + # The more standards-conforming stlport4 library is
  67597. + # incompatible with the Cstd library. Avoid specifying
  67598. + # it if it's in CXXFLAGS. Ignore libCrun as
  67599. + # -library=stlport4 depends on it.
  67600. + case " $CXX $CXXFLAGS " in
  67601. + *" -library=stlport4 "*)
  67602. + solaris_use_stlport4=yes
  67603. + ;;
  67604. + esac
  67605. +
  67606. + if test "$solaris_use_stlport4" != yes; then
  67607. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  67608. + fi
  67609. + ;;
  67610. + esac
  67611. + ;;
  67612. +
  67613. +solaris*)
  67614. + case $cc_basename in
  67615. + CC*)
  67616. + # The more standards-conforming stlport4 library is
  67617. + # incompatible with the Cstd library. Avoid specifying
  67618. + # it if it's in CXXFLAGS. Ignore libCrun as
  67619. + # -library=stlport4 depends on it.
  67620. + case " $CXX $CXXFLAGS " in
  67621. + *" -library=stlport4 "*)
  67622. + solaris_use_stlport4=yes
  67623. + ;;
  67624. + esac
  67625. +
  67626. + # Adding this requires a known-good setup of shared libraries for
  67627. + # Sun compiler versions before 5.6, else PIC objects from an old
  67628. + # archive will be linked into the output, leading to subtle bugs.
  67629. + if test "$solaris_use_stlport4" != yes; then
  67630. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  67631. + fi
  67632. + ;;
  67633. + esac
  67634. + ;;
  67635. +esac
  67636. +])
  67637. +
  67638. +case " $_LT_TAGVAR(postdeps, $1) " in
  67639. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  67640. +esac
  67641. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  67642. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  67643. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  67644. +fi
  67645. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  67646. + [The directories searched by this compiler when creating a shared library])
  67647. +_LT_TAGDECL([], [predep_objects], [1],
  67648. + [Dependencies to place before and after the objects being linked to
  67649. + create a shared library])
  67650. +_LT_TAGDECL([], [postdep_objects], [1])
  67651. +_LT_TAGDECL([], [predeps], [1])
  67652. +_LT_TAGDECL([], [postdeps], [1])
  67653. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  67654. + [The library search path used internally by the compiler when linking
  67655. + a shared library])
  67656. +])# _LT_SYS_HIDDEN_LIBDEPS
  67657. +
  67658. +
  67659. +# _LT_PROG_F77
  67660. +# ------------
  67661. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  67662. +# if there is no fortran compiler, we have our own version here.
  67663. +m4_defun([_LT_PROG_F77],
  67664. +[
  67665. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  67666. +AC_PROG_F77
  67667. +if test -z "$F77" || test "X$F77" = "Xno"; then
  67668. + _lt_disable_F77=yes
  67669. +fi
  67670. +popdef([AC_MSG_ERROR])
  67671. +])# _LT_PROG_F77
  67672. +
  67673. +dnl aclocal-1.4 backwards compatibility:
  67674. +dnl AC_DEFUN([_LT_PROG_F77], [])
  67675. +
  67676. +
  67677. +# _LT_LANG_F77_CONFIG([TAG])
  67678. +# --------------------------
  67679. +# Ensure that the configuration variables for a Fortran 77 compiler are
  67680. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  67681. +# to write the compiler configuration to `libtool'.
  67682. +m4_defun([_LT_LANG_F77_CONFIG],
  67683. +[AC_REQUIRE([_LT_PROG_F77])dnl
  67684. +AC_LANG_PUSH(Fortran 77)
  67685. +
  67686. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  67687. +_LT_TAGVAR(allow_undefined_flag, $1)=
  67688. +_LT_TAGVAR(always_export_symbols, $1)=no
  67689. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  67690. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  67691. +_LT_TAGVAR(hardcode_direct, $1)=no
  67692. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  67693. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  67694. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  67695. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  67696. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  67697. +_LT_TAGVAR(hardcode_automatic, $1)=no
  67698. +_LT_TAGVAR(inherit_rpath, $1)=no
  67699. +_LT_TAGVAR(module_cmds, $1)=
  67700. +_LT_TAGVAR(module_expsym_cmds, $1)=
  67701. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  67702. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  67703. +_LT_TAGVAR(no_undefined_flag, $1)=
  67704. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  67705. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  67706. +
  67707. +# Source file extension for f77 test sources.
  67708. +ac_ext=f
  67709. +
  67710. +# Object file extension for compiled f77 test sources.
  67711. +objext=o
  67712. +_LT_TAGVAR(objext, $1)=$objext
  67713. +
  67714. +# No sense in running all these tests if we already determined that
  67715. +# the F77 compiler isn't working. Some variables (like enable_shared)
  67716. +# are currently assumed to apply to all compilers on this platform,
  67717. +# and will be corrupted by setting them based on a non-working compiler.
  67718. +if test "$_lt_disable_F77" != yes; then
  67719. + # Code to be used in simple compile tests
  67720. + lt_simple_compile_test_code="\
  67721. + subroutine t
  67722. + return
  67723. + end
  67724. +"
  67725. +
  67726. + # Code to be used in simple link tests
  67727. + lt_simple_link_test_code="\
  67728. + program t
  67729. + end
  67730. +"
  67731. +
  67732. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  67733. + _LT_TAG_COMPILER
  67734. +
  67735. + # save warnings/boilerplate of simple test code
  67736. + _LT_COMPILER_BOILERPLATE
  67737. + _LT_LINKER_BOILERPLATE
  67738. +
  67739. + # Allow CC to be a program name with arguments.
  67740. + lt_save_CC="$CC"
  67741. + lt_save_GCC=$GCC
  67742. + CC=${F77-"f77"}
  67743. + compiler=$CC
  67744. + _LT_TAGVAR(compiler, $1)=$CC
  67745. + _LT_CC_BASENAME([$compiler])
  67746. + GCC=$G77
  67747. + if test -n "$compiler"; then
  67748. + AC_MSG_CHECKING([if libtool supports shared libraries])
  67749. + AC_MSG_RESULT([$can_build_shared])
  67750. +
  67751. + AC_MSG_CHECKING([whether to build shared libraries])
  67752. + test "$can_build_shared" = "no" && enable_shared=no
  67753. +
  67754. + # On AIX, shared libraries and static libraries use the same namespace, and
  67755. + # are all built from PIC.
  67756. + case $host_os in
  67757. + aix3*)
  67758. + test "$enable_shared" = yes && enable_static=no
  67759. + if test -n "$RANLIB"; then
  67760. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  67761. + postinstall_cmds='$RANLIB $lib'
  67762. + fi
  67763. + ;;
  67764. + aix[[4-9]]*)
  67765. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  67766. + test "$enable_shared" = yes && enable_static=no
  67767. + fi
  67768. + ;;
  67769. + esac
  67770. + AC_MSG_RESULT([$enable_shared])
  67771. +
  67772. + AC_MSG_CHECKING([whether to build static libraries])
  67773. + # Make sure either enable_shared or enable_static is yes.
  67774. + test "$enable_shared" = yes || enable_static=yes
  67775. + AC_MSG_RESULT([$enable_static])
  67776. +
  67777. + _LT_TAGVAR(GCC, $1)="$G77"
  67778. + _LT_TAGVAR(LD, $1)="$LD"
  67779. +
  67780. + ## CAVEAT EMPTOR:
  67781. + ## There is no encapsulation within the following macros, do not change
  67782. + ## the running order or otherwise move them around unless you know exactly
  67783. + ## what you are doing...
  67784. + _LT_COMPILER_PIC($1)
  67785. + _LT_COMPILER_C_O($1)
  67786. + _LT_COMPILER_FILE_LOCKS($1)
  67787. + _LT_LINKER_SHLIBS($1)
  67788. + _LT_SYS_DYNAMIC_LINKER($1)
  67789. + _LT_LINKER_HARDCODE_LIBPATH($1)
  67790. +
  67791. + _LT_CONFIG($1)
  67792. + fi # test -n "$compiler"
  67793. +
  67794. + GCC=$lt_save_GCC
  67795. + CC="$lt_save_CC"
  67796. +fi # test "$_lt_disable_F77" != yes
  67797. +
  67798. +AC_LANG_POP
  67799. +])# _LT_LANG_F77_CONFIG
  67800. +
  67801. +
  67802. +# _LT_PROG_FC
  67803. +# -----------
  67804. +# Since AC_PROG_FC is broken, in that it returns the empty string
  67805. +# if there is no fortran compiler, we have our own version here.
  67806. +m4_defun([_LT_PROG_FC],
  67807. +[
  67808. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  67809. +AC_PROG_FC
  67810. +if test -z "$FC" || test "X$FC" = "Xno"; then
  67811. + _lt_disable_FC=yes
  67812. +fi
  67813. +popdef([AC_MSG_ERROR])
  67814. +])# _LT_PROG_FC
  67815. +
  67816. +dnl aclocal-1.4 backwards compatibility:
  67817. +dnl AC_DEFUN([_LT_PROG_FC], [])
  67818. +
  67819. +
  67820. +# _LT_LANG_FC_CONFIG([TAG])
  67821. +# -------------------------
  67822. +# Ensure that the configuration variables for a Fortran compiler are
  67823. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  67824. +# to write the compiler configuration to `libtool'.
  67825. +m4_defun([_LT_LANG_FC_CONFIG],
  67826. +[AC_REQUIRE([_LT_PROG_FC])dnl
  67827. +AC_LANG_PUSH(Fortran)
  67828. +
  67829. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  67830. +_LT_TAGVAR(allow_undefined_flag, $1)=
  67831. +_LT_TAGVAR(always_export_symbols, $1)=no
  67832. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  67833. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  67834. +_LT_TAGVAR(hardcode_direct, $1)=no
  67835. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  67836. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  67837. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  67838. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  67839. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  67840. +_LT_TAGVAR(hardcode_automatic, $1)=no
  67841. +_LT_TAGVAR(inherit_rpath, $1)=no
  67842. +_LT_TAGVAR(module_cmds, $1)=
  67843. +_LT_TAGVAR(module_expsym_cmds, $1)=
  67844. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  67845. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  67846. +_LT_TAGVAR(no_undefined_flag, $1)=
  67847. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  67848. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  67849. +
  67850. +# Source file extension for fc test sources.
  67851. +ac_ext=${ac_fc_srcext-f}
  67852. +
  67853. +# Object file extension for compiled fc test sources.
  67854. +objext=o
  67855. +_LT_TAGVAR(objext, $1)=$objext
  67856. +
  67857. +# No sense in running all these tests if we already determined that
  67858. +# the FC compiler isn't working. Some variables (like enable_shared)
  67859. +# are currently assumed to apply to all compilers on this platform,
  67860. +# and will be corrupted by setting them based on a non-working compiler.
  67861. +if test "$_lt_disable_FC" != yes; then
  67862. + # Code to be used in simple compile tests
  67863. + lt_simple_compile_test_code="\
  67864. + subroutine t
  67865. + return
  67866. + end
  67867. +"
  67868. +
  67869. + # Code to be used in simple link tests
  67870. + lt_simple_link_test_code="\
  67871. + program t
  67872. + end
  67873. +"
  67874. +
  67875. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  67876. + _LT_TAG_COMPILER
  67877. +
  67878. + # save warnings/boilerplate of simple test code
  67879. + _LT_COMPILER_BOILERPLATE
  67880. + _LT_LINKER_BOILERPLATE
  67881. +
  67882. + # Allow CC to be a program name with arguments.
  67883. + lt_save_CC="$CC"
  67884. + lt_save_GCC=$GCC
  67885. + CC=${FC-"f95"}
  67886. + compiler=$CC
  67887. + GCC=$ac_cv_fc_compiler_gnu
  67888. +
  67889. + _LT_TAGVAR(compiler, $1)=$CC
  67890. + _LT_CC_BASENAME([$compiler])
  67891. +
  67892. + if test -n "$compiler"; then
  67893. + AC_MSG_CHECKING([if libtool supports shared libraries])
  67894. + AC_MSG_RESULT([$can_build_shared])
  67895. +
  67896. + AC_MSG_CHECKING([whether to build shared libraries])
  67897. + test "$can_build_shared" = "no" && enable_shared=no
  67898. +
  67899. + # On AIX, shared libraries and static libraries use the same namespace, and
  67900. + # are all built from PIC.
  67901. + case $host_os in
  67902. + aix3*)
  67903. + test "$enable_shared" = yes && enable_static=no
  67904. + if test -n "$RANLIB"; then
  67905. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  67906. + postinstall_cmds='$RANLIB $lib'
  67907. + fi
  67908. + ;;
  67909. + aix[[4-9]]*)
  67910. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  67911. + test "$enable_shared" = yes && enable_static=no
  67912. + fi
  67913. + ;;
  67914. + esac
  67915. + AC_MSG_RESULT([$enable_shared])
  67916. +
  67917. + AC_MSG_CHECKING([whether to build static libraries])
  67918. + # Make sure either enable_shared or enable_static is yes.
  67919. + test "$enable_shared" = yes || enable_static=yes
  67920. + AC_MSG_RESULT([$enable_static])
  67921. +
  67922. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  67923. + _LT_TAGVAR(LD, $1)="$LD"
  67924. +
  67925. + ## CAVEAT EMPTOR:
  67926. + ## There is no encapsulation within the following macros, do not change
  67927. + ## the running order or otherwise move them around unless you know exactly
  67928. + ## what you are doing...
  67929. + _LT_SYS_HIDDEN_LIBDEPS($1)
  67930. + _LT_COMPILER_PIC($1)
  67931. + _LT_COMPILER_C_O($1)
  67932. + _LT_COMPILER_FILE_LOCKS($1)
  67933. + _LT_LINKER_SHLIBS($1)
  67934. + _LT_SYS_DYNAMIC_LINKER($1)
  67935. + _LT_LINKER_HARDCODE_LIBPATH($1)
  67936. +
  67937. + _LT_CONFIG($1)
  67938. + fi # test -n "$compiler"
  67939. +
  67940. + GCC=$lt_save_GCC
  67941. + CC="$lt_save_CC"
  67942. +fi # test "$_lt_disable_FC" != yes
  67943. +
  67944. +AC_LANG_POP
  67945. +])# _LT_LANG_FC_CONFIG
  67946. +
  67947. +
  67948. +# _LT_LANG_GCJ_CONFIG([TAG])
  67949. +# --------------------------
  67950. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  67951. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  67952. +# to write the compiler configuration to `libtool'.
  67953. +m4_defun([_LT_LANG_GCJ_CONFIG],
  67954. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  67955. +AC_LANG_SAVE
  67956. +
  67957. +# Source file extension for Java test sources.
  67958. +ac_ext=java
  67959. +
  67960. +# Object file extension for compiled Java test sources.
  67961. +objext=o
  67962. +_LT_TAGVAR(objext, $1)=$objext
  67963. +
  67964. +# Code to be used in simple compile tests
  67965. +lt_simple_compile_test_code="class foo {}"
  67966. +
  67967. +# Code to be used in simple link tests
  67968. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  67969. +
  67970. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  67971. +_LT_TAG_COMPILER
  67972. +
  67973. +# save warnings/boilerplate of simple test code
  67974. +_LT_COMPILER_BOILERPLATE
  67975. +_LT_LINKER_BOILERPLATE
  67976. +
  67977. +# Allow CC to be a program name with arguments.
  67978. +lt_save_CC="$CC"
  67979. +lt_save_GCC=$GCC
  67980. +GCC=yes
  67981. +CC=${GCJ-"gcj"}
  67982. +compiler=$CC
  67983. +_LT_TAGVAR(compiler, $1)=$CC
  67984. +_LT_TAGVAR(LD, $1)="$LD"
  67985. +_LT_CC_BASENAME([$compiler])
  67986. +
  67987. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  67988. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  67989. +
  67990. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  67991. +
  67992. +## CAVEAT EMPTOR:
  67993. +## There is no encapsulation within the following macros, do not change
  67994. +## the running order or otherwise move them around unless you know exactly
  67995. +## what you are doing...
  67996. +if test -n "$compiler"; then
  67997. + _LT_COMPILER_NO_RTTI($1)
  67998. + _LT_COMPILER_PIC($1)
  67999. + _LT_COMPILER_C_O($1)
  68000. + _LT_COMPILER_FILE_LOCKS($1)
  68001. + _LT_LINKER_SHLIBS($1)
  68002. + _LT_LINKER_HARDCODE_LIBPATH($1)
  68003. +
  68004. + _LT_CONFIG($1)
  68005. +fi
  68006. +
  68007. +AC_LANG_RESTORE
  68008. +
  68009. +GCC=$lt_save_GCC
  68010. +CC="$lt_save_CC"
  68011. +])# _LT_LANG_GCJ_CONFIG
  68012. +
  68013. +
  68014. +# _LT_LANG_RC_CONFIG([TAG])
  68015. +# -------------------------
  68016. +# Ensure that the configuration variables for the Windows resource compiler
  68017. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  68018. +# to write the compiler configuration to `libtool'.
  68019. +m4_defun([_LT_LANG_RC_CONFIG],
  68020. +[AC_REQUIRE([LT_PROG_RC])dnl
  68021. +AC_LANG_SAVE
  68022. +
  68023. +# Source file extension for RC test sources.
  68024. +ac_ext=rc
  68025. +
  68026. +# Object file extension for compiled RC test sources.
  68027. +objext=o
  68028. +_LT_TAGVAR(objext, $1)=$objext
  68029. +
  68030. +# Code to be used in simple compile tests
  68031. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  68032. +
  68033. +# Code to be used in simple link tests
  68034. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  68035. +
  68036. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  68037. +_LT_TAG_COMPILER
  68038. +
  68039. +# save warnings/boilerplate of simple test code
  68040. +_LT_COMPILER_BOILERPLATE
  68041. +_LT_LINKER_BOILERPLATE
  68042. +
  68043. +# Allow CC to be a program name with arguments.
  68044. +lt_save_CC="$CC"
  68045. +lt_save_GCC=$GCC
  68046. +GCC=
  68047. +CC=${RC-"windres"}
  68048. +compiler=$CC
  68049. +_LT_TAGVAR(compiler, $1)=$CC
  68050. +_LT_CC_BASENAME([$compiler])
  68051. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  68052. +
  68053. +if test -n "$compiler"; then
  68054. + :
  68055. + _LT_CONFIG($1)
  68056. +fi
  68057. +
  68058. +GCC=$lt_save_GCC
  68059. +AC_LANG_RESTORE
  68060. +CC="$lt_save_CC"
  68061. +])# _LT_LANG_RC_CONFIG
  68062. +
  68063. +
  68064. +# LT_PROG_GCJ
  68065. +# -----------
  68066. +AC_DEFUN([LT_PROG_GCJ],
  68067. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  68068. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  68069. + [AC_CHECK_TOOL(GCJ, gcj,)
  68070. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  68071. + AC_SUBST(GCJFLAGS)])])[]dnl
  68072. +])
  68073. +
  68074. +# Old name:
  68075. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  68076. +dnl aclocal-1.4 backwards compatibility:
  68077. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  68078. +
  68079. +
  68080. +# LT_PROG_RC
  68081. +# ----------
  68082. +AC_DEFUN([LT_PROG_RC],
  68083. +[AC_CHECK_TOOL(RC, windres,)
  68084. +])
  68085. +
  68086. +# Old name:
  68087. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  68088. +dnl aclocal-1.4 backwards compatibility:
  68089. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  68090. +
  68091. +
  68092. +# _LT_DECL_EGREP
  68093. +# --------------
  68094. +# If we don't have a new enough Autoconf to choose the best grep
  68095. +# available, choose the one first in the user's PATH.
  68096. +m4_defun([_LT_DECL_EGREP],
  68097. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  68098. +AC_REQUIRE([AC_PROG_FGREP])dnl
  68099. +test -z "$GREP" && GREP=grep
  68100. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  68101. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  68102. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  68103. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  68104. +AC_SUBST([GREP])
  68105. +])
  68106. +
  68107. +
  68108. +# _LT_DECL_OBJDUMP
  68109. +# --------------
  68110. +# If we don't have a new enough Autoconf to choose the best objdump
  68111. +# available, choose the one first in the user's PATH.
  68112. +m4_defun([_LT_DECL_OBJDUMP],
  68113. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  68114. +test -z "$OBJDUMP" && OBJDUMP=objdump
  68115. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  68116. +AC_SUBST([OBJDUMP])
  68117. +])
  68118. +
  68119. +
  68120. +# _LT_DECL_SED
  68121. +# ------------
  68122. +# Check for a fully-functional sed program, that truncates
  68123. +# as few characters as possible. Prefer GNU sed if found.
  68124. +m4_defun([_LT_DECL_SED],
  68125. +[AC_PROG_SED
  68126. +test -z "$SED" && SED=sed
  68127. +Xsed="$SED -e 1s/^X//"
  68128. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  68129. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  68130. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  68131. +])# _LT_DECL_SED
  68132. +
  68133. +m4_ifndef([AC_PROG_SED], [
  68134. +############################################################
  68135. +# NOTE: This macro has been submitted for inclusion into #
  68136. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  68137. +# a released version of Autoconf we should remove this #
  68138. +# macro and use it instead. #
  68139. +############################################################
  68140. +
  68141. +m4_defun([AC_PROG_SED],
  68142. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  68143. +AC_CACHE_VAL(lt_cv_path_SED,
  68144. +[# Loop through the user's path and test for sed and gsed.
  68145. +# Then use that list of sed's as ones to test for truncation.
  68146. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  68147. +for as_dir in $PATH
  68148. +do
  68149. + IFS=$as_save_IFS
  68150. + test -z "$as_dir" && as_dir=.
  68151. + for lt_ac_prog in sed gsed; do
  68152. + for ac_exec_ext in '' $ac_executable_extensions; do
  68153. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  68154. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  68155. + fi
  68156. + done
  68157. + done
  68158. +done
  68159. +IFS=$as_save_IFS
  68160. +lt_ac_max=0
  68161. +lt_ac_count=0
  68162. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  68163. +# along with /bin/sed that truncates output.
  68164. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  68165. + test ! -f $lt_ac_sed && continue
  68166. + cat /dev/null > conftest.in
  68167. + lt_ac_count=0
  68168. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  68169. + # Check for GNU sed and select it if it is found.
  68170. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  68171. + lt_cv_path_SED=$lt_ac_sed
  68172. + break
  68173. + fi
  68174. + while true; do
  68175. + cat conftest.in conftest.in >conftest.tmp
  68176. + mv conftest.tmp conftest.in
  68177. + cp conftest.in conftest.nl
  68178. + echo >>conftest.nl
  68179. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  68180. + cmp -s conftest.out conftest.nl || break
  68181. + # 10000 chars as input seems more than enough
  68182. + test $lt_ac_count -gt 10 && break
  68183. + lt_ac_count=`expr $lt_ac_count + 1`
  68184. + if test $lt_ac_count -gt $lt_ac_max; then
  68185. + lt_ac_max=$lt_ac_count
  68186. + lt_cv_path_SED=$lt_ac_sed
  68187. + fi
  68188. + done
  68189. +done
  68190. +])
  68191. +SED=$lt_cv_path_SED
  68192. +AC_SUBST([SED])
  68193. +AC_MSG_RESULT([$SED])
  68194. +])#AC_PROG_SED
  68195. +])#m4_ifndef
  68196. +
  68197. +# Old name:
  68198. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  68199. +dnl aclocal-1.4 backwards compatibility:
  68200. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  68201. +
  68202. +
  68203. +# _LT_CHECK_SHELL_FEATURES
  68204. +# ------------------------
  68205. +# Find out whether the shell is Bourne or XSI compatible,
  68206. +# or has some other useful features.
  68207. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  68208. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  68209. +# Try some XSI features
  68210. +xsi_shell=no
  68211. +( _lt_dummy="a/b/c"
  68212. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  68213. + = c,a/b,, \
  68214. + && eval 'test $(( 1 + 1 )) -eq 2 \
  68215. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  68216. + && xsi_shell=yes
  68217. +AC_MSG_RESULT([$xsi_shell])
  68218. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  68219. +
  68220. +AC_MSG_CHECKING([whether the shell understands "+="])
  68221. +lt_shell_append=no
  68222. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  68223. + >/dev/null 2>&1 \
  68224. + && lt_shell_append=yes
  68225. +AC_MSG_RESULT([$lt_shell_append])
  68226. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  68227. +
  68228. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  68229. + lt_unset=unset
  68230. +else
  68231. + lt_unset=false
  68232. +fi
  68233. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  68234. +
  68235. +# test EBCDIC or ASCII
  68236. +case `echo X|tr X '\101'` in
  68237. + A) # ASCII based system
  68238. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  68239. + lt_SP2NL='tr \040 \012'
  68240. + lt_NL2SP='tr \015\012 \040\040'
  68241. + ;;
  68242. + *) # EBCDIC based system
  68243. + lt_SP2NL='tr \100 \n'
  68244. + lt_NL2SP='tr \r\n \100\100'
  68245. + ;;
  68246. +esac
  68247. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  68248. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  68249. +])# _LT_CHECK_SHELL_FEATURES
  68250. +
  68251. +
  68252. +# _LT_PROG_XSI_SHELLFNS
  68253. +# ---------------------
  68254. +# Bourne and XSI compatible variants of some useful shell functions.
  68255. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  68256. +[case $xsi_shell in
  68257. + yes)
  68258. + cat << \_LT_EOF >> "$cfgfile"
  68259. +
  68260. +# func_dirname file append nondir_replacement
  68261. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  68262. +# otherwise set result to NONDIR_REPLACEMENT.
  68263. +func_dirname ()
  68264. +{
  68265. + case ${1} in
  68266. + */*) func_dirname_result="${1%/*}${2}" ;;
  68267. + * ) func_dirname_result="${3}" ;;
  68268. + esac
  68269. +}
  68270. +
  68271. +# func_basename file
  68272. +func_basename ()
  68273. +{
  68274. + func_basename_result="${1##*/}"
  68275. +}
  68276. +
  68277. +# func_dirname_and_basename file append nondir_replacement
  68278. +# perform func_basename and func_dirname in a single function
  68279. +# call:
  68280. +# dirname: Compute the dirname of FILE. If nonempty,
  68281. +# add APPEND to the result, otherwise set result
  68282. +# to NONDIR_REPLACEMENT.
  68283. +# value returned in "$func_dirname_result"
  68284. +# basename: Compute filename of FILE.
  68285. +# value retuned in "$func_basename_result"
  68286. +# Implementation must be kept synchronized with func_dirname
  68287. +# and func_basename. For efficiency, we do not delegate to
  68288. +# those functions but instead duplicate the functionality here.
  68289. +func_dirname_and_basename ()
  68290. +{
  68291. + case ${1} in
  68292. + */*) func_dirname_result="${1%/*}${2}" ;;
  68293. + * ) func_dirname_result="${3}" ;;
  68294. + esac
  68295. + func_basename_result="${1##*/}"
  68296. +}
  68297. +
  68298. +# func_stripname prefix suffix name
  68299. +# strip PREFIX and SUFFIX off of NAME.
  68300. +# PREFIX and SUFFIX must not contain globbing or regex special
  68301. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  68302. +# dot (in which case that matches only a dot).
  68303. +func_stripname ()
  68304. +{
  68305. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  68306. + # positional parameters, so assign one to ordinary parameter first.
  68307. + func_stripname_result=${3}
  68308. + func_stripname_result=${func_stripname_result#"${1}"}
  68309. + func_stripname_result=${func_stripname_result%"${2}"}
  68310. +}
  68311. +
  68312. +# func_opt_split
  68313. +func_opt_split ()
  68314. +{
  68315. + func_opt_split_opt=${1%%=*}
  68316. + func_opt_split_arg=${1#*=}
  68317. +}
  68318. +
  68319. +# func_lo2o object
  68320. +func_lo2o ()
  68321. +{
  68322. + case ${1} in
  68323. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  68324. + *) func_lo2o_result=${1} ;;
  68325. + esac
  68326. +}
  68327. +
  68328. +# func_xform libobj-or-source
  68329. +func_xform ()
  68330. +{
  68331. + func_xform_result=${1%.*}.lo
  68332. +}
  68333. +
  68334. +# func_arith arithmetic-term...
  68335. +func_arith ()
  68336. +{
  68337. + func_arith_result=$(( $[*] ))
  68338. +}
  68339. +
  68340. +# func_len string
  68341. +# STRING may not start with a hyphen.
  68342. +func_len ()
  68343. +{
  68344. + func_len_result=${#1}
  68345. +}
  68346. +
  68347. +_LT_EOF
  68348. + ;;
  68349. + *) # Bourne compatible functions.
  68350. + cat << \_LT_EOF >> "$cfgfile"
  68351. +
  68352. +# func_dirname file append nondir_replacement
  68353. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  68354. +# otherwise set result to NONDIR_REPLACEMENT.
  68355. +func_dirname ()
  68356. +{
  68357. + # Extract subdirectory from the argument.
  68358. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  68359. + if test "X$func_dirname_result" = "X${1}"; then
  68360. + func_dirname_result="${3}"
  68361. + else
  68362. + func_dirname_result="$func_dirname_result${2}"
  68363. + fi
  68364. +}
  68365. +
  68366. +# func_basename file
  68367. +func_basename ()
  68368. +{
  68369. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  68370. +}
  68371. +
  68372. +dnl func_dirname_and_basename
  68373. +dnl A portable version of this function is already defined in general.m4sh
  68374. +dnl so there is no need for it here.
  68375. +
  68376. +# func_stripname prefix suffix name
  68377. +# strip PREFIX and SUFFIX off of NAME.
  68378. +# PREFIX and SUFFIX must not contain globbing or regex special
  68379. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  68380. +# dot (in which case that matches only a dot).
  68381. +# func_strip_suffix prefix name
  68382. +func_stripname ()
  68383. +{
  68384. + case ${2} in
  68385. + .*) func_stripname_result=`$ECHO "X${3}" \
  68386. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  68387. + *) func_stripname_result=`$ECHO "X${3}" \
  68388. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  68389. + esac
  68390. +}
  68391. +
  68392. +# sed scripts:
  68393. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  68394. +my_sed_long_arg='1s/^-[[^=]]*=//'
  68395. +
  68396. +# func_opt_split
  68397. +func_opt_split ()
  68398. +{
  68399. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  68400. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  68401. +}
  68402. +
  68403. +# func_lo2o object
  68404. +func_lo2o ()
  68405. +{
  68406. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  68407. +}
  68408. +
  68409. +# func_xform libobj-or-source
  68410. +func_xform ()
  68411. +{
  68412. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  68413. +}
  68414. +
  68415. +# func_arith arithmetic-term...
  68416. +func_arith ()
  68417. +{
  68418. + func_arith_result=`expr "$[@]"`
  68419. +}
  68420. +
  68421. +# func_len string
  68422. +# STRING may not start with a hyphen.
  68423. +func_len ()
  68424. +{
  68425. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  68426. +}
  68427. +
  68428. +_LT_EOF
  68429. +esac
  68430. +
  68431. +case $lt_shell_append in
  68432. + yes)
  68433. + cat << \_LT_EOF >> "$cfgfile"
  68434. +
  68435. +# func_append var value
  68436. +# Append VALUE to the end of shell variable VAR.
  68437. +func_append ()
  68438. +{
  68439. + eval "$[1]+=\$[2]"
  68440. +}
  68441. +_LT_EOF
  68442. + ;;
  68443. + *)
  68444. + cat << \_LT_EOF >> "$cfgfile"
  68445. +
  68446. +# func_append var value
  68447. +# Append VALUE to the end of shell variable VAR.
  68448. +func_append ()
  68449. +{
  68450. + eval "$[1]=\$$[1]\$[2]"
  68451. +}
  68452. +
  68453. +_LT_EOF
  68454. + ;;
  68455. + esac
  68456. +])
  68457. diff -Nur libnet-1.1.5.orig/m4/lt~obsolete.m4 libnet-1.1.5/m4/lt~obsolete.m4
  68458. --- libnet-1.1.5.orig/m4/lt~obsolete.m4 1970-01-01 01:00:00.000000000 +0100
  68459. +++ libnet-1.1.5/m4/lt~obsolete.m4 2011-02-24 19:45:49.303552700 +0100
  68460. @@ -0,0 +1,92 @@
  68461. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  68462. +#
  68463. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  68464. +# Written by Scott James Remnant, 2004.
  68465. +#
  68466. +# This file is free software; the Free Software Foundation gives
  68467. +# unlimited permission to copy and/or distribute it, with or without
  68468. +# modifications, as long as this notice is preserved.
  68469. +
  68470. +# serial 4 lt~obsolete.m4
  68471. +
  68472. +# These exist entirely to fool aclocal when bootstrapping libtool.
  68473. +#
  68474. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  68475. +# which have later been changed to m4_define as they aren't part of the
  68476. +# exported API, or moved to Autoconf or Automake where they belong.
  68477. +#
  68478. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  68479. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  68480. +# using a macro with the same name in our local m4/libtool.m4 it'll
  68481. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  68482. +# and doesn't know about Autoconf macros at all.)
  68483. +#
  68484. +# So we provide this file, which has a silly filename so it's always
  68485. +# included after everything else. This provides aclocal with the
  68486. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  68487. +# because those macros already exist, or will be overwritten later.
  68488. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  68489. +#
  68490. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  68491. +# Yes, that means every name once taken will need to remain here until
  68492. +# we give up compatibility with versions before 1.7, at which point
  68493. +# we need to keep only those names which we still refer to.
  68494. +
  68495. +# This is to help aclocal find these macros, as it can't see m4_define.
  68496. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  68497. +
  68498. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  68499. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  68500. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  68501. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  68502. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  68503. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  68504. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  68505. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  68506. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  68507. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  68508. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  68509. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  68510. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  68511. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  68512. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  68513. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  68514. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  68515. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  68516. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  68517. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  68518. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  68519. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  68520. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  68521. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  68522. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  68523. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  68524. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  68525. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  68526. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  68527. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  68528. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  68529. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  68530. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  68531. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  68532. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  68533. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  68534. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  68535. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  68536. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  68537. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  68538. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  68539. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  68540. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  68541. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  68542. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  68543. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  68544. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  68545. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  68546. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  68547. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  68548. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  68549. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  68550. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  68551. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  68552. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  68553. diff -Nur libnet-1.1.5.orig/m4/ltoptions.m4 libnet-1.1.5/m4/ltoptions.m4
  68554. --- libnet-1.1.5.orig/m4/ltoptions.m4 1970-01-01 01:00:00.000000000 +0100
  68555. +++ libnet-1.1.5/m4/ltoptions.m4 2011-02-24 19:45:49.123551829 +0100
  68556. @@ -0,0 +1,368 @@
  68557. +# Helper functions for option handling. -*- Autoconf -*-
  68558. +#
  68559. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  68560. +# Written by Gary V. Vaughan, 2004
  68561. +#
  68562. +# This file is free software; the Free Software Foundation gives
  68563. +# unlimited permission to copy and/or distribute it, with or without
  68564. +# modifications, as long as this notice is preserved.
  68565. +
  68566. +# serial 6 ltoptions.m4
  68567. +
  68568. +# This is to help aclocal find these macros, as it can't see m4_define.
  68569. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  68570. +
  68571. +
  68572. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  68573. +# ------------------------------------------
  68574. +m4_define([_LT_MANGLE_OPTION],
  68575. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  68576. +
  68577. +
  68578. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  68579. +# ---------------------------------------
  68580. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  68581. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  68582. +# saved as a flag.
  68583. +m4_define([_LT_SET_OPTION],
  68584. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  68585. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  68586. + _LT_MANGLE_DEFUN([$1], [$2]),
  68587. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  68588. +])
  68589. +
  68590. +
  68591. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  68592. +# ------------------------------------------------------------
  68593. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  68594. +m4_define([_LT_IF_OPTION],
  68595. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  68596. +
  68597. +
  68598. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  68599. +# -------------------------------------------------------
  68600. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  68601. +# are set.
  68602. +m4_define([_LT_UNLESS_OPTIONS],
  68603. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  68604. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  68605. + [m4_define([$0_found])])])[]dnl
  68606. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  68607. +])[]dnl
  68608. +])
  68609. +
  68610. +
  68611. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  68612. +# ----------------------------------------
  68613. +# OPTION-LIST is a space-separated list of Libtool options associated
  68614. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  68615. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  68616. +# the unknown option and exit.
  68617. +m4_defun([_LT_SET_OPTIONS],
  68618. +[# Set options
  68619. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  68620. + [_LT_SET_OPTION([$1], _LT_Option)])
  68621. +
  68622. +m4_if([$1],[LT_INIT],[
  68623. + dnl
  68624. + dnl Simply set some default values (i.e off) if boolean options were not
  68625. + dnl specified:
  68626. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  68627. + ])
  68628. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  68629. + ])
  68630. + dnl
  68631. + dnl If no reference was made to various pairs of opposing options, then
  68632. + dnl we run the default mode handler for the pair. For example, if neither
  68633. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  68634. + dnl archives by default:
  68635. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  68636. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  68637. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  68638. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  68639. + [_LT_ENABLE_FAST_INSTALL])
  68640. + ])
  68641. +])# _LT_SET_OPTIONS
  68642. +
  68643. +
  68644. +## --------------------------------- ##
  68645. +## Macros to handle LT_INIT options. ##
  68646. +## --------------------------------- ##
  68647. +
  68648. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  68649. +# -----------------------------------------
  68650. +m4_define([_LT_MANGLE_DEFUN],
  68651. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  68652. +
  68653. +
  68654. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  68655. +# -----------------------------------------------
  68656. +m4_define([LT_OPTION_DEFINE],
  68657. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  68658. +])# LT_OPTION_DEFINE
  68659. +
  68660. +
  68661. +# dlopen
  68662. +# ------
  68663. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  68664. +])
  68665. +
  68666. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  68667. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  68668. +AC_DIAGNOSE([obsolete],
  68669. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  68670. +put the `dlopen' option into LT_INIT's first parameter.])
  68671. +])
  68672. +
  68673. +dnl aclocal-1.4 backwards compatibility:
  68674. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  68675. +
  68676. +
  68677. +# win32-dll
  68678. +# ---------
  68679. +# Declare package support for building win32 dll's.
  68680. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  68681. +[enable_win32_dll=yes
  68682. +
  68683. +case $host in
  68684. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  68685. + AC_CHECK_TOOL(AS, as, false)
  68686. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  68687. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  68688. + ;;
  68689. +esac
  68690. +
  68691. +test -z "$AS" && AS=as
  68692. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  68693. +
  68694. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  68695. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  68696. +
  68697. +test -z "$OBJDUMP" && OBJDUMP=objdump
  68698. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  68699. +])# win32-dll
  68700. +
  68701. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  68702. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  68703. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  68704. +AC_DIAGNOSE([obsolete],
  68705. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  68706. +put the `win32-dll' option into LT_INIT's first parameter.])
  68707. +])
  68708. +
  68709. +dnl aclocal-1.4 backwards compatibility:
  68710. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  68711. +
  68712. +
  68713. +# _LT_ENABLE_SHARED([DEFAULT])
  68714. +# ----------------------------
  68715. +# implement the --enable-shared flag, and supports the `shared' and
  68716. +# `disable-shared' LT_INIT options.
  68717. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  68718. +m4_define([_LT_ENABLE_SHARED],
  68719. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  68720. +AC_ARG_ENABLE([shared],
  68721. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  68722. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  68723. + [p=${PACKAGE-default}
  68724. + case $enableval in
  68725. + yes) enable_shared=yes ;;
  68726. + no) enable_shared=no ;;
  68727. + *)
  68728. + enable_shared=no
  68729. + # Look at the argument we got. We use all the common list separators.
  68730. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  68731. + for pkg in $enableval; do
  68732. + IFS="$lt_save_ifs"
  68733. + if test "X$pkg" = "X$p"; then
  68734. + enable_shared=yes
  68735. + fi
  68736. + done
  68737. + IFS="$lt_save_ifs"
  68738. + ;;
  68739. + esac],
  68740. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  68741. +
  68742. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  68743. + [Whether or not to build shared libraries])
  68744. +])# _LT_ENABLE_SHARED
  68745. +
  68746. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  68747. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  68748. +
  68749. +# Old names:
  68750. +AC_DEFUN([AC_ENABLE_SHARED],
  68751. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  68752. +])
  68753. +
  68754. +AC_DEFUN([AC_DISABLE_SHARED],
  68755. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  68756. +])
  68757. +
  68758. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  68759. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  68760. +
  68761. +dnl aclocal-1.4 backwards compatibility:
  68762. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  68763. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  68764. +
  68765. +
  68766. +
  68767. +# _LT_ENABLE_STATIC([DEFAULT])
  68768. +# ----------------------------
  68769. +# implement the --enable-static flag, and support the `static' and
  68770. +# `disable-static' LT_INIT options.
  68771. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  68772. +m4_define([_LT_ENABLE_STATIC],
  68773. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  68774. +AC_ARG_ENABLE([static],
  68775. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  68776. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  68777. + [p=${PACKAGE-default}
  68778. + case $enableval in
  68779. + yes) enable_static=yes ;;
  68780. + no) enable_static=no ;;
  68781. + *)
  68782. + enable_static=no
  68783. + # Look at the argument we got. We use all the common list separators.
  68784. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  68785. + for pkg in $enableval; do
  68786. + IFS="$lt_save_ifs"
  68787. + if test "X$pkg" = "X$p"; then
  68788. + enable_static=yes
  68789. + fi
  68790. + done
  68791. + IFS="$lt_save_ifs"
  68792. + ;;
  68793. + esac],
  68794. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  68795. +
  68796. + _LT_DECL([build_old_libs], [enable_static], [0],
  68797. + [Whether or not to build static libraries])
  68798. +])# _LT_ENABLE_STATIC
  68799. +
  68800. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  68801. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  68802. +
  68803. +# Old names:
  68804. +AC_DEFUN([AC_ENABLE_STATIC],
  68805. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  68806. +])
  68807. +
  68808. +AC_DEFUN([AC_DISABLE_STATIC],
  68809. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  68810. +])
  68811. +
  68812. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  68813. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  68814. +
  68815. +dnl aclocal-1.4 backwards compatibility:
  68816. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  68817. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  68818. +
  68819. +
  68820. +
  68821. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  68822. +# ----------------------------------
  68823. +# implement the --enable-fast-install flag, and support the `fast-install'
  68824. +# and `disable-fast-install' LT_INIT options.
  68825. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  68826. +m4_define([_LT_ENABLE_FAST_INSTALL],
  68827. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  68828. +AC_ARG_ENABLE([fast-install],
  68829. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  68830. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  68831. + [p=${PACKAGE-default}
  68832. + case $enableval in
  68833. + yes) enable_fast_install=yes ;;
  68834. + no) enable_fast_install=no ;;
  68835. + *)
  68836. + enable_fast_install=no
  68837. + # Look at the argument we got. We use all the common list separators.
  68838. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  68839. + for pkg in $enableval; do
  68840. + IFS="$lt_save_ifs"
  68841. + if test "X$pkg" = "X$p"; then
  68842. + enable_fast_install=yes
  68843. + fi
  68844. + done
  68845. + IFS="$lt_save_ifs"
  68846. + ;;
  68847. + esac],
  68848. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  68849. +
  68850. +_LT_DECL([fast_install], [enable_fast_install], [0],
  68851. + [Whether or not to optimize for fast installation])dnl
  68852. +])# _LT_ENABLE_FAST_INSTALL
  68853. +
  68854. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  68855. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  68856. +
  68857. +# Old names:
  68858. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  68859. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  68860. +AC_DIAGNOSE([obsolete],
  68861. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  68862. +the `fast-install' option into LT_INIT's first parameter.])
  68863. +])
  68864. +
  68865. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  68866. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  68867. +AC_DIAGNOSE([obsolete],
  68868. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  68869. +the `disable-fast-install' option into LT_INIT's first parameter.])
  68870. +])
  68871. +
  68872. +dnl aclocal-1.4 backwards compatibility:
  68873. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  68874. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  68875. +
  68876. +
  68877. +# _LT_WITH_PIC([MODE])
  68878. +# --------------------
  68879. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  68880. +# LT_INIT options.
  68881. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  68882. +m4_define([_LT_WITH_PIC],
  68883. +[AC_ARG_WITH([pic],
  68884. + [AS_HELP_STRING([--with-pic],
  68885. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  68886. + [pic_mode="$withval"],
  68887. + [pic_mode=default])
  68888. +
  68889. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  68890. +
  68891. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  68892. +])# _LT_WITH_PIC
  68893. +
  68894. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  68895. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  68896. +
  68897. +# Old name:
  68898. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  68899. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  68900. +AC_DIAGNOSE([obsolete],
  68901. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  68902. +put the `pic-only' option into LT_INIT's first parameter.])
  68903. +])
  68904. +
  68905. +dnl aclocal-1.4 backwards compatibility:
  68906. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  68907. +
  68908. +## ----------------- ##
  68909. +## LTDL_INIT Options ##
  68910. +## ----------------- ##
  68911. +
  68912. +m4_define([_LTDL_MODE], [])
  68913. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  68914. + [m4_define([_LTDL_MODE], [nonrecursive])])
  68915. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  68916. + [m4_define([_LTDL_MODE], [recursive])])
  68917. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  68918. + [m4_define([_LTDL_MODE], [subproject])])
  68919. +
  68920. +m4_define([_LTDL_TYPE], [])
  68921. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  68922. + [m4_define([_LTDL_TYPE], [installable])])
  68923. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  68924. + [m4_define([_LTDL_TYPE], [convenience])])
  68925. diff -Nur libnet-1.1.5.orig/m4/ltsugar.m4 libnet-1.1.5/m4/ltsugar.m4
  68926. --- libnet-1.1.5.orig/m4/ltsugar.m4 1970-01-01 01:00:00.000000000 +0100
  68927. +++ libnet-1.1.5/m4/ltsugar.m4 2011-02-24 19:45:49.173551764 +0100
  68928. @@ -0,0 +1,123 @@
  68929. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  68930. +#
  68931. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  68932. +# Written by Gary V. Vaughan, 2004
  68933. +#
  68934. +# This file is free software; the Free Software Foundation gives
  68935. +# unlimited permission to copy and/or distribute it, with or without
  68936. +# modifications, as long as this notice is preserved.
  68937. +
  68938. +# serial 6 ltsugar.m4
  68939. +
  68940. +# This is to help aclocal find these macros, as it can't see m4_define.
  68941. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  68942. +
  68943. +
  68944. +# lt_join(SEP, ARG1, [ARG2...])
  68945. +# -----------------------------
  68946. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  68947. +# associated separator.
  68948. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  68949. +# versions in m4sugar had bugs.
  68950. +m4_define([lt_join],
  68951. +[m4_if([$#], [1], [],
  68952. + [$#], [2], [[$2]],
  68953. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  68954. +m4_define([_lt_join],
  68955. +[m4_if([$#$2], [2], [],
  68956. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  68957. +
  68958. +
  68959. +# lt_car(LIST)
  68960. +# lt_cdr(LIST)
  68961. +# ------------
  68962. +# Manipulate m4 lists.
  68963. +# These macros are necessary as long as will still need to support
  68964. +# Autoconf-2.59 which quotes differently.
  68965. +m4_define([lt_car], [[$1]])
  68966. +m4_define([lt_cdr],
  68967. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  68968. + [$#], 1, [],
  68969. + [m4_dquote(m4_shift($@))])])
  68970. +m4_define([lt_unquote], $1)
  68971. +
  68972. +
  68973. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  68974. +# ------------------------------------------
  68975. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  68976. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  68977. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  68978. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  68979. +# than defined and empty).
  68980. +#
  68981. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  68982. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  68983. +m4_define([lt_append],
  68984. +[m4_define([$1],
  68985. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  68986. +
  68987. +
  68988. +
  68989. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  68990. +# ----------------------------------------------------------
  68991. +# Produce a SEP delimited list of all paired combinations of elements of
  68992. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  68993. +# has the form PREFIXmINFIXSUFFIXn.
  68994. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  68995. +m4_define([lt_combine],
  68996. +[m4_if(m4_eval([$# > 3]), [1],
  68997. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  68998. +[[m4_foreach([_Lt_prefix], [$2],
  68999. + [m4_foreach([_Lt_suffix],
  69000. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  69001. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  69002. +
  69003. +
  69004. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  69005. +# -----------------------------------------------------------------------
  69006. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  69007. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  69008. +m4_define([lt_if_append_uniq],
  69009. +[m4_ifdef([$1],
  69010. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  69011. + [lt_append([$1], [$2], [$3])$4],
  69012. + [$5])],
  69013. + [lt_append([$1], [$2], [$3])$4])])
  69014. +
  69015. +
  69016. +# lt_dict_add(DICT, KEY, VALUE)
  69017. +# -----------------------------
  69018. +m4_define([lt_dict_add],
  69019. +[m4_define([$1($2)], [$3])])
  69020. +
  69021. +
  69022. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  69023. +# --------------------------------------------
  69024. +m4_define([lt_dict_add_subkey],
  69025. +[m4_define([$1($2:$3)], [$4])])
  69026. +
  69027. +
  69028. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  69029. +# ----------------------------------
  69030. +m4_define([lt_dict_fetch],
  69031. +[m4_ifval([$3],
  69032. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  69033. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  69034. +
  69035. +
  69036. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  69037. +# -----------------------------------------------------------------
  69038. +m4_define([lt_if_dict_fetch],
  69039. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  69040. + [$5],
  69041. + [$6])])
  69042. +
  69043. +
  69044. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  69045. +# --------------------------------------------------------------
  69046. +m4_define([lt_dict_filter],
  69047. +[m4_if([$5], [], [],
  69048. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  69049. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  69050. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  69051. +])
  69052. diff -Nur libnet-1.1.5.orig/m4/ltversion.m4 libnet-1.1.5/m4/ltversion.m4
  69053. --- libnet-1.1.5.orig/m4/ltversion.m4 1970-01-01 01:00:00.000000000 +0100
  69054. +++ libnet-1.1.5/m4/ltversion.m4 2011-02-24 19:45:49.253558542 +0100
  69055. @@ -0,0 +1,23 @@
  69056. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  69057. +#
  69058. +# Copyright (C) 2004 Free Software Foundation, Inc.
  69059. +# Written by Scott James Remnant, 2004
  69060. +#
  69061. +# This file is free software; the Free Software Foundation gives
  69062. +# unlimited permission to copy and/or distribute it, with or without
  69063. +# modifications, as long as this notice is preserved.
  69064. +
  69065. +# Generated from ltversion.in.
  69066. +
  69067. +# serial 3017 ltversion.m4
  69068. +# This file is part of GNU Libtool
  69069. +
  69070. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  69071. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  69072. +
  69073. +AC_DEFUN([LTVERSION_VERSION],
  69074. +[macro_version='2.2.6b'
  69075. +macro_revision='1.3017'
  69076. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  69077. +_LT_DECL(, macro_revision, 0)
  69078. +])
  69079. diff -Nur libnet-1.1.5.orig/Makefile.in libnet-1.1.5/Makefile.in
  69080. --- libnet-1.1.5.orig/Makefile.in 2010-11-09 01:48:07.000000000 +0100
  69081. +++ libnet-1.1.5/Makefile.in 2011-02-24 19:45:54.783552975 +0100
  69082. @@ -1,8 +1,9 @@
  69083. -# Makefile.in generated by automake 1.10 from Makefile.am.
  69084. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  69085. # @configure_input@
  69086. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  69087. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  69088. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  69089. +# Inc.
  69090. # This Makefile.in is free software; the Free Software Foundation
  69091. # gives unlimited permission to copy and/or distribute it,
  69092. # with or without modifications, as long as this notice is preserved.
  69093. @@ -31,8 +32,9 @@
  69094. VPATH = @srcdir@
  69095. pkgdatadir = $(datadir)/@PACKAGE@
  69096. -pkglibdir = $(libdir)/@PACKAGE@
  69097. pkgincludedir = $(includedir)/@PACKAGE@
  69098. +pkglibdir = $(libdir)/@PACKAGE@
  69099. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  69100. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  69101. install_sh_DATA = $(install_sh) -c -m 644
  69102. install_sh_PROGRAM = $(install_sh) -c
  69103. @@ -64,8 +66,29 @@
  69104. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  69105. CONFIG_HEADER = $(top_builddir)/include/config.h
  69106. CONFIG_CLEAN_FILES = version.h libnet-config
  69107. +CONFIG_CLEAN_VPATH_FILES =
  69108. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  69109. +am__vpath_adj = case $$p in \
  69110. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  69111. + *) f=$$p;; \
  69112. + esac;
  69113. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  69114. +am__install_max = 40
  69115. +am__nobase_strip_setup = \
  69116. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  69117. +am__nobase_strip = \
  69118. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  69119. +am__nobase_list = $(am__nobase_strip_setup); \
  69120. + for p in $$list; do echo "$$p $$p"; done | \
  69121. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  69122. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  69123. + if (++n[$$2] == $(am__install_max)) \
  69124. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  69125. + END { for (dir in files) print dir, files[dir] }'
  69126. +am__base_list = \
  69127. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  69128. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  69129. am__installdirs = "$(DESTDIR)$(bindir)"
  69130. -binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
  69131. SCRIPTS = $(bin_SCRIPTS)
  69132. depcomp =
  69133. am__depfiles_maybe =
  69134. @@ -80,6 +103,9 @@
  69135. ps-recursive uninstall-recursive
  69136. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  69137. distclean-recursive maintainer-clean-recursive
  69138. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  69139. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  69140. + distdir dist dist-all distcheck
  69141. ETAGS = etags
  69142. CTAGS = ctags
  69143. DIST_SUBDIRS = $(SUBDIRS)
  69144. @@ -87,9 +113,34 @@
  69145. distdir = $(PACKAGE)-$(VERSION)
  69146. top_distdir = $(distdir)
  69147. am__remove_distdir = \
  69148. - { test ! -d $(distdir) \
  69149. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  69150. - && rm -fr $(distdir); }; }
  69151. + { test ! -d "$(distdir)" \
  69152. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  69153. + && rm -fr "$(distdir)"; }; }
  69154. +am__relativize = \
  69155. + dir0=`pwd`; \
  69156. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  69157. + sed_rest='s,^[^/]*/*,,'; \
  69158. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  69159. + sed_butlast='s,/*[^/]*$$,,'; \
  69160. + while test -n "$$dir1"; do \
  69161. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  69162. + if test "$$first" != "."; then \
  69163. + if test "$$first" = ".."; then \
  69164. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  69165. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  69166. + else \
  69167. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  69168. + if test "$$first2" = "$$first"; then \
  69169. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  69170. + else \
  69171. + dir2="../$$dir2"; \
  69172. + fi; \
  69173. + dir0="$$dir0"/"$$first"; \
  69174. + fi; \
  69175. + fi; \
  69176. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  69177. + done; \
  69178. + reldir="$$dir2"
  69179. DIST_ARCHIVES = $(distdir).tar.gz
  69180. GZIP_ENV = --best
  69181. distuninstallcheck_listfiles = find . -type f -print
  69182. @@ -107,22 +158,18 @@
  69183. CFLAGS = @CFLAGS@
  69184. CPP = @CPP@
  69185. CPPFLAGS = @CPPFLAGS@
  69186. -CXX = @CXX@
  69187. -CXXCPP = @CXXCPP@
  69188. -CXXDEPMODE = @CXXDEPMODE@
  69189. -CXXFLAGS = @CXXFLAGS@
  69190. CYGPATH_W = @CYGPATH_W@
  69191. DEFS = @DEFS@
  69192. DEPDIR = @DEPDIR@
  69193. -ECHO = @ECHO@
  69194. +DSYMUTIL = @DSYMUTIL@
  69195. +DUMPBIN = @DUMPBIN@
  69196. ECHO_C = @ECHO_C@
  69197. ECHO_N = @ECHO_N@
  69198. ECHO_T = @ECHO_T@
  69199. EGREP = @EGREP@
  69200. ENDIANESS = @ENDIANESS@
  69201. EXEEXT = @EXEEXT@
  69202. -F77 = @F77@
  69203. -FFLAGS = @FFLAGS@
  69204. +FGREP = @FGREP@
  69205. GREP = @GREP@
  69206. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  69207. INSTALL = @INSTALL@
  69208. @@ -130,6 +177,7 @@
  69209. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  69210. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  69211. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  69212. +LD = @LD@
  69213. LDFLAGS = @LDFLAGS@
  69214. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  69215. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  69216. @@ -137,17 +185,24 @@
  69217. LIBOBJS = @LIBOBJS@
  69218. LIBS = @LIBS@
  69219. LIBTOOL = @LIBTOOL@
  69220. +LIPO = @LIPO@
  69221. LN_S = @LN_S@
  69222. LTLIBOBJS = @LTLIBOBJS@
  69223. MAINT = @MAINT@
  69224. MAKEINFO = @MAKEINFO@
  69225. MKDIR_P = @MKDIR_P@
  69226. +NM = @NM@
  69227. +NMEDIT = @NMEDIT@
  69228. +OBJDUMP = @OBJDUMP@
  69229. OBJEXT = @OBJEXT@
  69230. +OTOOL = @OTOOL@
  69231. +OTOOL64 = @OTOOL64@
  69232. PACKAGE = @PACKAGE@
  69233. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  69234. PACKAGE_NAME = @PACKAGE_NAME@
  69235. PACKAGE_STRING = @PACKAGE_STRING@
  69236. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  69237. +PACKAGE_URL = @PACKAGE_URL@
  69238. PACKAGE_VERSION = @PACKAGE_VERSION@
  69239. PATH_SEPARATOR = @PATH_SEPARATOR@
  69240. RANLIB = @RANLIB@
  69241. @@ -161,8 +216,7 @@
  69242. abs_top_builddir = @abs_top_builddir@
  69243. abs_top_srcdir = @abs_top_srcdir@
  69244. ac_ct_CC = @ac_ct_CC@
  69245. -ac_ct_CXX = @ac_ct_CXX@
  69246. -ac_ct_F77 = @ac_ct_F77@
  69247. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  69248. am__include = @am__include@
  69249. am__leading_dot = @am__leading_dot@
  69250. am__quote = @am__quote@
  69251. @@ -193,6 +247,7 @@
  69252. libexecdir = @libexecdir@
  69253. localedir = @localedir@
  69254. localstatedir = @localstatedir@
  69255. +lt_ECHO = @lt_ECHO@
  69256. mandir = @mandir@
  69257. mkdir_p = @mkdir_p@
  69258. oldincludedir = @oldincludedir@
  69259. @@ -209,6 +264,7 @@
  69260. target_cpu = @target_cpu@
  69261. target_os = @target_os@
  69262. target_vendor = @target_vendor@
  69263. +top_build_prefix = @top_build_prefix@
  69264. top_builddir = @top_builddir@
  69265. top_srcdir = @top_srcdir@
  69266. AUTOMAKE_OPTIONS = foreign no-dependencies
  69267. @@ -227,15 +283,15 @@
  69268. @for dep in $?; do \
  69269. case '$(am__configure_deps)' in \
  69270. *$$dep*) \
  69271. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  69272. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  69273. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  69274. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  69275. && exit 0; \
  69276. exit 1;; \
  69277. esac; \
  69278. done; \
  69279. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  69280. - cd $(top_srcdir) && \
  69281. - $(AUTOMAKE) --foreign Makefile
  69282. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  69283. + $(am__cd) $(top_srcdir) && \
  69284. + $(AUTOMAKE) --foreign Makefile
  69285. .PRECIOUS: Makefile
  69286. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  69287. @case '$?' in \
  69288. @@ -251,9 +307,10 @@
  69289. $(SHELL) ./config.status --recheck
  69290. $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  69291. - cd $(srcdir) && $(AUTOCONF)
  69292. + $(am__cd) $(srcdir) && $(AUTOCONF)
  69293. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  69294. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  69295. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  69296. +$(am__aclocal_m4_deps):
  69297. version.h: $(top_builddir)/config.status $(srcdir)/version.h.in
  69298. cd $(top_builddir) && $(SHELL) ./config.status $@
  69299. libnet-config: $(top_builddir)/config.status $(srcdir)/libnet-config.in
  69300. @@ -261,22 +318,37 @@
  69301. install-binSCRIPTS: $(bin_SCRIPTS)
  69302. @$(NORMAL_INSTALL)
  69303. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  69304. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  69305. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
  69306. + for p in $$list; do \
  69307. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  69308. - if test -f $$d$$p; then \
  69309. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  69310. - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  69311. - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
  69312. - else :; fi; \
  69313. - done
  69314. + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
  69315. + done | \
  69316. + sed -e 'p;s,.*/,,;n' \
  69317. + -e 'h;s|.*|.|' \
  69318. + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
  69319. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
  69320. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  69321. + if ($$2 == $$4) { files[d] = files[d] " " $$1; \
  69322. + if (++n[d] == $(am__install_max)) { \
  69323. + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
  69324. + else { print "f", d "/" $$4, $$1 } } \
  69325. + END { for (d in files) print "f", d, files[d] }' | \
  69326. + while read type dir files; do \
  69327. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  69328. + test -z "$$files" || { \
  69329. + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  69330. + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  69331. + } \
  69332. + ; done
  69333. uninstall-binSCRIPTS:
  69334. @$(NORMAL_UNINSTALL)
  69335. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  69336. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  69337. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  69338. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  69339. - done
  69340. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
  69341. + files=`for p in $$list; do echo "$$p"; done | \
  69342. + sed -e 's,.*/,,;$(transform)'`; \
  69343. + test -n "$$list" || exit 0; \
  69344. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  69345. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  69346. mostlyclean-libtool:
  69347. -rm -f *.lo
  69348. @@ -285,7 +357,7 @@
  69349. -rm -rf .libs _libs
  69350. distclean-libtool:
  69351. - -rm -f libtool
  69352. + -rm -f libtool config.lt
  69353. # This directory's subdirectories are mostly independent; you can cd
  69354. # into them and run `make' without going through this Makefile.
  69355. @@ -294,7 +366,7 @@
  69356. # (which will cause the Makefiles to be regenerated when you run `make');
  69357. # (2) otherwise, pass the desired values on the `make' command line.
  69358. $(RECURSIVE_TARGETS):
  69359. - @failcom='exit 1'; \
  69360. + @fail= failcom='exit 1'; \
  69361. for f in x $$MAKEFLAGS; do \
  69362. case $$f in \
  69363. *=* | --[!k]*);; \
  69364. @@ -311,7 +383,7 @@
  69365. else \
  69366. local_target="$$target"; \
  69367. fi; \
  69368. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  69369. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  69370. || eval $$failcom; \
  69371. done; \
  69372. if test "$$dot_seen" = "no"; then \
  69373. @@ -319,7 +391,7 @@
  69374. fi; test -z "$$fail"
  69375. $(RECURSIVE_CLEAN_TARGETS):
  69376. - @failcom='exit 1'; \
  69377. + @fail= failcom='exit 1'; \
  69378. for f in x $$MAKEFLAGS; do \
  69379. case $$f in \
  69380. *=* | --[!k]*);; \
  69381. @@ -345,16 +417,16 @@
  69382. else \
  69383. local_target="$$target"; \
  69384. fi; \
  69385. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  69386. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  69387. || eval $$failcom; \
  69388. done && test -z "$$fail"
  69389. tags-recursive:
  69390. list='$(SUBDIRS)'; for subdir in $$list; do \
  69391. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  69392. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  69393. done
  69394. ctags-recursive:
  69395. list='$(SUBDIRS)'; for subdir in $$list; do \
  69396. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  69397. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  69398. done
  69399. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  69400. @@ -362,14 +434,14 @@
  69401. unique=`for i in $$list; do \
  69402. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  69403. done | \
  69404. - $(AWK) ' { files[$$0] = 1; } \
  69405. - END { for (i in files) print i; }'`; \
  69406. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  69407. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  69408. mkid -fID $$unique
  69409. tags: TAGS
  69410. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  69411. $(TAGS_FILES) $(LISP)
  69412. - tags=; \
  69413. + set x; \
  69414. here=`pwd`; \
  69415. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  69416. include_option=--etags-include; \
  69417. @@ -381,46 +453,50 @@
  69418. list='$(SUBDIRS)'; for subdir in $$list; do \
  69419. if test "$$subdir" = .; then :; else \
  69420. test ! -f $$subdir/TAGS || \
  69421. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  69422. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  69423. fi; \
  69424. done; \
  69425. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  69426. unique=`for i in $$list; do \
  69427. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  69428. done | \
  69429. - $(AWK) ' { files[$$0] = 1; } \
  69430. - END { for (i in files) print i; }'`; \
  69431. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  69432. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  69433. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  69434. + shift; \
  69435. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  69436. test -n "$$unique" || unique=$$empty_fix; \
  69437. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  69438. - $$tags $$unique; \
  69439. + if test $$# -gt 0; then \
  69440. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  69441. + "$$@" $$unique; \
  69442. + else \
  69443. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  69444. + $$unique; \
  69445. + fi; \
  69446. fi
  69447. ctags: CTAGS
  69448. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  69449. $(TAGS_FILES) $(LISP)
  69450. - tags=; \
  69451. - here=`pwd`; \
  69452. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  69453. unique=`for i in $$list; do \
  69454. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  69455. done | \
  69456. - $(AWK) ' { files[$$0] = 1; } \
  69457. - END { for (i in files) print i; }'`; \
  69458. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  69459. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  69460. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  69461. + test -z "$(CTAGS_ARGS)$$unique" \
  69462. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  69463. - $$tags $$unique
  69464. + $$unique
  69465. GTAGS:
  69466. here=`$(am__cd) $(top_builddir) && pwd` \
  69467. - && cd $(top_srcdir) \
  69468. - && gtags -i $(GTAGS_ARGS) $$here
  69469. + && $(am__cd) $(top_srcdir) \
  69470. + && gtags -i $(GTAGS_ARGS) "$$here"
  69471. distclean-tags:
  69472. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  69473. distdir: $(DISTFILES)
  69474. $(am__remove_distdir)
  69475. - test -d $(distdir) || mkdir $(distdir)
  69476. + test -d "$(distdir)" || mkdir "$(distdir)"
  69477. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  69478. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  69479. list='$(DISTFILES)'; \
  69480. @@ -436,38 +512,55 @@
  69481. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  69482. if test -d $$d/$$file; then \
  69483. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  69484. + if test -d "$(distdir)/$$file"; then \
  69485. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  69486. + fi; \
  69487. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  69488. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  69489. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  69490. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  69491. fi; \
  69492. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  69493. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  69494. else \
  69495. - test -f $(distdir)/$$file \
  69496. - || cp -p $$d/$$file $(distdir)/$$file \
  69497. + test -f "$(distdir)/$$file" \
  69498. + || cp -p $$d/$$file "$(distdir)/$$file" \
  69499. || exit 1; \
  69500. fi; \
  69501. done
  69502. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  69503. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  69504. if test "$$subdir" = .; then :; else \
  69505. test -d "$(distdir)/$$subdir" \
  69506. || $(MKDIR_P) "$(distdir)/$$subdir" \
  69507. || exit 1; \
  69508. - distdir=`$(am__cd) $(distdir) && pwd`; \
  69509. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  69510. - (cd $$subdir && \
  69511. + fi; \
  69512. + done
  69513. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  69514. + if test "$$subdir" = .; then :; else \
  69515. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  69516. + $(am__relativize); \
  69517. + new_distdir=$$reldir; \
  69518. + dir1=$$subdir; dir2="$(top_distdir)"; \
  69519. + $(am__relativize); \
  69520. + new_top_distdir=$$reldir; \
  69521. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  69522. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  69523. + ($(am__cd) $$subdir && \
  69524. $(MAKE) $(AM_MAKEFLAGS) \
  69525. - top_distdir="$$top_distdir" \
  69526. - distdir="$$distdir/$$subdir" \
  69527. + top_distdir="$$new_top_distdir" \
  69528. + distdir="$$new_distdir" \
  69529. am__remove_distdir=: \
  69530. am__skip_length_check=: \
  69531. + am__skip_mode_fix=: \
  69532. distdir) \
  69533. || exit 1; \
  69534. fi; \
  69535. done
  69536. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  69537. + -test -n "$(am__skip_mode_fix)" \
  69538. + || find "$(distdir)" -type d ! -perm -755 \
  69539. + -exec chmod u+rwx,go+rx {} \; -o \
  69540. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  69541. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  69542. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  69543. - || chmod -R a+r $(distdir)
  69544. + || chmod -R a+r "$(distdir)"
  69545. dist-gzip: distdir
  69546. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  69547. $(am__remove_distdir)
  69548. @@ -476,6 +569,14 @@
  69549. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  69550. $(am__remove_distdir)
  69551. +dist-lzma: distdir
  69552. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  69553. + $(am__remove_distdir)
  69554. +
  69555. +dist-xz: distdir
  69556. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  69557. + $(am__remove_distdir)
  69558. +
  69559. dist-tarZ: distdir
  69560. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  69561. $(am__remove_distdir)
  69562. @@ -499,13 +600,17 @@
  69563. distcheck: dist
  69564. case '$(DIST_ARCHIVES)' in \
  69565. *.tar.gz*) \
  69566. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  69567. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  69568. *.tar.bz2*) \
  69569. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  69570. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  69571. + *.tar.lzma*) \
  69572. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  69573. + *.tar.xz*) \
  69574. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  69575. *.tar.Z*) \
  69576. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  69577. *.shar.gz*) \
  69578. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  69579. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  69580. *.zip*) \
  69581. unzip $(distdir).zip ;;\
  69582. esac
  69583. @@ -513,9 +618,11 @@
  69584. mkdir $(distdir)/_build
  69585. mkdir $(distdir)/_inst
  69586. chmod a-w $(distdir)
  69587. + test -d $(distdir)/_build || exit 0; \
  69588. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  69589. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  69590. - && cd $(distdir)/_build \
  69591. + && am__cwd=`pwd` \
  69592. + && $(am__cd) $(distdir)/_build \
  69593. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  69594. $(DISTCHECK_CONFIGURE_FLAGS) \
  69595. && $(MAKE) $(AM_MAKEFLAGS) \
  69596. @@ -537,13 +644,15 @@
  69597. && rm -rf "$$dc_destdir" \
  69598. && $(MAKE) $(AM_MAKEFLAGS) dist \
  69599. && rm -rf $(DIST_ARCHIVES) \
  69600. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  69601. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  69602. + && cd "$$am__cwd" \
  69603. + || exit 1
  69604. $(am__remove_distdir)
  69605. @(echo "$(distdir) archives ready for distribution: "; \
  69606. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  69607. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  69608. distuninstallcheck:
  69609. - @cd $(distuninstallcheck_dir) \
  69610. + @$(am__cd) '$(distuninstallcheck_dir)' \
  69611. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  69612. || { echo "ERROR: files left after uninstall:" ; \
  69613. if test -n "$(DESTDIR)"; then \
  69614. @@ -588,6 +697,7 @@
  69615. distclean-generic:
  69616. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  69617. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  69618. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  69619. maintainer-clean-generic:
  69620. @@ -609,6 +719,8 @@
  69621. html: html-recursive
  69622. +html-am:
  69623. +
  69624. info: info-recursive
  69625. info-am:
  69626. @@ -617,18 +729,28 @@
  69627. install-dvi: install-dvi-recursive
  69628. +install-dvi-am:
  69629. +
  69630. install-exec-am: install-binSCRIPTS
  69631. install-html: install-html-recursive
  69632. +install-html-am:
  69633. +
  69634. install-info: install-info-recursive
  69635. +install-info-am:
  69636. +
  69637. install-man:
  69638. install-pdf: install-pdf-recursive
  69639. +install-pdf-am:
  69640. +
  69641. install-ps: install-ps-recursive
  69642. +install-ps-am:
  69643. +
  69644. installcheck-am:
  69645. maintainer-clean: maintainer-clean-recursive
  69646. @@ -651,26 +773,27 @@
  69647. uninstall-am: uninstall-binSCRIPTS
  69648. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  69649. - install-strip
  69650. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  69651. + install-am install-strip tags-recursive
  69652. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  69653. all all-am am--refresh check check-am clean clean-generic \
  69654. clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  69655. - dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
  69656. - distclean-generic distclean-libtool distclean-tags \
  69657. - distcleancheck distdir distuninstallcheck dvi dvi-am html \
  69658. - html-am info info-am install install-am install-binSCRIPTS \
  69659. - install-data install-data-am install-dvi install-dvi-am \
  69660. - install-exec install-exec-am install-html install-html-am \
  69661. - install-info install-info-am install-man install-pdf \
  69662. - install-pdf-am install-ps install-ps-am install-strip \
  69663. - installcheck installcheck-am installdirs installdirs-am \
  69664. - maintainer-clean maintainer-clean-generic mostlyclean \
  69665. - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  69666. - tags tags-recursive uninstall uninstall-am \
  69667. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  69668. + distcheck distclean distclean-generic distclean-libtool \
  69669. + distclean-tags distcleancheck distdir distuninstallcheck dvi \
  69670. + dvi-am html html-am info info-am install install-am \
  69671. + install-binSCRIPTS install-data install-data-am install-dvi \
  69672. + install-dvi-am install-exec install-exec-am install-html \
  69673. + install-html-am install-info install-info-am install-man \
  69674. + install-pdf install-pdf-am install-ps install-ps-am \
  69675. + install-strip installcheck installcheck-am installdirs \
  69676. + installdirs-am maintainer-clean maintainer-clean-generic \
  69677. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  69678. + ps ps-am tags tags-recursive uninstall uninstall-am \
  69679. uninstall-binSCRIPTS
  69680. +
  69681. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  69682. # Otherwise a system limit (for SysV at least) may be exceeded.
  69683. .NOEXPORT:
  69684. diff -Nur libnet-1.1.5.orig/missing libnet-1.1.5/missing
  69685. --- libnet-1.1.5.orig/missing 2010-11-09 01:48:06.000000000 +0100
  69686. +++ libnet-1.1.5/missing 2011-02-24 19:45:54.073558983 +0100
  69687. @@ -1,10 +1,10 @@
  69688. #! /bin/sh
  69689. # Common stub for a few missing GNU programs while installing.
  69690. -scriptversion=2006-05-10.23
  69691. +scriptversion=2009-04-28.21; # UTC
  69692. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
  69693. -# Free Software Foundation, Inc.
  69694. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  69695. +# 2008, 2009 Free Software Foundation, Inc.
  69696. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  69697. # This program is free software; you can redistribute it and/or modify
  69698. @@ -18,9 +18,7 @@
  69699. # GNU General Public License for more details.
  69700. # You should have received a copy of the GNU General Public License
  69701. -# along with this program; if not, write to the Free Software
  69702. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  69703. -# 02110-1301, USA.
  69704. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  69705. # As a special exception to the GNU General Public License, if you
  69706. # distribute this file as part of a program that contains a
  69707. @@ -89,6 +87,9 @@
  69708. tar try tar, gnutar, gtar, then tar without non-portable flags
  69709. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  69710. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  69711. +\`g' are ignored when checking the name.
  69712. +
  69713. Send bug reports to <bug-automake@gnu.org>."
  69714. exit $?
  69715. ;;
  69716. @@ -106,15 +107,22 @@
  69717. esac
  69718. +# normalize program name to check for.
  69719. +program=`echo "$1" | sed '
  69720. + s/^gnu-//; t
  69721. + s/^gnu//; t
  69722. + s/^g//; t'`
  69723. +
  69724. # Now exit if we have it, but it failed. Also exit now if we
  69725. # don't have it and --version was passed (most likely to detect
  69726. -# the program).
  69727. +# the program). This is about non-GNU programs, so use $1 not
  69728. +# $program.
  69729. case $1 in
  69730. - lex|yacc)
  69731. + lex*|yacc*)
  69732. # Not GNU programs, they don't have --version.
  69733. ;;
  69734. - tar)
  69735. + tar*)
  69736. if test -n "$run"; then
  69737. echo 1>&2 "ERROR: \`tar' requires --run"
  69738. exit 1
  69739. @@ -138,7 +146,7 @@
  69740. # If it does not exist, or fails to run (possibly an outdated version),
  69741. # try to emulate it.
  69742. -case $1 in
  69743. +case $program in
  69744. aclocal*)
  69745. echo 1>&2 "\
  69746. WARNING: \`$1' is $msg. You should only need it if
  69747. @@ -148,7 +156,7 @@
  69748. touch aclocal.m4
  69749. ;;
  69750. - autoconf)
  69751. + autoconf*)
  69752. echo 1>&2 "\
  69753. WARNING: \`$1' is $msg. You should only need it if
  69754. you modified \`${configure_ac}'. You might want to install the
  69755. @@ -157,7 +165,7 @@
  69756. touch configure
  69757. ;;
  69758. - autoheader)
  69759. + autoheader*)
  69760. echo 1>&2 "\
  69761. WARNING: \`$1' is $msg. You should only need it if
  69762. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  69763. @@ -187,7 +195,7 @@
  69764. while read f; do touch "$f"; done
  69765. ;;
  69766. - autom4te)
  69767. + autom4te*)
  69768. echo 1>&2 "\
  69769. WARNING: \`$1' is needed, but is $msg.
  69770. You might have modified some files without having the
  69771. @@ -210,7 +218,7 @@
  69772. fi
  69773. ;;
  69774. - bison|yacc)
  69775. + bison*|yacc*)
  69776. echo 1>&2 "\
  69777. WARNING: \`$1' $msg. You should only need it if
  69778. you modified a \`.y' file. You may need the \`Bison' package
  69779. @@ -240,7 +248,7 @@
  69780. fi
  69781. ;;
  69782. - lex|flex)
  69783. + lex*|flex*)
  69784. echo 1>&2 "\
  69785. WARNING: \`$1' is $msg. You should only need it if
  69786. you modified a \`.l' file. You may need the \`Flex' package
  69787. @@ -263,7 +271,7 @@
  69788. fi
  69789. ;;
  69790. - help2man)
  69791. + help2man*)
  69792. echo 1>&2 "\
  69793. WARNING: \`$1' is $msg. You should only need it if
  69794. you modified a dependency of a manual page. You may need the
  69795. @@ -277,11 +285,11 @@
  69796. else
  69797. test -z "$file" || exec >$file
  69798. echo ".ab help2man is required to generate this page"
  69799. - exit 1
  69800. + exit $?
  69801. fi
  69802. ;;
  69803. - makeinfo)
  69804. + makeinfo*)
  69805. echo 1>&2 "\
  69806. WARNING: \`$1' is $msg. You should only need it if
  69807. you modified a \`.texi' or \`.texinfo' file, or any other file
  69808. @@ -310,7 +318,7 @@
  69809. touch $file
  69810. ;;
  69811. - tar)
  69812. + tar*)
  69813. shift
  69814. # We have already tried tar in the generic part.
  69815. @@ -363,5 +371,6 @@
  69816. # eval: (add-hook 'write-file-hooks 'time-stamp)
  69817. # time-stamp-start: "scriptversion="
  69818. # time-stamp-format: "%:y-%02m-%02d.%02H"
  69819. -# time-stamp-end: "$"
  69820. +# time-stamp-time-zone: "UTC"
  69821. +# time-stamp-end: "; # UTC"
  69822. # End:
  69823. diff -Nur libnet-1.1.5.orig/mkinstalldirs libnet-1.1.5/mkinstalldirs
  69824. --- libnet-1.1.5.orig/mkinstalldirs 2010-11-09 01:48:07.000000000 +0100
  69825. +++ libnet-1.1.5/mkinstalldirs 2011-02-24 19:45:54.743553261 +0100
  69826. @@ -1,7 +1,7 @@
  69827. #! /bin/sh
  69828. # mkinstalldirs --- make directory hierarchy
  69829. -scriptversion=2006-05-11.19
  69830. +scriptversion=2009-04-28.21; # UTC
  69831. # Original author: Noah Friedman <friedman@prep.ai.mit.edu>
  69832. # Created: 1993-05-16
  69833. @@ -157,5 +157,6 @@
  69834. # eval: (add-hook 'write-file-hooks 'time-stamp)
  69835. # time-stamp-start: "scriptversion="
  69836. # time-stamp-format: "%:y-%02m-%02d.%02H"
  69837. -# time-stamp-end: "$"
  69838. +# time-stamp-time-zone: "UTC"
  69839. +# time-stamp-end: "; # UTC"
  69840. # End:
  69841. diff -Nur libnet-1.1.5.orig/sample/Makefile.in libnet-1.1.5/sample/Makefile.in
  69842. --- libnet-1.1.5.orig/sample/Makefile.in 2010-11-09 01:48:07.000000000 +0100
  69843. +++ libnet-1.1.5/sample/Makefile.in 2011-02-24 19:45:54.633550804 +0100
  69844. @@ -1,8 +1,9 @@
  69845. -# Makefile.in generated by automake 1.10 from Makefile.am.
  69846. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  69847. # @configure_input@
  69848. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  69849. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  69850. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  69851. +# Inc.
  69852. # This Makefile.in is free software; the Free Software Foundation
  69853. # gives unlimited permission to copy and/or distribute it,
  69854. # with or without modifications, as long as this notice is preserved.
  69855. @@ -31,8 +32,9 @@
  69856. VPATH = @srcdir@
  69857. pkgdatadir = $(datadir)/@PACKAGE@
  69858. -pkglibdir = $(libdir)/@PACKAGE@
  69859. pkgincludedir = $(includedir)/@PACKAGE@
  69860. +pkglibdir = $(libdir)/@PACKAGE@
  69861. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  69862. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  69863. install_sh_DATA = $(install_sh) -c -m 644
  69864. install_sh_PROGRAM = $(install_sh) -c
  69865. @@ -61,6 +63,7 @@
  69866. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  69867. CONFIG_HEADER = $(top_builddir)/include/config.h
  69868. CONFIG_CLEAN_FILES =
  69869. +CONFIG_CLEAN_VPATH_FILES =
  69870. am__EXEEXT_1 = arp$(EXEEXT) cdp$(EXEEXT) dhcp_discover$(EXEEXT) \
  69871. get_addr$(EXEEXT) icmp_timestamp$(EXEEXT) \
  69872. icmp_unreach$(EXEEXT) ieee$(EXEEXT) isl$(EXEEXT) ntp$(EXEEXT) \
  69873. @@ -79,7 +82,6 @@
  69874. test_ipv4$(EXEEXT) test_ipv6_icmpv4$(EXEEXT) \
  69875. test_ipv4_options$(EXEEXT)
  69876. am__installdirs = "$(DESTDIR)$(bindir)"
  69877. -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  69878. PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
  69879. am_arp_OBJECTS = arp.$(OBJEXT)
  69880. arp_OBJECTS = $(am_arp_OBJECTS)
  69881. @@ -273,7 +275,7 @@
  69882. udp2_OBJECTS = $(am_udp2_OBJECTS)
  69883. udp2_LDADD = $(LDADD)
  69884. udp2_DEPENDENCIES = $(top_builddir)/src/libnet.la
  69885. -DEFAULT_INCLUDES = -I. -I$(top_builddir)/include@am__isrc@
  69886. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
  69887. depcomp =
  69888. am__depfiles_maybe =
  69889. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  69890. @@ -341,22 +343,18 @@
  69891. CFLAGS = @CFLAGS@
  69892. CPP = @CPP@
  69893. CPPFLAGS = @CPPFLAGS@
  69894. -CXX = @CXX@
  69895. -CXXCPP = @CXXCPP@
  69896. -CXXDEPMODE = @CXXDEPMODE@
  69897. -CXXFLAGS = @CXXFLAGS@
  69898. CYGPATH_W = @CYGPATH_W@
  69899. DEFS = @DEFS@
  69900. DEPDIR = @DEPDIR@
  69901. -ECHO = @ECHO@
  69902. +DSYMUTIL = @DSYMUTIL@
  69903. +DUMPBIN = @DUMPBIN@
  69904. ECHO_C = @ECHO_C@
  69905. ECHO_N = @ECHO_N@
  69906. ECHO_T = @ECHO_T@
  69907. EGREP = @EGREP@
  69908. ENDIANESS = @ENDIANESS@
  69909. EXEEXT = @EXEEXT@
  69910. -F77 = @F77@
  69911. -FFLAGS = @FFLAGS@
  69912. +FGREP = @FGREP@
  69913. GREP = @GREP@
  69914. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  69915. INSTALL = @INSTALL@
  69916. @@ -364,6 +362,7 @@
  69917. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  69918. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  69919. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  69920. +LD = @LD@
  69921. LDFLAGS = @LDFLAGS@
  69922. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  69923. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  69924. @@ -371,17 +370,24 @@
  69925. LIBOBJS = @LIBOBJS@
  69926. LIBS = @LIBS@
  69927. LIBTOOL = @LIBTOOL@
  69928. +LIPO = @LIPO@
  69929. LN_S = @LN_S@
  69930. LTLIBOBJS = @LTLIBOBJS@
  69931. MAINT = @MAINT@
  69932. MAKEINFO = @MAKEINFO@
  69933. MKDIR_P = @MKDIR_P@
  69934. +NM = @NM@
  69935. +NMEDIT = @NMEDIT@
  69936. +OBJDUMP = @OBJDUMP@
  69937. OBJEXT = @OBJEXT@
  69938. +OTOOL = @OTOOL@
  69939. +OTOOL64 = @OTOOL64@
  69940. PACKAGE = @PACKAGE@
  69941. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  69942. PACKAGE_NAME = @PACKAGE_NAME@
  69943. PACKAGE_STRING = @PACKAGE_STRING@
  69944. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  69945. +PACKAGE_URL = @PACKAGE_URL@
  69946. PACKAGE_VERSION = @PACKAGE_VERSION@
  69947. PATH_SEPARATOR = @PATH_SEPARATOR@
  69948. RANLIB = @RANLIB@
  69949. @@ -395,8 +401,7 @@
  69950. abs_top_builddir = @abs_top_builddir@
  69951. abs_top_srcdir = @abs_top_srcdir@
  69952. ac_ct_CC = @ac_ct_CC@
  69953. -ac_ct_CXX = @ac_ct_CXX@
  69954. -ac_ct_F77 = @ac_ct_F77@
  69955. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  69956. am__include = @am__include@
  69957. am__leading_dot = @am__leading_dot@
  69958. am__quote = @am__quote@
  69959. @@ -427,6 +432,7 @@
  69960. libexecdir = @libexecdir@
  69961. localedir = @localedir@
  69962. localstatedir = @localstatedir@
  69963. +lt_ECHO = @lt_ECHO@
  69964. mandir = @mandir@
  69965. mkdir_p = @mkdir_p@
  69966. oldincludedir = @oldincludedir@
  69967. @@ -443,6 +449,7 @@
  69968. target_cpu = @target_cpu@
  69969. target_os = @target_os@
  69970. target_vendor = @target_vendor@
  69971. +top_build_prefix = @top_build_prefix@
  69972. top_builddir = @top_builddir@
  69973. top_srcdir = @top_srcdir@
  69974. AUTOMAKE_OPTIONS = foreign no-dependencies
  69975. @@ -519,14 +526,14 @@
  69976. @for dep in $?; do \
  69977. case '$(am__configure_deps)' in \
  69978. *$$dep*) \
  69979. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  69980. - && exit 0; \
  69981. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  69982. + && { if test -f $@; then exit 0; else break; fi; }; \
  69983. exit 1;; \
  69984. esac; \
  69985. done; \
  69986. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sample/Makefile'; \
  69987. - cd $(top_srcdir) && \
  69988. - $(AUTOMAKE) --foreign sample/Makefile
  69989. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sample/Makefile'; \
  69990. + $(am__cd) $(top_srcdir) && \
  69991. + $(AUTOMAKE) --foreign sample/Makefile
  69992. .PRECIOUS: Makefile
  69993. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  69994. @case '$?' in \
  69995. @@ -544,41 +551,59 @@
  69996. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  69997. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  69998. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  69999. +$(am__aclocal_m4_deps):
  70000. install-binPROGRAMS: $(bin_PROGRAMS)
  70001. @$(NORMAL_INSTALL)
  70002. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  70003. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  70004. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  70005. - if test -f $$p \
  70006. - || test -f $$p1 \
  70007. - ; then \
  70008. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  70009. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  70010. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
  70011. - else :; fi; \
  70012. - done
  70013. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  70014. + for p in $$list; do echo "$$p $$p"; done | \
  70015. + sed 's/$(EXEEXT)$$//' | \
  70016. + while read p p1; do if test -f $$p || test -f $$p1; \
  70017. + then echo "$$p"; echo "$$p"; else :; fi; \
  70018. + done | \
  70019. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  70020. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  70021. + sed 'N;N;N;s,\n, ,g' | \
  70022. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  70023. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  70024. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  70025. + else { print "f", $$3 "/" $$4, $$1; } } \
  70026. + END { for (d in files) print "f", d, files[d] }' | \
  70027. + while read type dir files; do \
  70028. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  70029. + test -z "$$files" || { \
  70030. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  70031. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  70032. + } \
  70033. + ; done
  70034. uninstall-binPROGRAMS:
  70035. @$(NORMAL_UNINSTALL)
  70036. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  70037. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  70038. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  70039. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  70040. - done
  70041. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  70042. + files=`for p in $$list; do echo "$$p"; done | \
  70043. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  70044. + -e 's/$$/$(EXEEXT)/' `; \
  70045. + test -n "$$list" || exit 0; \
  70046. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  70047. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  70048. clean-binPROGRAMS:
  70049. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  70050. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  70051. - echo " rm -f $$p $$f"; \
  70052. - rm -f $$p $$f ; \
  70053. - done
  70054. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  70055. + echo " rm -f" $$list; \
  70056. + rm -f $$list || exit $$?; \
  70057. + test -n "$(EXEEXT)" || exit 0; \
  70058. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  70059. + echo " rm -f" $$list; \
  70060. + rm -f $$list
  70061. clean-noinstPROGRAMS:
  70062. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  70063. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  70064. - echo " rm -f $$p $$f"; \
  70065. - rm -f $$p $$f ; \
  70066. - done
  70067. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  70068. + echo " rm -f" $$list; \
  70069. + rm -f $$list || exit $$?; \
  70070. + test -n "$(EXEEXT)" || exit 0; \
  70071. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  70072. + echo " rm -f" $$list; \
  70073. + rm -f $$list
  70074. arp$(EXEEXT): $(arp_OBJECTS) $(arp_DEPENDENCIES)
  70075. @rm -f arp$(EXEEXT)
  70076. $(LINK) $(arp_OBJECTS) $(arp_LDADD) $(LIBS)
  70077. @@ -750,45 +775,49 @@
  70078. unique=`for i in $$list; do \
  70079. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  70080. done | \
  70081. - $(AWK) ' { files[$$0] = 1; } \
  70082. - END { for (i in files) print i; }'`; \
  70083. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  70084. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  70085. mkid -fID $$unique
  70086. tags: TAGS
  70087. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  70088. $(TAGS_FILES) $(LISP)
  70089. - tags=; \
  70090. + set x; \
  70091. here=`pwd`; \
  70092. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  70093. unique=`for i in $$list; do \
  70094. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  70095. done | \
  70096. - $(AWK) ' { files[$$0] = 1; } \
  70097. - END { for (i in files) print i; }'`; \
  70098. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  70099. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  70100. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  70101. + shift; \
  70102. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  70103. test -n "$$unique" || unique=$$empty_fix; \
  70104. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  70105. - $$tags $$unique; \
  70106. + if test $$# -gt 0; then \
  70107. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  70108. + "$$@" $$unique; \
  70109. + else \
  70110. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  70111. + $$unique; \
  70112. + fi; \
  70113. fi
  70114. ctags: CTAGS
  70115. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  70116. $(TAGS_FILES) $(LISP)
  70117. - tags=; \
  70118. - here=`pwd`; \
  70119. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  70120. unique=`for i in $$list; do \
  70121. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  70122. done | \
  70123. - $(AWK) ' { files[$$0] = 1; } \
  70124. - END { for (i in files) print i; }'`; \
  70125. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  70126. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  70127. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  70128. + test -z "$(CTAGS_ARGS)$$unique" \
  70129. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  70130. - $$tags $$unique
  70131. + $$unique
  70132. GTAGS:
  70133. here=`$(am__cd) $(top_builddir) && pwd` \
  70134. - && cd $(top_srcdir) \
  70135. - && gtags -i $(GTAGS_ARGS) $$here
  70136. + && $(am__cd) $(top_srcdir) \
  70137. + && gtags -i $(GTAGS_ARGS) "$$here"
  70138. distclean-tags:
  70139. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  70140. @@ -809,13 +838,17 @@
  70141. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  70142. if test -d $$d/$$file; then \
  70143. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  70144. + if test -d "$(distdir)/$$file"; then \
  70145. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  70146. + fi; \
  70147. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  70148. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  70149. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  70150. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  70151. fi; \
  70152. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  70153. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  70154. else \
  70155. - test -f $(distdir)/$$file \
  70156. - || cp -p $$d/$$file $(distdir)/$$file \
  70157. + test -f "$(distdir)/$$file" \
  70158. + || cp -p $$d/$$file "$(distdir)/$$file" \
  70159. || exit 1; \
  70160. fi; \
  70161. done
  70162. @@ -846,6 +879,7 @@
  70163. distclean-generic:
  70164. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  70165. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  70166. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  70167. maintainer-clean-generic:
  70168. @@ -867,6 +901,8 @@
  70169. html: html-am
  70170. +html-am:
  70171. +
  70172. info: info-am
  70173. info-am:
  70174. @@ -875,18 +911,28 @@
  70175. install-dvi: install-dvi-am
  70176. +install-dvi-am:
  70177. +
  70178. install-exec-am: install-binPROGRAMS
  70179. install-html: install-html-am
  70180. +install-html-am:
  70181. +
  70182. install-info: install-info-am
  70183. +install-info-am:
  70184. +
  70185. install-man:
  70186. install-pdf: install-pdf-am
  70187. +install-pdf-am:
  70188. +
  70189. install-ps: install-ps-am
  70190. +install-ps-am:
  70191. +
  70192. installcheck-am:
  70193. maintainer-clean: maintainer-clean-am
  70194. @@ -924,6 +970,7 @@
  70195. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  70196. tags uninstall uninstall-am uninstall-binPROGRAMS
  70197. +
  70198. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  70199. # Otherwise a system limit (for SysV at least) may be exceeded.
  70200. .NOEXPORT:
  70201. diff -Nur libnet-1.1.5.orig/src/Makefile.in libnet-1.1.5/src/Makefile.in
  70202. --- libnet-1.1.5.orig/src/Makefile.in 2010-11-09 01:48:07.000000000 +0100
  70203. +++ libnet-1.1.5/src/Makefile.in 2011-02-24 19:45:54.693552230 +0100
  70204. @@ -1,8 +1,9 @@
  70205. -# Makefile.in generated by automake 1.10 from Makefile.am.
  70206. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  70207. # @configure_input@
  70208. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  70209. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  70210. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  70211. +# Inc.
  70212. # This Makefile.in is free software; the Free Software Foundation
  70213. # gives unlimited permission to copy and/or distribute it,
  70214. # with or without modifications, as long as this notice is preserved.
  70215. @@ -31,8 +32,9 @@
  70216. VPATH = @srcdir@
  70217. pkgdatadir = $(datadir)/@PACKAGE@
  70218. -pkglibdir = $(libdir)/@PACKAGE@
  70219. pkgincludedir = $(includedir)/@PACKAGE@
  70220. +pkglibdir = $(libdir)/@PACKAGE@
  70221. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  70222. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  70223. install_sh_DATA = $(install_sh) -c -m 644
  70224. install_sh_PROGRAM = $(install_sh) -c
  70225. @@ -62,14 +64,29 @@
  70226. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  70227. CONFIG_HEADER = $(top_builddir)/include/config.h
  70228. CONFIG_CLEAN_FILES =
  70229. +CONFIG_CLEAN_VPATH_FILES =
  70230. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  70231. am__vpath_adj = case $$p in \
  70232. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  70233. *) f=$$p;; \
  70234. esac;
  70235. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  70236. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  70237. +am__install_max = 40
  70238. +am__nobase_strip_setup = \
  70239. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  70240. +am__nobase_strip = \
  70241. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  70242. +am__nobase_list = $(am__nobase_strip_setup); \
  70243. + for p in $$list; do echo "$$p $$p"; done | \
  70244. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  70245. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  70246. + if (++n[$$2] == $(am__install_max)) \
  70247. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  70248. + END { for (dir in files) print dir, files[dir] }'
  70249. +am__base_list = \
  70250. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  70251. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  70252. am__installdirs = "$(DESTDIR)$(libdir)"
  70253. -libLTLIBRARIES_INSTALL = $(INSTALL)
  70254. LTLIBRARIES = $(lib_LTLIBRARIES)
  70255. libnet_la_DEPENDENCIES = @LTLIBOBJS@
  70256. am_libnet_la_OBJECTS = libnet_asn1.lo libnet_build_802.1q.lo \
  70257. @@ -93,7 +110,7 @@
  70258. libnet_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  70259. $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  70260. $(libnet_la_LDFLAGS) $(LDFLAGS) -o $@
  70261. -DEFAULT_INCLUDES = -I. -I$(top_builddir)/include@am__isrc@
  70262. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
  70263. depcomp =
  70264. am__depfiles_maybe =
  70265. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  70266. @@ -123,22 +140,18 @@
  70267. CFLAGS = @CFLAGS@
  70268. CPP = @CPP@
  70269. CPPFLAGS = @CPPFLAGS@
  70270. -CXX = @CXX@
  70271. -CXXCPP = @CXXCPP@
  70272. -CXXDEPMODE = @CXXDEPMODE@
  70273. -CXXFLAGS = @CXXFLAGS@
  70274. CYGPATH_W = @CYGPATH_W@
  70275. DEFS = @DEFS@
  70276. DEPDIR = @DEPDIR@
  70277. -ECHO = @ECHO@
  70278. +DSYMUTIL = @DSYMUTIL@
  70279. +DUMPBIN = @DUMPBIN@
  70280. ECHO_C = @ECHO_C@
  70281. ECHO_N = @ECHO_N@
  70282. ECHO_T = @ECHO_T@
  70283. EGREP = @EGREP@
  70284. ENDIANESS = @ENDIANESS@
  70285. EXEEXT = @EXEEXT@
  70286. -F77 = @F77@
  70287. -FFLAGS = @FFLAGS@
  70288. +FGREP = @FGREP@
  70289. GREP = @GREP@
  70290. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  70291. INSTALL = @INSTALL@
  70292. @@ -146,6 +159,7 @@
  70293. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  70294. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  70295. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  70296. +LD = @LD@
  70297. LDFLAGS = @LDFLAGS@
  70298. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  70299. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  70300. @@ -153,17 +167,24 @@
  70301. LIBOBJS = @LIBOBJS@
  70302. LIBS = @LIBS@
  70303. LIBTOOL = @LIBTOOL@
  70304. +LIPO = @LIPO@
  70305. LN_S = @LN_S@
  70306. LTLIBOBJS = @LTLIBOBJS@
  70307. MAINT = @MAINT@
  70308. MAKEINFO = @MAKEINFO@
  70309. MKDIR_P = @MKDIR_P@
  70310. +NM = @NM@
  70311. +NMEDIT = @NMEDIT@
  70312. +OBJDUMP = @OBJDUMP@
  70313. OBJEXT = @OBJEXT@
  70314. +OTOOL = @OTOOL@
  70315. +OTOOL64 = @OTOOL64@
  70316. PACKAGE = @PACKAGE@
  70317. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  70318. PACKAGE_NAME = @PACKAGE_NAME@
  70319. PACKAGE_STRING = @PACKAGE_STRING@
  70320. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  70321. +PACKAGE_URL = @PACKAGE_URL@
  70322. PACKAGE_VERSION = @PACKAGE_VERSION@
  70323. PATH_SEPARATOR = @PATH_SEPARATOR@
  70324. RANLIB = @RANLIB@
  70325. @@ -177,8 +198,7 @@
  70326. abs_top_builddir = @abs_top_builddir@
  70327. abs_top_srcdir = @abs_top_srcdir@
  70328. ac_ct_CC = @ac_ct_CC@
  70329. -ac_ct_CXX = @ac_ct_CXX@
  70330. -ac_ct_F77 = @ac_ct_F77@
  70331. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  70332. am__include = @am__include@
  70333. am__leading_dot = @am__leading_dot@
  70334. am__quote = @am__quote@
  70335. @@ -209,6 +229,7 @@
  70336. libexecdir = @libexecdir@
  70337. localedir = @localedir@
  70338. localstatedir = @localstatedir@
  70339. +lt_ECHO = @lt_ECHO@
  70340. mandir = @mandir@
  70341. mkdir_p = @mkdir_p@
  70342. oldincludedir = @oldincludedir@
  70343. @@ -225,6 +246,7 @@
  70344. target_cpu = @target_cpu@
  70345. target_os = @target_os@
  70346. target_vendor = @target_vendor@
  70347. +top_build_prefix = @top_build_prefix@
  70348. top_builddir = @top_builddir@
  70349. top_srcdir = @top_srcdir@
  70350. AUTOMAKE_OPTIONS = foreign no-dependencies
  70351. @@ -310,14 +332,14 @@
  70352. @for dep in $?; do \
  70353. case '$(am__configure_deps)' in \
  70354. *$$dep*) \
  70355. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  70356. - && exit 0; \
  70357. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  70358. + && { if test -f $@; then exit 0; else break; fi; }; \
  70359. exit 1;; \
  70360. esac; \
  70361. done; \
  70362. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
  70363. - cd $(top_srcdir) && \
  70364. - $(AUTOMAKE) --foreign src/Makefile
  70365. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
  70366. + $(am__cd) $(top_srcdir) && \
  70367. + $(AUTOMAKE) --foreign src/Makefile
  70368. .PRECIOUS: Makefile
  70369. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  70370. @case '$?' in \
  70371. @@ -335,23 +357,28 @@
  70372. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  70373. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  70374. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  70375. +$(am__aclocal_m4_deps):
  70376. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  70377. @$(NORMAL_INSTALL)
  70378. test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  70379. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  70380. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  70381. + list2=; for p in $$list; do \
  70382. if test -f $$p; then \
  70383. - f=$(am__strip_dir) \
  70384. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  70385. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  70386. + list2="$$list2 $$p"; \
  70387. else :; fi; \
  70388. - done
  70389. + done; \
  70390. + test -z "$$list2" || { \
  70391. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  70392. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  70393. + }
  70394. uninstall-libLTLIBRARIES:
  70395. @$(NORMAL_UNINSTALL)
  70396. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  70397. - p=$(am__strip_dir) \
  70398. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  70399. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  70400. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  70401. + for p in $$list; do \
  70402. + $(am__strip_dir) \
  70403. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  70404. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  70405. done
  70406. clean-libLTLIBRARIES:
  70407. @@ -391,45 +418,49 @@
  70408. unique=`for i in $$list; do \
  70409. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  70410. done | \
  70411. - $(AWK) ' { files[$$0] = 1; } \
  70412. - END { for (i in files) print i; }'`; \
  70413. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  70414. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  70415. mkid -fID $$unique
  70416. tags: TAGS
  70417. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  70418. $(TAGS_FILES) $(LISP)
  70419. - tags=; \
  70420. + set x; \
  70421. here=`pwd`; \
  70422. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  70423. unique=`for i in $$list; do \
  70424. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  70425. done | \
  70426. - $(AWK) ' { files[$$0] = 1; } \
  70427. - END { for (i in files) print i; }'`; \
  70428. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  70429. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  70430. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  70431. + shift; \
  70432. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  70433. test -n "$$unique" || unique=$$empty_fix; \
  70434. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  70435. - $$tags $$unique; \
  70436. + if test $$# -gt 0; then \
  70437. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  70438. + "$$@" $$unique; \
  70439. + else \
  70440. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  70441. + $$unique; \
  70442. + fi; \
  70443. fi
  70444. ctags: CTAGS
  70445. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  70446. $(TAGS_FILES) $(LISP)
  70447. - tags=; \
  70448. - here=`pwd`; \
  70449. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  70450. unique=`for i in $$list; do \
  70451. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  70452. done | \
  70453. - $(AWK) ' { files[$$0] = 1; } \
  70454. - END { for (i in files) print i; }'`; \
  70455. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  70456. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  70457. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  70458. + test -z "$(CTAGS_ARGS)$$unique" \
  70459. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  70460. - $$tags $$unique
  70461. + $$unique
  70462. GTAGS:
  70463. here=`$(am__cd) $(top_builddir) && pwd` \
  70464. - && cd $(top_srcdir) \
  70465. - && gtags -i $(GTAGS_ARGS) $$here
  70466. + && $(am__cd) $(top_srcdir) \
  70467. + && gtags -i $(GTAGS_ARGS) "$$here"
  70468. distclean-tags:
  70469. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  70470. @@ -450,13 +481,17 @@
  70471. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  70472. if test -d $$d/$$file; then \
  70473. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  70474. + if test -d "$(distdir)/$$file"; then \
  70475. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  70476. + fi; \
  70477. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  70478. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  70479. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  70480. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  70481. fi; \
  70482. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  70483. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  70484. else \
  70485. - test -f $(distdir)/$$file \
  70486. - || cp -p $$d/$$file $(distdir)/$$file \
  70487. + test -f "$(distdir)/$$file" \
  70488. + || cp -p $$d/$$file "$(distdir)/$$file" \
  70489. || exit 1; \
  70490. fi; \
  70491. done
  70492. @@ -487,6 +522,7 @@
  70493. distclean-generic:
  70494. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  70495. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  70496. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  70497. maintainer-clean-generic:
  70498. @@ -508,6 +544,8 @@
  70499. html: html-am
  70500. +html-am:
  70501. +
  70502. info: info-am
  70503. info-am:
  70504. @@ -516,18 +554,28 @@
  70505. install-dvi: install-dvi-am
  70506. +install-dvi-am:
  70507. +
  70508. install-exec-am: install-libLTLIBRARIES
  70509. install-html: install-html-am
  70510. +install-html-am:
  70511. +
  70512. install-info: install-info-am
  70513. +install-info-am:
  70514. +
  70515. install-man:
  70516. install-pdf: install-pdf-am
  70517. +install-pdf-am:
  70518. +
  70519. install-ps: install-ps-am
  70520. +install-ps-am:
  70521. +
  70522. installcheck-am:
  70523. maintainer-clean: maintainer-clean-am
  70524. @@ -565,6 +613,7 @@
  70525. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  70526. tags uninstall uninstall-am uninstall-libLTLIBRARIES
  70527. +
  70528. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  70529. # Otherwise a system limit (for SysV at least) may be exceeded.
  70530. .NOEXPORT:
  70531. diff -Nur libnet-1.1.5.orig/win32/Makefile.in libnet-1.1.5/win32/Makefile.in
  70532. --- libnet-1.1.5.orig/win32/Makefile.in 2010-11-09 01:48:07.000000000 +0100
  70533. +++ libnet-1.1.5/win32/Makefile.in 2011-02-24 19:45:54.723559134 +0100
  70534. @@ -1,8 +1,9 @@
  70535. -# Makefile.in generated by automake 1.10 from Makefile.am.
  70536. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  70537. # @configure_input@
  70538. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  70539. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  70540. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  70541. +# Inc.
  70542. # This Makefile.in is free software; the Free Software Foundation
  70543. # gives unlimited permission to copy and/or distribute it,
  70544. # with or without modifications, as long as this notice is preserved.
  70545. @@ -15,8 +16,9 @@
  70546. @SET_MAKE@
  70547. VPATH = @srcdir@
  70548. pkgdatadir = $(datadir)/@PACKAGE@
  70549. -pkglibdir = $(libdir)/@PACKAGE@
  70550. pkgincludedir = $(includedir)/@PACKAGE@
  70551. +pkglibdir = $(libdir)/@PACKAGE@
  70552. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  70553. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  70554. install_sh_DATA = $(install_sh) -c -m 644
  70555. install_sh_PROGRAM = $(install_sh) -c
  70556. @@ -42,6 +44,7 @@
  70557. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  70558. CONFIG_HEADER = $(top_builddir)/include/config.h
  70559. CONFIG_CLEAN_FILES =
  70560. +CONFIG_CLEAN_VPATH_FILES =
  70561. SOURCES =
  70562. DIST_SOURCES =
  70563. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  70564. @@ -58,22 +61,18 @@
  70565. CFLAGS = @CFLAGS@
  70566. CPP = @CPP@
  70567. CPPFLAGS = @CPPFLAGS@
  70568. -CXX = @CXX@
  70569. -CXXCPP = @CXXCPP@
  70570. -CXXDEPMODE = @CXXDEPMODE@
  70571. -CXXFLAGS = @CXXFLAGS@
  70572. CYGPATH_W = @CYGPATH_W@
  70573. DEFS = @DEFS@
  70574. DEPDIR = @DEPDIR@
  70575. -ECHO = @ECHO@
  70576. +DSYMUTIL = @DSYMUTIL@
  70577. +DUMPBIN = @DUMPBIN@
  70578. ECHO_C = @ECHO_C@
  70579. ECHO_N = @ECHO_N@
  70580. ECHO_T = @ECHO_T@
  70581. EGREP = @EGREP@
  70582. ENDIANESS = @ENDIANESS@
  70583. EXEEXT = @EXEEXT@
  70584. -F77 = @F77@
  70585. -FFLAGS = @FFLAGS@
  70586. +FGREP = @FGREP@
  70587. GREP = @GREP@
  70588. HAVE_PACKET_SOCKET = @HAVE_PACKET_SOCKET@
  70589. INSTALL = @INSTALL@
  70590. @@ -81,6 +80,7 @@
  70591. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  70592. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  70593. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  70594. +LD = @LD@
  70595. LDFLAGS = @LDFLAGS@
  70596. LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  70597. LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  70598. @@ -88,17 +88,24 @@
  70599. LIBOBJS = @LIBOBJS@
  70600. LIBS = @LIBS@
  70601. LIBTOOL = @LIBTOOL@
  70602. +LIPO = @LIPO@
  70603. LN_S = @LN_S@
  70604. LTLIBOBJS = @LTLIBOBJS@
  70605. MAINT = @MAINT@
  70606. MAKEINFO = @MAKEINFO@
  70607. MKDIR_P = @MKDIR_P@
  70608. +NM = @NM@
  70609. +NMEDIT = @NMEDIT@
  70610. +OBJDUMP = @OBJDUMP@
  70611. OBJEXT = @OBJEXT@
  70612. +OTOOL = @OTOOL@
  70613. +OTOOL64 = @OTOOL64@
  70614. PACKAGE = @PACKAGE@
  70615. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  70616. PACKAGE_NAME = @PACKAGE_NAME@
  70617. PACKAGE_STRING = @PACKAGE_STRING@
  70618. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  70619. +PACKAGE_URL = @PACKAGE_URL@
  70620. PACKAGE_VERSION = @PACKAGE_VERSION@
  70621. PATH_SEPARATOR = @PATH_SEPARATOR@
  70622. RANLIB = @RANLIB@
  70623. @@ -112,8 +119,7 @@
  70624. abs_top_builddir = @abs_top_builddir@
  70625. abs_top_srcdir = @abs_top_srcdir@
  70626. ac_ct_CC = @ac_ct_CC@
  70627. -ac_ct_CXX = @ac_ct_CXX@
  70628. -ac_ct_F77 = @ac_ct_F77@
  70629. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  70630. am__include = @am__include@
  70631. am__leading_dot = @am__leading_dot@
  70632. am__quote = @am__quote@
  70633. @@ -144,6 +150,7 @@
  70634. libexecdir = @libexecdir@
  70635. localedir = @localedir@
  70636. localstatedir = @localstatedir@
  70637. +lt_ECHO = @lt_ECHO@
  70638. mandir = @mandir@
  70639. mkdir_p = @mkdir_p@
  70640. oldincludedir = @oldincludedir@
  70641. @@ -160,6 +167,7 @@
  70642. target_cpu = @target_cpu@
  70643. target_os = @target_os@
  70644. target_vendor = @target_vendor@
  70645. +top_build_prefix = @top_build_prefix@
  70646. top_builddir = @top_builddir@
  70647. top_srcdir = @top_srcdir@
  70648. EXTRA_DIST = Libnet-1.1.1-2002.sln Libnet-1.1.1-2003.ncb \
  70649. @@ -175,14 +183,14 @@
  70650. @for dep in $?; do \
  70651. case '$(am__configure_deps)' in \
  70652. *$$dep*) \
  70653. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  70654. - && exit 0; \
  70655. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  70656. + && { if test -f $@; then exit 0; else break; fi; }; \
  70657. exit 1;; \
  70658. esac; \
  70659. done; \
  70660. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu win32/Makefile'; \
  70661. - cd $(top_srcdir) && \
  70662. - $(AUTOMAKE) --gnu win32/Makefile
  70663. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu win32/Makefile'; \
  70664. + $(am__cd) $(top_srcdir) && \
  70665. + $(AUTOMAKE) --gnu win32/Makefile
  70666. .PRECIOUS: Makefile
  70667. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  70668. @case '$?' in \
  70669. @@ -200,6 +208,7 @@
  70670. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  70671. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  70672. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  70673. +$(am__aclocal_m4_deps):
  70674. mostlyclean-libtool:
  70675. -rm -f *.lo
  70676. @@ -229,13 +238,17 @@
  70677. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  70678. if test -d $$d/$$file; then \
  70679. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  70680. + if test -d "$(distdir)/$$file"; then \
  70681. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  70682. + fi; \
  70683. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  70684. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  70685. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  70686. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  70687. fi; \
  70688. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  70689. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  70690. else \
  70691. - test -f $(distdir)/$$file \
  70692. - || cp -p $$d/$$file $(distdir)/$$file \
  70693. + test -f "$(distdir)/$$file" \
  70694. + || cp -p $$d/$$file "$(distdir)/$$file" \
  70695. || exit 1; \
  70696. fi; \
  70697. done
  70698. @@ -263,6 +276,7 @@
  70699. distclean-generic:
  70700. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  70701. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  70702. maintainer-clean-generic:
  70703. @echo "This command is intended for maintainers to use"
  70704. @@ -281,6 +295,8 @@
  70705. html: html-am
  70706. +html-am:
  70707. +
  70708. info: info-am
  70709. info-am:
  70710. @@ -289,18 +305,28 @@
  70711. install-dvi: install-dvi-am
  70712. +install-dvi-am:
  70713. +
  70714. install-exec-am:
  70715. install-html: install-html-am
  70716. +install-html-am:
  70717. +
  70718. install-info: install-info-am
  70719. +install-info-am:
  70720. +
  70721. install-man:
  70722. install-pdf: install-pdf-am
  70723. +install-pdf-am:
  70724. +
  70725. install-ps: install-ps-am
  70726. +install-ps-am:
  70727. +
  70728. installcheck-am:
  70729. maintainer-clean: maintainer-clean-am
  70730. @@ -334,6 +360,7 @@
  70731. maintainer-clean-generic mostlyclean mostlyclean-generic \
  70732. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  70733. +
  70734. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  70735. # Otherwise a system limit (for SysV at least) may be exceeded.
  70736. .NOEXPORT: